remotes/offline-stg/wilder
Albert Astals Cid 8 years ago
parent b25979121f
commit 3e25263d77
  1. 1
      CMakeLists.txt
  2. 2
      shell/CMakeLists.txt
  3. 3
      shell/main.cpp

@ -53,6 +53,7 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS
Config Config
ConfigWidgets ConfigWidgets
CoreAddons CoreAddons
Crash
DocTools DocTools
IconThemes IconThemes
JS JS

@ -27,7 +27,7 @@ ecm_add_app_icon(okular_SRCS ICONS ${ICONS_SRCS})
add_executable(okular ${okular_SRCS}) add_executable(okular ${okular_SRCS})
target_link_libraries(okular KF5::Parts KF5::WindowSystem) target_link_libraries(okular KF5::Parts KF5::WindowSystem KF5::Crash)
if(NOT WIN32) if(NOT WIN32)
target_link_libraries(okular KF5::Activities) target_link_libraries(okular KF5::Activities)

@ -20,6 +20,7 @@
#include <kwindowsystem.h> #include <kwindowsystem.h>
#include <QApplication> #include <QApplication>
#include <KAboutData> #include <KAboutData>
#include <KCrash>
#include <KMessageBox> #include <KMessageBox>
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QCommandLineOption> #include <QCommandLineOption>
@ -39,6 +40,8 @@ int main(int argc, char** argv)
// set icon for shells which do not use desktop file metadata // set icon for shells which do not use desktop file metadata
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("okular"))); QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("okular")));
KCrash::initialize();
QCommandLineParser parser; QCommandLineParser parser;
// The KDE4 version accepted flags such as -unique with a single dash -> preserve compatibility // The KDE4 version accepted flags such as -unique with a single dash -> preserve compatibility
parser.setSingleDashWordOptionMode(QCommandLineParser::ParseAsLongOptions); parser.setSingleDashWordOptionMode(QCommandLineParser::ParseAsLongOptions);

Loading…
Cancel
Save