Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/componentchooserterminal.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 51 | { | |||
---|---|---|---|---|---|
52 | emit changed(true); | 52 | emit changed(true); | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | void CfgTerminalEmulator::defaults() | 55 | void CfgTerminalEmulator::defaults() | ||
56 | { | 56 | { | ||
57 | load(nullptr); | 57 | load(nullptr); | ||
58 | } | 58 | } | ||
59 | 59 | | |||
60 | bool CfgTerminalEmulator::isDefaults() const | ||||
61 | { | ||||
62 | return false; | ||||
63 | } | ||||
64 | | ||||
60 | 65 | | |||
61 | void CfgTerminalEmulator::load(KConfig *) { | 66 | void CfgTerminalEmulator::load(KConfig *) { | ||
62 | KConfigGroup config(KSharedConfig::openConfig(QStringLiteral("kdeglobals")), "General"); | 67 | KConfigGroup config(KSharedConfig::openConfig(QStringLiteral("kdeglobals")), "General"); | ||
63 | QString terminal = config.readPathEntry("TerminalApplication",QStringLiteral("konsole")); | 68 | QString terminal = config.readPathEntry("TerminalApplication",QStringLiteral("konsole")); | ||
64 | if (terminal == QLatin1String("konsole")) | 69 | if (terminal == QLatin1String("konsole")) | ||
65 | { | 70 | { | ||
66 | terminalLE->setText(QStringLiteral("xterm")); | 71 | terminalLE->setText(QStringLiteral("xterm")); | ||
67 | terminalCB->setChecked(true); | 72 | terminalCB->setChecked(true); | ||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |