PD: replace slots with member function pointers
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user