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 84aa8155ce
commit 9a5d9880d5
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();

View File

@@ -509,14 +509,14 @@ void TaskFeaturePick::slotDeletedObject(const Gui::ViewProviderDocumentObject& O
void TaskFeaturePick::slotUndoDocument(const Gui::Document&)
{
if (origins.empty()) {
QTimer::singleShot(100, &Gui::Control(), SLOT(closeDialog()));
QTimer::singleShot(100, &Gui::Control(), &Gui::ControlSingleton::closeDialog);
}
}
void TaskFeaturePick::slotDeleteDocument(const Gui::Document&)
{
origins.clear();
QTimer::singleShot(100, &Gui::Control(), SLOT(closeDialog()));
QTimer::singleShot(100, &Gui::Control(), &Gui::ControlSingleton::closeDialog);
}
void TaskFeaturePick::showExternal(bool val)