Changeset View
Changeset View
Standalone View
Standalone View
app/SettingsBase.cpp
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Line(s) | 137 | { | |||
---|---|---|---|---|---|
140 | quitAction = actionCollection()->addAction( KStandardAction::Quit, QStringLiteral("quit_action"), this, SLOT(close()) ); | 140 | quitAction = actionCollection()->addAction( KStandardAction::Quit, QStringLiteral("quit_action"), this, SLOT(close()) ); | ||
141 | // Configure goes at the end | 141 | // Configure goes at the end | ||
142 | configureAction = actionCollection()->addAction( KStandardAction::Preferences, QStringLiteral("configure"), this, SLOT(configShow()) ); | 142 | configureAction = actionCollection()->addAction( KStandardAction::Preferences, QStringLiteral("configure"), this, SLOT(configShow()) ); | ||
143 | configureAction->setText( i18n("Configure...") ); | 143 | configureAction->setText( i18n("Configure...") ); | ||
144 | // Help after it | 144 | // Help after it | ||
145 | initHelpMenu(); | 145 | initHelpMenu(); | ||
146 | configureAction->setIcon(QIcon::fromTheme(QStringLiteral("settings-configure"))); | 146 | configureAction->setIcon(QIcon::fromTheme(QStringLiteral("settings-configure"))); | ||
147 | 147 | | |||
148 | // There's nothing to configure in info center mode | ||||
149 | if (m_mode == BaseMode::InfoCenter) { | ||||
150 | configureAction->setVisible(false); | ||||
151 | } | ||||
152 | | ||||
148 | // Then a spacer so the search line-edit is kept separate | 153 | // Then a spacer so the search line-edit is kept separate | ||
149 | spacerAction = new QWidgetAction( this ); | 154 | spacerAction = new QWidgetAction( this ); | ||
150 | spacerAction->setDefaultWidget(spacerWidget); | 155 | spacerAction->setDefaultWidget(spacerWidget); | ||
151 | actionCollection()->addAction( QStringLiteral("spacer"), spacerAction ); | 156 | actionCollection()->addAction( QStringLiteral("spacer"), spacerAction ); | ||
152 | // Finally the search line-edit | 157 | // Finally the search line-edit | ||
153 | searchAction = new QWidgetAction( this ); | 158 | searchAction = new QWidgetAction( this ); | ||
154 | searchAction->setDefaultWidget(searchText); | 159 | searchAction->setDefaultWidget(searchText); | ||
155 | connect( searchAction, SIGNAL(triggered(bool)), searchText, SLOT(setFocus())); | 160 | connect( searchAction, SIGNAL(triggered(bool)), searchText, SLOT(setFocus())); | ||
▲ Show 20 Lines • Show All 275 Lines • Show Last 20 Lines |