Display a configure entry on the menu

This commit is contained in:
Aleix Pol 2016-11-23 18:58:16 +01:00
parent afa299266e
commit 6aa41a6ab9

View file

@ -50,6 +50,11 @@ int main(int argc, char** argv)
model.setDisplayFilter(DevicesModel::Reachable | DevicesModel::Paired);
QMenu menu;
auto configure = menu.addAction(i18n("Configure..."));
QObject::connect(configure, &QAction::triggered, configure, [](){
QProcess::startDetached("kcmshell5", {"kdeconnect"});
});
QSystemTrayIcon systray;
systray.setIcon(QIcon::fromTheme("kdeconnect"));
systray.setContextMenu(&menu);