Gui: fix possible problems with new style connect
* In UIntSpinBox rename the signal to not overwrite the signal of the base class * In UIntSpinBox use the (ambiguous) signal 'valueChanged' of the base class QSpinBox * To avoid that connect() fails use the function pointer of the Qt class where the signal is defined
This commit is contained in:
@@ -44,7 +44,7 @@ using namespace Gui::Dialog;
|
||||
UndoDialog::UndoDialog( QWidget* parent )
|
||||
: QMenu( parent )
|
||||
{
|
||||
connect(this, &Gui::Dialog::UndoDialog::aboutToShow, this, &UndoDialog::onFetchInfo);
|
||||
connect(this, &QMenu::aboutToShow, this, &UndoDialog::onFetchInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -92,7 +92,7 @@ void UndoDialog::onSelected()
|
||||
RedoDialog::RedoDialog( QWidget* parent )
|
||||
: QMenu( parent )
|
||||
{
|
||||
connect(this, &Gui::Dialog::RedoDialog::aboutToShow, this, &RedoDialog::onFetchInfo);
|
||||
connect(this, &QMenu::aboutToShow, this, &RedoDialog::onFetchInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user