Skip to content

Commit

Permalink
Fix: Ensure ColorPickerTitlebar::PointerToScreen returns a value, Com…
Browse files Browse the repository at this point in the history
…ment annoying qDebug
  • Loading branch information
rurigk committed Jul 19, 2020
1 parent 6d2b694 commit 05a8ce5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/colorpanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ void ColorPanel::FillHistory()
layout->addWidget(colorButton, row, column, Qt::AlignTop);
}

qDebug() << "Row: " << row << " Column: " << historyColumns+1;
//qDebug() << "Row: " << row << " Column: " << historyColumns+1;

QSpacerItem * spacer = new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Expanding);
layout->addItem(spacer, row, historyColumns+1, 1, -1, Qt::AlignTop);
Expand Down
1 change: 1 addition & 0 deletions src/colorpickertitlebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ int ColorPickerTitlebar::PointerToScreen(QPoint pointer)
return sIndex;
}
}
return 0;
}

0 comments on commit 05a8ce5

Please sign in to comment.