forked from qt-creator/qt-creator
AdvancedDockingSystem: Add context objects into connections
Change-Id: I564b9ffe6c7809a6d50a172062c52558f3023fc1 Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
@@ -74,7 +74,7 @@ WorkspaceNameInputDialog::WorkspaceNameInputDialog(DockManager *manager, QWidget
|
||||
m_okButton = buttons->button(QDialogButtonBox::Ok);
|
||||
m_switchToButton = new QPushButton;
|
||||
buttons->addButton(m_switchToButton, QDialogButtonBox::AcceptRole);
|
||||
connect(m_switchToButton, &QPushButton::clicked, [this]() { m_usedSwitchTo = true; });
|
||||
connect(m_switchToButton, &QPushButton::clicked, this, [this] { m_usedSwitchTo = true; });
|
||||
connect(buttons, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||
connect(buttons, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user