Changeset View
Changeset View
Standalone View
Standalone View
src/elisaapplication.cpp
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 137 | if (actionName == QStringLiteral("options_configure_keybinding") && KAuthorized::authorizeAction(actionName)) { | |||
---|---|---|---|---|---|
139 | d->mCollection.addAction(keyBindingsAction->objectName(), keyBindingsAction); | 139 | d->mCollection.addAction(keyBindingsAction->objectName(), keyBindingsAction); | ||
140 | } | 140 | } | ||
141 | 141 | | |||
142 | if (actionName == QStringLiteral("go_back") && KAuthorized::authorizeAction(actionName)) { | 142 | if (actionName == QStringLiteral("go_back") && KAuthorized::authorizeAction(actionName)) { | ||
143 | auto goBackAction = KStandardAction::back(this, &ElisaApplication::goBack, this); | 143 | auto goBackAction = KStandardAction::back(this, &ElisaApplication::goBack, this); | ||
144 | d->mCollection.addAction(goBackAction->objectName(), goBackAction); | 144 | d->mCollection.addAction(goBackAction->objectName(), goBackAction); | ||
145 | } | 145 | } | ||
146 | 146 | | |||
147 | if (actionName == QStringLiteral("edit_find") && KAuthorized::authorizeAction(actionName)) { | ||||
148 | auto findAction = KStandardAction::find(this, &ElisaApplication::find, this); | ||||
149 | d->mCollection.addAction(findAction->objectName(), findAction); | ||||
150 | } | ||||
151 | | ||||
147 | d->mCollection.readSettings(); | 152 | d->mCollection.readSettings(); | ||
148 | #endif | 153 | #endif | ||
149 | } | 154 | } | ||
150 | 155 | | |||
151 | void ElisaApplication::setArguments(const QStringList &newArguments) | 156 | void ElisaApplication::setArguments(const QStringList &newArguments) | ||
152 | { | 157 | { | ||
153 | if (d->mArguments == newArguments) { | 158 | if (d->mArguments == newArguments) { | ||
154 | return; | 159 | return; | ||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 227 | #if defined KF5KCMUtils_FOUND && KF5KCMUtils_FOUND | |||
225 | configurationDialog.addModule(QStringLiteral("kcm_elisa_local_file")); | 230 | configurationDialog.addModule(QStringLiteral("kcm_elisa_local_file")); | ||
226 | configurationDialog.setModal(true); | 231 | configurationDialog.setModal(true); | ||
227 | configurationDialog.exec(); | 232 | configurationDialog.exec(); | ||
228 | #endif | 233 | #endif | ||
229 | } | 234 | } | ||
230 | 235 | | |||
231 | void ElisaApplication::goBack() {} | 236 | void ElisaApplication::goBack() {} | ||
232 | 237 | | |||
238 | void ElisaApplication::find() {} | ||||
239 | | ||||
233 | QStringList ElisaApplication::checkFileListAndMakeAbsolute(const QStringList &filesList, const QString &workingDirectory) const | 240 | QStringList ElisaApplication::checkFileListAndMakeAbsolute(const QStringList &filesList, const QString &workingDirectory) const | ||
234 | { | 241 | { | ||
235 | QStringList filesToOpen; | 242 | QStringList filesToOpen; | ||
236 | 243 | | |||
237 | for (const auto &oneFile : filesList) { | 244 | for (const auto &oneFile : filesList) { | ||
238 | auto newFile = QFileInfo(oneFile); | 245 | auto newFile = QFileInfo(oneFile); | ||
239 | 246 | | |||
240 | if (newFile.isRelative()) { | 247 | if (newFile.isRelative()) { | ||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |