Changeset View
Changeset View
Standalone View
Standalone View
drkonqi/main.cpp
Context not available. | |||||
36 | #if HAVE_X11 | 36 | #if HAVE_X11 | ||
---|---|---|---|---|---|
37 | #include <QX11Info> | 37 | #include <QX11Info> | ||
38 | #endif | 38 | #endif | ||
39 | #ifdef Q_OS_MACOS | ||||
40 | #include <KWindowSystem> | ||||
41 | #endif | ||||
39 | 42 | | |||
40 | #include "drkonqi.h" | 43 | #include "drkonqi.h" | ||
41 | #include "drkonqidialog.h" | 44 | #include "drkonqidialog.h" | ||
Context not available. | |||||
79 | QStringLiteral("gkiagia@users.sourceforge.net")); | 82 | QStringLiteral("gkiagia@users.sourceforge.net")); | ||
80 | aboutData.addAuthor(i18nc("@info:credit","A. L. Spehr"), QString(), | 83 | aboutData.addAuthor(i18nc("@info:credit","A. L. Spehr"), QString(), | ||
81 | QStringLiteral("spehr@kde.org")); | 84 | QStringLiteral("spehr@kde.org")); | ||
82 | qa.setWindowIcon(QIcon::fromTheme(QStringLiteral("tools-report-bug"))); | 85 | qa.setWindowIcon(QIcon::fromTheme(QStringLiteral("tools-report-bug"), qa.windowIcon())); | ||
83 | 86 | | |||
84 | QCommandLineParser parser; | 87 | QCommandLineParser parser; | ||
85 | parser.setApplicationDescription(description); | 88 | parser.setApplicationDescription(description); | ||
Context not available. | |||||
149 | DrKonqiDialog *w = new DrKonqiDialog(); | 152 | DrKonqiDialog *w = new DrKonqiDialog(); | ||
150 | QObject::connect(w, &DrKonqiDialog::rejected, &qa, &QApplication::quit); | 153 | QObject::connect(w, &DrKonqiDialog::rejected, &qa, &QApplication::quit); | ||
151 | w->show(); | 154 | w->show(); | ||
155 | #ifdef Q_OS_MACOS | ||||
156 | KWindowSystem::forceActiveWindow(w->winId()); | ||||
157 | #endif | ||||
152 | }; | 158 | }; | ||
153 | 159 | | |||
154 | bool restarted = parser.isSet(restartedOption); | 160 | bool restarted = parser.isSet(restartedOption); | ||
Context not available. |