Changeset View
Changeset View
Standalone View
Standalone View
components/shellprivate/interactiveconsole/interactiveconsole.cpp
Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Line(s) | 201 | { | |||
---|---|---|---|---|---|
202 | KConfigGroup cg(KSharedConfig::openConfig(), "InteractiveConsole"); | 202 | KConfigGroup cg(KSharedConfig::openConfig(), "InteractiveConsole"); | ||
203 | cg.writeEntry("Geometry", saveGeometry()); | 203 | cg.writeEntry("Geometry", saveGeometry()); | ||
204 | cg.writeEntry("SplitterState", m_splitter->saveState()); | 204 | cg.writeEntry("SplitterState", m_splitter->saveState()); | ||
205 | } | 205 | } | ||
206 | 206 | | |||
207 | void InteractiveConsole::setMode(const QString &mode) | 207 | void InteractiveConsole::setMode(const QString &mode) | ||
208 | { | 208 | { | ||
209 | if (mode.toLower() == QLatin1String("desktop")) { | 209 | if (mode.toLower() == QLatin1String("desktop")) { | ||
210 | m_plasmaAction->setChecked(true); | 210 | m_plasmaAction->trigger(); | ||
211 | } else if (mode.toLower() == QLatin1String("windowmanager")) { | 211 | } else if (mode.toLower() == QLatin1String("windowmanager")) { | ||
212 | m_kwinAction->setChecked(true); | 212 | m_kwinAction->trigger(); | ||
213 | } | 213 | } | ||
214 | } | 214 | } | ||
215 | 215 | | |||
216 | void InteractiveConsole::modeSelectionChanged() | 216 | void InteractiveConsole::modeSelectionChanged() | ||
217 | { | 217 | { | ||
218 | if (m_plasmaAction->isChecked()) { | 218 | if (m_plasmaAction->isChecked()) { | ||
219 | m_mode = PlasmaConsole; | 219 | m_mode = PlasmaConsole; | ||
220 | } else if (m_kwinAction->isChecked()) { | 220 | } else if (m_kwinAction->isChecked()) { | ||
▲ Show 20 Lines • Show All 384 Lines • Show Last 20 Lines |