mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
remove unneeded debug
This commit is contained in:
@@ -90,12 +90,12 @@ Breadcrumb::paintEvent( QPaintEvent* )
|
|||||||
void
|
void
|
||||||
Breadcrumb::updateButtons( const QModelIndex& updateFrom )
|
Breadcrumb::updateButtons( const QModelIndex& updateFrom )
|
||||||
{
|
{
|
||||||
qDebug() << "Updating buttons:" << updateFrom.data();
|
// qDebug() << "Updating buttons:" << updateFrom.data();
|
||||||
int cur = 0;
|
int cur = 0;
|
||||||
QModelIndex idx = updateFrom;
|
QModelIndex idx = updateFrom;
|
||||||
for ( int i = 0; i < m_buttons.count(); i++ )
|
for ( int i = 0; i < m_buttons.count(); i++ )
|
||||||
{
|
{
|
||||||
qDebug() << "Checking if this breadcrumb item changed:" << m_buttons[ i ]->currentIndex().data() << updateFrom.data() << ( m_buttons[ i ]->currentIndex() != updateFrom);
|
// qDebug() << "Checking if this breadcrumb item changed:" << m_buttons[ i ]->currentIndex().data() << updateFrom.data() << ( m_buttons[ i ]->currentIndex() != updateFrom);
|
||||||
if ( m_buttons[ i ]->currentIndex() == updateFrom )
|
if ( m_buttons[ i ]->currentIndex() == updateFrom )
|
||||||
{
|
{
|
||||||
cur = i;
|
cur = i;
|
||||||
@@ -108,10 +108,10 @@ Breadcrumb::updateButtons( const QModelIndex& updateFrom )
|
|||||||
|
|
||||||
// Ok, changed all indices that are at cur or past it. lets update them
|
// Ok, changed all indices that are at cur or past it. lets update them
|
||||||
// When we get to the "end" of the tree, the leaf node is the chart itself
|
// When we get to the "end" of the tree, the leaf node is the chart itself
|
||||||
qDebug() << "DONE and beginning iteration:" << idx.data();
|
// qDebug() << "DONE and beginning iteration:" << idx.data();
|
||||||
while ( m_model->rowCount( idx ) > 0 )
|
while ( m_model->rowCount( idx ) > 0 )
|
||||||
{
|
{
|
||||||
qDebug() << "CHANGED AND iterating:" << idx.data();
|
// qDebug() << "CHANGED AND iterating:" << idx.data();
|
||||||
BreadcrumbButton* btn = 0;
|
BreadcrumbButton* btn = 0;
|
||||||
if ( m_buttons.size() <= cur )
|
if ( m_buttons.size() <= cur )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user