Changeset View
Changeset View
Standalone View
Standalone View
kolourpaint.cpp
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 41 | { | |||
---|---|---|---|---|---|
80 | 80 | | |||
81 | aboutData.addAuthor(i18n("Laurent Montel"), i18n("KDE 4 Porting"), QStringLiteral("montel@kde.org")); | 81 | aboutData.addAuthor(i18n("Laurent Montel"), i18n("KDE 4 Porting"), QStringLiteral("montel@kde.org")); | ||
82 | aboutData.addAuthor(i18n("Christoph Feck"), i18n("KF 5 Porting"), QStringLiteral("cfeck@kde.org")); | 82 | aboutData.addAuthor(i18n("Christoph Feck"), i18n("KF 5 Porting"), QStringLiteral("cfeck@kde.org")); | ||
83 | 83 | | |||
84 | aboutData.addCredit(i18n("Thanks to the many others who have helped to make this program possible.")); | 84 | aboutData.addCredit(i18n("Thanks to the many others who have helped to make this program possible.")); | ||
85 | 85 | | |||
86 | QCommandLineParser cmdLine; | 86 | QCommandLineParser cmdLine; | ||
87 | KAboutData::setApplicationData(aboutData); | 87 | KAboutData::setApplicationData(aboutData); | ||
88 | QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kolourpaint"), app.windowIcon())); | 88 | QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kolourpaint"), QApplication::windowIcon())); | ||
89 | cmdLine.addVersionOption(); | 89 | cmdLine.addVersionOption(); | ||
90 | cmdLine.addHelpOption(); | 90 | cmdLine.addHelpOption(); | ||
91 | cmdLine.addPositionalArgument(QStringLiteral("files"), i18n("Image files to open, optionally"), QStringLiteral("[files...]")); | 91 | cmdLine.addPositionalArgument(QStringLiteral("files"), i18n("Image files to open, optionally"), QStringLiteral("[files...]")); | ||
92 | 92 | | |||
93 | aboutData.setupCommandLine(&cmdLine); | 93 | aboutData.setupCommandLine(&cmdLine); | ||
94 | cmdLine.process(app); | 94 | cmdLine.process(app); | ||
95 | aboutData.processCommandLine(&cmdLine); | 95 | aboutData.processCommandLine(&cmdLine); | ||
96 | 96 | | |||
Show All 18 Lines | 104 | { | |||
115 | } | 115 | } | ||
116 | else | 116 | else | ||
117 | { | 117 | { | ||
118 | mainWindow = new kpMainWindow(); | 118 | mainWindow = new kpMainWindow(); | ||
119 | mainWindow->show(); | 119 | mainWindow->show(); | ||
120 | } | 120 | } | ||
121 | } | 121 | } | ||
122 | 122 | | |||
123 | return app.exec(); | 123 | return QApplication::exec(); | ||
124 | } | 124 | } |