Changeset View
Changeset View
Standalone View
Standalone View
gui/main.cc
Show All 22 Lines | |||||
23 | #include <QCommandLineParser> | 23 | #include <QCommandLineParser> | ||
24 | #include <kaboutdata.h> | 24 | #include <kaboutdata.h> | ||
25 | #include <kdelibs4configmigrator.h> | 25 | #include <kdelibs4configmigrator.h> | ||
26 | #include <klocalizedstring.h> | 26 | #include <klocalizedstring.h> | ||
27 | #include <KDBusService> | 27 | #include <KDBusService> | ||
28 | #include <KCrash> | 28 | #include <KCrash> | ||
29 | 29 | | |||
30 | #include "mainwindow.h" | 30 | #include "mainwindow.h" | ||
31 | #include "version.h" | 31 | #include "../version.h" | ||
32 | 32 | | |||
33 | static const char description[] = I18N_NOOP("KDE Five in a Row Board Game"); | 33 | static const char description[] = I18N_NOOP("KDE Five in a Row Board Game"); | ||
34 | static const char copyleft[] = I18N_NOOP("(c) 2002-2007, Aron Boström"); | 34 | static const char copyleft[] = I18N_NOOP("(c) 2002-2007, Aron Boström"); | ||
35 | 35 | | |||
36 | using namespace gui; | 36 | using namespace gui; | ||
37 | 37 | | |||
38 | int main(int argc, char **argv) { | 38 | int main(int argc, char **argv) { | ||
39 | 39 | | |||
40 | QApplication app(argc, argv); | 40 | QApplication app(argc, argv); | ||
41 | Kdelibs4ConfigMigrator migrate(QStringLiteral("bovo")); | 41 | Kdelibs4ConfigMigrator migrate(QStringLiteral("bovo")); | ||
42 | migrate.setConfigFiles(QStringList() << QStringLiteral("bovorc")); | 42 | migrate.setConfigFiles(QStringList() << QStringLiteral("bovorc")); | ||
43 | migrate.setUiFiles(QStringList() << QStringLiteral("bovoui.rc")); | 43 | migrate.setUiFiles(QStringList() << QStringLiteral("bovoui.rc")); | ||
44 | migrate.migrate(); | 44 | migrate.migrate(); | ||
45 | 45 | | |||
46 | KLocalizedString::setApplicationDomain("bovo"); | 46 | KLocalizedString::setApplicationDomain("bovo"); | ||
47 | 47 | | |||
48 | KAboutData aboutData(QStringLiteral("bovo"), i18n("Bovo"), | 48 | KAboutData aboutData(QStringLiteral("bovo"), i18n("Bovo"), | ||
49 | QStringLiteral(BOVO_VERSION), i18n(description), KAboutLicense::GPL, | 49 | QStringLiteral(KDE_APP_BUNDLE_VERSION), i18n(description), KAboutLicense::GPL, | ||
50 | i18n(copyleft), QString(), QStringLiteral("http://games.kde.org/bovo")); | 50 | i18n(copyleft), QString(), QStringLiteral("http://games.kde.org/bovo")); | ||
51 | aboutData.addAuthor(i18n("Aron Boström"),i18n("Author"), | 51 | aboutData.addAuthor(i18n("Aron Boström"),i18n("Author"), | ||
52 | QStringLiteral("aron.bostrom@gmail.com")); | 52 | QStringLiteral("aron.bostrom@gmail.com")); | ||
53 | 53 | | |||
54 | aboutData.setOrganizationDomain(QByteArray("kde.org")); | 54 | aboutData.setOrganizationDomain(QByteArray("kde.org")); | ||
55 | app.setWindowIcon(QIcon::fromTheme(QStringLiteral("bovo"))); | 55 | app.setWindowIcon(QIcon::fromTheme(QStringLiteral("bovo"))); | ||
56 | aboutData.setProductName(QByteArray("bovo")); | 56 | aboutData.setProductName(QByteArray("bovo")); | ||
57 | 57 | | |||
Show All 17 Lines |