Don't repeat work of KAboutData::setApplicationData(), set window icon

parent 90c7d1c7
......@@ -34,14 +34,11 @@ int main(int argc, char** argv)
KLocalizedString::setApplicationDomain("okular");
KAboutData aboutData = okularAboutData();
app.setApplicationName(aboutData.applicationData().componentName());
app.setApplicationDisplayName(aboutData.applicationData().displayName());
app.setApplicationVersion(aboutData.version());
app.setOrganizationDomain(QStringLiteral("kde.org"));
KAboutData::setApplicationData(aboutData);
// set icon for shells which do not use desktop file metadata
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("okular")));
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
// The KDE4 version accepted flags such as -unique with a single dash -> preserve compatibility
parser.setSingleDashWordOptionMode(QCommandLineParser::ParseAsLongOptions);
parser.addVersionOption();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment