Changeset View
Changeset View
Standalone View
Standalone View
ktorrent/main.cpp
| Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Line(s) | 100 | #endif | |||
|---|---|---|---|---|---|
| 102 | if (!bt::InitLibKTorrent()) | 102 | if (!bt::InitLibKTorrent()) | ||
| 103 | { | 103 | { | ||
| 104 | fprintf(stderr, "Failed to initialize libktorrent\n"); | 104 | fprintf(stderr, "Failed to initialize libktorrent\n"); | ||
| 105 | return -1; | 105 | return -1; | ||
| 106 | } | 106 | } | ||
| 107 | 107 | | |||
| 108 | bt::SetClientInfo(QStringLiteral("KTorrent"), kt::MAJOR, kt::MINOR, kt::RELEASE, kt::VERSION_TYPE, QStringLiteral("KT")); | 108 | bt::SetClientInfo(QStringLiteral("KTorrent"), kt::MAJOR, kt::MINOR, kt::RELEASE, kt::VERSION_TYPE, QStringLiteral("KT")); | ||
| 109 | 109 | | |||
| 110 | QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); | ||||
| 110 | KLocalizedString::setApplicationDomain("ktorrent"); | 111 | KLocalizedString::setApplicationDomain("ktorrent"); | ||
| 111 | 112 | | |||
| 112 | QApplication app(argc, argv); | 113 | QApplication app(argc, argv); | ||
| 113 | app.setWindowIcon(QIcon::fromTheme(QStringLiteral("ktorrent"))); | 114 | app.setWindowIcon(QIcon::fromTheme(QStringLiteral("ktorrent"))); | ||
| 114 | KCrash::initialize(); | 115 | KCrash::initialize(); | ||
| 115 | 116 | | |||
| 116 | QCommandLineParser parser; | 117 | QCommandLineParser parser; | ||
| 117 | KAboutData about(QStringLiteral("ktorrent"), i18nc("@title", "KTorrent"), QStringLiteral(KT_VERSION_MACRO), i18n("Bittorrent client by KDE"), | 118 | KAboutData about(QStringLiteral("ktorrent"), i18nc("@title", "KTorrent"), QStringLiteral(KT_VERSION_MACRO), i18n("Bittorrent client by KDE"), | ||
| ▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines | |||||