Skip to content

Commit

Permalink
Tray icon accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mhtvsSFrpHdE committed Aug 31, 2022
1 parent 57ebf4d commit a5b1de6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qpp/prefetch/Source/Interface/TrayIcon/tray_icon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ void TrayIcon::init()
instanceNameLabel = new QLabel(instanceName);
instanceNameSeparator = new QWidgetAction(systemTrayIcon);
instanceNameSeparator->setDefaultWidget(instanceNameLabel);
connect(instanceNameSeparator, SIGNAL(triggered()), this, SLOT(action_traydc_void()));
qMenu->addAction(instanceNameSeparator);

// Show last known line of stdout, a seperator with text
Expand Down Expand Up @@ -133,6 +134,10 @@ void TrayIcon::action_traydc(QSystemTrayIcon::ActivationReason activationReason)
ConsoleCommandFunction::sendTextToStdIn("traydc");
}
}
void TrayIcon::action_traydc_void()
{
ConsoleCommandFunction::sendTextToStdIn("traydc");
}
void TrayIcon::action_test()
{
ConsoleCommandFunction::sendTextToStdIn("test");
Expand Down
2 changes: 2 additions & 0 deletions qpp/prefetch/Source/Interface/TrayIcon/tray_icon.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public slots:
void action_resume();
void action_exit();
void action_traydc(QSystemTrayIcon::ActivationReason activationReason);
void action_traydc_void();
void action_test();
void action_updateMenu(QSystemTrayIcon::ActivationReason activationReason);

private:
static QSystemTrayIcon *systemTrayIcon;
Expand Down

0 comments on commit a5b1de6

Please sign in to comment.