Changeset View
Changeset View
Standalone View
Standalone View
app/SettingsBase.cpp
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Line(s) | 154 | { | |||
---|---|---|---|---|---|
158 | 158 | | |||
159 | // Configure goes at the end | 159 | // Configure goes at the end | ||
160 | configureAction = actionCollection()->addAction( KStandardAction::Preferences, QStringLiteral("configure"), this, SLOT(configShow()) ); | 160 | configureAction = actionCollection()->addAction( KStandardAction::Preferences, QStringLiteral("configure"), this, SLOT(configShow()) ); | ||
161 | configureAction->setText( i18n("Configure...") ); | 161 | configureAction->setText( i18n("Configure...") ); | ||
162 | // Help after it | 162 | // Help after it | ||
163 | initHelpMenu(); | 163 | initHelpMenu(); | ||
164 | configureAction->setIcon(QIcon::fromTheme(QStringLiteral("settings-configure"))); | 164 | configureAction->setIcon(QIcon::fromTheme(QStringLiteral("settings-configure"))); | ||
165 | 165 | | |||
166 | // There's nothing to configure in info center mode | ||||
167 | if (m_mode == BaseMode::InfoCenter) { | ||||
168 | configureAction->setVisible(false); | ||||
169 | } | ||||
166 | 170 | | |||
167 | // Then a spacer so the search line-edit is kept separate | 171 | // Then a spacer so the search line-edit is kept separate | ||
168 | spacerAction = new QWidgetAction( this ); | 172 | spacerAction = new QWidgetAction( this ); | ||
169 | spacerAction->setDefaultWidget(spacerWidget); | 173 | spacerAction->setDefaultWidget(spacerWidget); | ||
170 | actionCollection()->addAction( QStringLiteral("spacer"), spacerAction ); | 174 | actionCollection()->addAction( QStringLiteral("spacer"), spacerAction ); | ||
171 | // Finally the search line-edit | 175 | // Finally the search line-edit | ||
172 | searchAction = new QWidgetAction( this ); | 176 | searchAction = new QWidgetAction( this ); | ||
173 | searchAction->setDefaultWidget(searchText); | 177 | searchAction->setDefaultWidget(searchText); | ||
▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines |