mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-11 01:58:44 +03:00
trigger Latte Config Window from L symbol
This commit is contained in:
parent
8fb12bdbcf
commit
fb3764e432
@ -452,6 +452,15 @@ void DockConfigView::hideConfigWindow()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DockConfigView::showLatteConfigWindow()
|
||||||
|
{
|
||||||
|
auto *dockCorona = qobject_cast<DockCorona *>(m_dockView->corona());
|
||||||
|
|
||||||
|
if (dockCorona) {
|
||||||
|
dockCorona->layoutManager()->showLatteConfigDialog();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void DockConfigView::updateLaunchersForGroup(int groupInt)
|
void DockConfigView::updateLaunchersForGroup(int groupInt)
|
||||||
{
|
{
|
||||||
Dock::LaunchersGroup group = (Dock::LaunchersGroup)groupInt;
|
Dock::LaunchersGroup group = (Dock::LaunchersGroup)groupInt;
|
||||||
|
@ -74,6 +74,7 @@ public slots:
|
|||||||
Q_INVOKABLE void hideConfigWindow();
|
Q_INVOKABLE void hideConfigWindow();
|
||||||
Q_INVOKABLE void setSticker(bool blockFocusLost);
|
Q_INVOKABLE void setSticker(bool blockFocusLost);
|
||||||
Q_INVOKABLE void setVisibleWindow(bool visible);
|
Q_INVOKABLE void setVisibleWindow(bool visible);
|
||||||
|
Q_INVOKABLE void showLatteConfigWindow();
|
||||||
Q_INVOKABLE void syncGeometry();
|
Q_INVOKABLE void syncGeometry();
|
||||||
Q_INVOKABLE void updateLaunchersForGroup(int groupInt);
|
Q_INVOKABLE void updateLaunchersForGroup(int groupInt);
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ FocusScope {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
onClicked: dockConfig.aboutApplication()
|
onClicked: dockConfig.showLatteConfigWindow()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user