mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
Don't repeat work of KAboutData::setApplicationData(), set window icon
This commit is contained in:
parent
90c7d1c769
commit
2779bb6c0c
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue