forked from qt-creator/qt-creator
QmlDesigner: Support aliases in Connection View
- Allows user to select aliases in connections view - Seeks signals for aliases Task: QDS-2411 Change-Id: I69eb875eb99cbf8cd6a842d5f7e166d9990bb255 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -54,7 +54,7 @@ void ActionEditor::registerDeclarativeType()
|
||||
qmlRegisterType<ActionEditor>("HelperWidgets", 2, 0, "ActionEditor");
|
||||
}
|
||||
|
||||
void ActionEditor::showWidget(int x, int y)
|
||||
void ActionEditor::prepareDialog()
|
||||
{
|
||||
if (s_lastActionEditor)
|
||||
s_lastActionEditor->hideWidget();
|
||||
@@ -70,8 +70,18 @@ void ActionEditor::showWidget(int x, int y)
|
||||
this, &ActionEditor::rejected);
|
||||
|
||||
m_dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
}
|
||||
|
||||
void ActionEditor::showWidget()
|
||||
{
|
||||
prepareDialog();
|
||||
m_dialog->showWidget();
|
||||
}
|
||||
|
||||
void ActionEditor::showWidget(int x, int y)
|
||||
{
|
||||
prepareDialog();
|
||||
m_dialog->showWidget(x, y);
|
||||
m_dialog->activateWindow();
|
||||
}
|
||||
|
||||
void ActionEditor::hideWidget()
|
||||
|
||||
Reference in New Issue
Block a user