Changeset View
Changeset View
Standalone View
Standalone View
application.cpp
Show All 32 Lines | |||||
33 | 33 | | |||
34 | Q_DECLARE_METATYPE(const QTreeWidgetItem *) | 34 | Q_DECLARE_METATYPE(const QTreeWidgetItem *) | ||
35 | 35 | | |||
36 | using namespace KHC; | 36 | using namespace KHC; | ||
37 | 37 | | |||
38 | Application::Application(int& argc, char** argv) | 38 | Application::Application(int& argc, char** argv) | ||
39 | : QApplication(argc, argv), mMainWindow( 0 ) | 39 | : QApplication(argc, argv), mMainWindow( 0 ) | ||
40 | { | 40 | { | ||
41 | setAttribute(Qt::AA_UseHighDpiPixmaps); | ||||
42 | | ||||
41 | mCmdParser.addPositionalArgument( "url", i18n( "Documentation to open" ) ); | 43 | mCmdParser.addPositionalArgument( "url", i18n( "Documentation to open" ) ); | ||
42 | mCmdParser.addHelpOption(); | 44 | mCmdParser.addHelpOption(); | ||
43 | mCmdParser.addVersionOption(); | 45 | mCmdParser.addVersionOption(); | ||
44 | 46 | | |||
45 | // allow redirecting from internal pages to known protocols | 47 | // allow redirecting from internal pages to known protocols | ||
46 | KUrlAuthorized::allowUrlAction( QLatin1Literal( "redirect" ), QUrl( QLatin1Literal( "khelpcenter:" ) ), QUrl( QLatin1Literal( "ghelp:" ) ) ); | 48 | KUrlAuthorized::allowUrlAction( QLatin1Literal( "redirect" ), QUrl( QLatin1Literal( "khelpcenter:" ) ), QUrl( QLatin1Literal( "ghelp:" ) ) ); | ||
47 | KUrlAuthorized::allowUrlAction( QLatin1Literal( "redirect" ), QUrl( QLatin1Literal( "khelpcenter:" ) ), QUrl( QLatin1Literal( "help:" ) ) ); | 49 | KUrlAuthorized::allowUrlAction( QLatin1Literal( "redirect" ), QUrl( QLatin1Literal( "khelpcenter:" ) ), QUrl( QLatin1Literal( "help:" ) ) ); | ||
48 | KUrlAuthorized::allowUrlAction( QLatin1Literal( "redirect" ), QUrl( QLatin1Literal( "khelpcenter:" ) ), QUrl( QLatin1Literal( "info:" ) ) ); | 50 | KUrlAuthorized::allowUrlAction( QLatin1Literal( "redirect" ), QUrl( QLatin1Literal( "khelpcenter:" ) ), QUrl( QLatin1Literal( "info:" ) ) ); | ||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |