Skip to content

Commit 9db8a46

Browse files
committed
Do not hardcode Preferences menu items anymore
1 parent 4412831 commit 9db8a46

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/appmenuwidget.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ AppMenuWidget::AppMenuWidget(QWidget *parent)
158158
locationsContainingApps.removeDuplicates(); // Make unique
159159
findAppsInside(locationsContainingApps, m_systemMenu);
160160

161+
/*
161162
QMenu *submenuPrefs = m_systemMenu->addMenu("Preferences (deprecated)");
162163
163164
QAction *displaysAction = submenuPrefs->addAction("Displays");
@@ -168,6 +169,7 @@ AppMenuWidget::AppMenuWidget(QWidget *parent)
168169
169170
QAction *soundAction = submenuPrefs->addAction("Sound");
170171
connect(soundAction, SIGNAL(triggered()), this, SLOT(actionSound()));
172+
*/
171173

172174
QAction *logoutAction = m_systemMenu->addAction("Log Out");
173175
connect(logoutAction, SIGNAL(triggered()), this, SLOT(actionLogout()));
@@ -566,6 +568,7 @@ void AppMenuWidget::actionLaunch(QAction *action)
566568
QProcess::startDetached("launch", pathToBeLaunched);
567569
}
568570

571+
/*
569572
void AppMenuWidget::actionDisplays()
570573
{
571574
qDebug() << "actionDisplays() called";
@@ -590,6 +593,7 @@ void AppMenuWidget::actionSound()
590593
qDebug() << "actionSound() called";
591594
QProcess::startDetached("dsbmixer");
592595
}
596+
*/
593597

594598
void AppMenuWidget::actionLogout()
595599
{

src/appmenuwidget.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ class AppMenuWidget : public QWidget
6262
public slots:
6363
void actionAbout();
6464
void actionLaunch(QAction *action);
65-
void actionDisplays();
66-
void actionShortcuts();
67-
void actionSound();
65+
// void actionDisplays();
66+
// void actionShortcuts();
67+
// void actionSound();
6868
void actionLogout();
6969
bool which(QString command);
7070

0 commit comments

Comments
 (0)