PD: replace slots with member function pointers

This commit is contained in:
wmayer
2023-02-01 16:23:03 +01:00
committed by Uwe
parent 083da6cf03
commit a0548860d2
2 changed files with 4 additions and 4 deletions

View File

@@ -231,7 +231,7 @@ void TaskDressUpParameters::doubleClicked(QListWidgetItem* item) {
Gui::Selection().clearSelection();
// enable next possible single-click event after double-click time passed
QTimer::singleShot(QApplication::doubleClickInterval(), this, SLOT(itemClickedTimeout()));
QTimer::singleShot(QApplication::doubleClickInterval(), this, &TaskDressUpParameters::itemClickedTimeout);
}
void TaskDressUpParameters::setSelection(QListWidgetItem* current) {
@@ -240,7 +240,7 @@ void TaskDressUpParameters::setSelection(QListWidgetItem* current) {
if (!wasDoubleClicked) {
// we treat it as single-click event once the QApplication double-click time is passed
QTimer::singleShot(QApplication::doubleClickInterval(), this, SLOT(itemClickedTimeout()));
QTimer::singleShot(QApplication::doubleClickInterval(), this, &TaskDressUpParameters::itemClickedTimeout);
// name of the item
std::string subName = current->text().toStdString();