Changeset View
Changeset View
Standalone View
Standalone View
krusader/GUI/kcmdline.cpp
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Line(s) | 160 | { | |||
---|---|---|---|---|---|
174 | cmdLine->setMaximumHeight(height); | 174 | cmdLine->setMaximumHeight(height); | ||
175 | cmdLine->setCompletionObject(&completion); | 175 | cmdLine->setCompletionObject(&completion); | ||
176 | cmdLine->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed)); | 176 | cmdLine->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed)); | ||
177 | // load the history | 177 | // load the history | ||
178 | KConfigGroup grpSvr(krConfig, "Private"); | 178 | KConfigGroup grpSvr(krConfig, "Private"); | ||
179 | QStringList list = grpSvr.readEntry("cmdline history", QStringList()); | 179 | QStringList list = grpSvr.readEntry("cmdline history", QStringList()); | ||
180 | cmdLine->setHistoryItems(list); | 180 | cmdLine->setHistoryItems(list); | ||
181 | 181 | | |||
182 | connect(cmdLine, QOverload<const QString &>::of(&CmdLineCombo::returnPressed), this, &KCMDLine::slotRun); | 182 | connect(cmdLine, static_cast<void (CmdLineCombo::*)(const QString &)>(&CmdLineCombo::returnPressed), this, &KCMDLine::slotRun); | ||
183 | connect(cmdLine, QOverload<const QString &>::of(&CmdLineCombo::returnPressed), cmdLine->lineEdit(), &QLineEdit::clear); | 183 | connect(cmdLine, static_cast<void (CmdLineCombo::*)(const QString &)>(&CmdLineCombo::returnPressed), cmdLine->lineEdit(), &QLineEdit::clear); | ||
184 | connect(cmdLine, &CmdLineCombo::returnToPanel, this, &KCMDLine::slotReturnFocus); | 184 | connect(cmdLine, &CmdLineCombo::returnToPanel, this, &KCMDLine::slotReturnFocus); | ||
185 | 185 | | |||
186 | cmdLine->setWhatsThis(i18n("<qt><p>Well, it is actually quite simple: you type your command here and Krusader obeys.</p><p><b>Tip</b>: move within command line history with <Up> and <Down> arrows.</p></qt>")); | 186 | cmdLine->setWhatsThis(i18n("<qt><p>Well, it is actually quite simple: you type your command here and Krusader obeys.</p><p><b>Tip</b>: move within command line history with <Up> and <Down> arrows.</p></qt>")); | ||
187 | layout->addWidget(cmdLine, 0, 1); | 187 | layout->addWidget(cmdLine, 0, 1); | ||
188 | 188 | | |||
189 | buttonAddPlaceholder = new QToolButton(this); | 189 | buttonAddPlaceholder = new QToolButton(this); | ||
190 | buttonAddPlaceholder->setAutoRaise(true); | 190 | buttonAddPlaceholder->setAutoRaise(true); | ||
191 | buttonAddPlaceholder->setIcon(Icon("list-add")); | 191 | buttonAddPlaceholder->setIcon(Icon("list-add")); | ||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |