1
0
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:
Michail Vourlakos 2018-01-26 18:56:29 +02:00
parent 8fb12bdbcf
commit fb3764e432
3 changed files with 11 additions and 1 deletions

View File

@ -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;

View File

@ -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);

View File

@ -217,7 +217,7 @@ FocusScope {
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
onClicked: dockConfig.aboutApplication() onClicked: dockConfig.showLatteConfigWindow()
} }
} }