Changeset View
Changeset View
Standalone View
Standalone View
src/utils/mainwindow.cpp
Show First 20 Lines • Show All 287 Lines • ▼ Show 20 Line(s) | 283 | { | |||
---|---|---|---|---|---|
288 | QMetaObject::invokeMethod(parent() | 288 | QMetaObject::invokeMethod(parent() | ||
289 | , "hideToolView" | 289 | , "hideToolView" | ||
290 | , Qt::DirectConnection | 290 | , Qt::DirectConnection | ||
291 | , Q_RETURN_ARG(bool, success) | 291 | , Q_RETURN_ARG(bool, success) | ||
292 | , Q_ARG(QWidget*, widget)); | 292 | , Q_ARG(QWidget*, widget)); | ||
293 | return success; | 293 | return success; | ||
294 | } | 294 | } | ||
295 | 295 | | |||
296 | bool MainWindow::showPluginConfigPage(KTextEditor::Plugin *plugin, int page) | ||||
297 | { | ||||
298 | /** | ||||
299 | * dispatch to parent | ||||
300 | */ | ||||
301 | bool success = false; | ||||
302 | QMetaObject::invokeMethod(parent() | ||||
303 | , "showPluginConfigPage" | ||||
304 | , Qt::DirectConnection | ||||
305 | , Q_RETURN_ARG(bool, success) | ||||
306 | , Q_ARG(KTextEditor::Plugin*, plugin) | ||||
307 | , Q_ARG(int, page)); | ||||
308 | return success; | ||||
309 | } | ||||
310 | | ||||
296 | QObject *MainWindow::pluginView(const QString &name) | 311 | QObject *MainWindow::pluginView(const QString &name) | ||
297 | { | 312 | { | ||
298 | /** | 313 | /** | ||
299 | * dispatch to parent | 314 | * dispatch to parent | ||
300 | */ | 315 | */ | ||
301 | QObject *pluginView = nullptr; | 316 | QObject *pluginView = nullptr; | ||
302 | QMetaObject::invokeMethod(parent() | 317 | QMetaObject::invokeMethod(parent() | ||
303 | , "pluginView" | 318 | , "pluginView" | ||
304 | , Qt::DirectConnection | 319 | , Qt::DirectConnection | ||
305 | , Q_RETURN_ARG(QObject*, pluginView) | 320 | , Q_RETURN_ARG(QObject*, pluginView) | ||
306 | , Q_ARG(QString, name)); | 321 | , Q_ARG(QString, name)); | ||
307 | return pluginView; | 322 | return pluginView; | ||
308 | } | 323 | } | ||
309 | 324 | | |||
310 | } // namespace KTextEditor | 325 | } // namespace KTextEditor |