MCPcopy Create free account
hub / github.com/KDE/labplot / main

Function main

src/frontend/LabPlot.cpp:44–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42#endif
43
44int main(int argc, char* argv[]) {
45#if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN)
46 // the qads library has issues on wayland so we force qt to use x11 instead
47 // see https://invent.kde.org/education/labplot/-/issues/1067
48 QByteArray xcbQtQpaEnvVar("xcb");
49 qputenv("QT_QPA_PLATFORM", xcbQtQpaEnvVar);
50#endif
51
52 // trigger initialisation of proper icon theme
53 KIconTheme::initTheme();
54
55 QApplication app(argc, argv);
56
57#if HAVE_STYLE_MANAGER
58 //trigger initialisation of proper application style
59 KStyleManager::initStyle();
60#else
61 // For Windows and macOS: use Breeze if available
62 // Of all tested styles that works the best for us
63#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
64 QApplication::setStyle(QStringLiteral("breeze"));
65#endif
66#endif
67
68 KLocalizedString::setApplicationDomain("labplot");
69
70 KAboutData aboutData(QStringLiteral("labplot"),
71 QStringLiteral("LabPlot"),
72 QLatin1String(LVERSION),
73 i18n("LabPlot is a FREE, open-source and cross-platform Data Visualization and Analysis software accessible to everyone."),
74 KAboutLicense::GPL,
75 i18n("(c) 2007-%1 LabPlot Team", QLatin1String(YEAR)));
76 aboutData.addAuthor(i18n("Stefan Gerlach"), i18nc("@info:credit", "Developer"), QStringLiteral("stefan.gerlach@uni.kn"), QString());
77 aboutData.addAuthor(i18n("Alexander Semke"), i18nc("@info:credit", "Developer"), QStringLiteral("alexander.semke@web.de"), QString());
78 aboutData.addAuthor(i18n("Martin Marmsoler"), i18nc("@info:credit", "Developer"), QStringLiteral("martin.marmsoler@gmail.com"), QString());
79 aboutData.addAuthor(i18n("Dariusz Laska"),
80 i18nc("@info:credit", "Conceptual work, documentation, example projects"),
81 QStringLiteral("dariuszlaska@gmail.com"),
82 QString());
83 // no text (link to bugs.kde.org) before authors list
84 aboutData.setCustomAuthorText(QString(), QString());
85
86 aboutData.addCredit(i18n("Andreas Kainz"), i18nc("@info:credit", "Icon designer"), QStringLiteral("kainz.a@gmail.com"), QString());
87 aboutData.addCredit(i18n("Yuri Chornoivan"),
88 i18nc("@info:credit", "Help on many questions about the KDE-infrastructure and translation related topics"),
89 QStringLiteral("yurchor@ukr.net"),
90 QString());
91 aboutData.addCredit(i18n("Fábián Kristóf-Szabolcs"), i18nc("@info:credit", "FITS Filter"), QStringLiteral("f-kristof@hotmail.com"), QString());
92 aboutData.addCredit(i18n("Garvit Khatri"),
93 i18nc("@info:credit", "Porting LabPlot to KF5 and Integration with Cantor"),
94 QStringLiteral("garvitdelhi@gmail.com"),
95 QString());
96 aboutData.addCredit(i18n("Christoph Roick"),
97 i18nc("@info:credit", "Support import of ROOT (CERN) TH1 histograms"),
98 QStringLiteral("chrisito@gmx.de"),
99 QString());
100 aboutData.setOrganizationDomain(QByteArray("kde.org"));
101 aboutData.setDesktopFileName(QStringLiteral("org.kde.labplot"));

Callers

nothing calls this directly

Calls 14

settingsGeneralFunction · 0.85
enableInfoTraceFunction · 0.85
enableDebugTraceFunction · 0.85
enablePerfTraceFunction · 0.85
isSetMethod · 0.80
showMethod · 0.80
appendMethod · 0.80
showPresenterMethod · 0.80
execMethod · 0.80
QStringClass · 0.50
QPixmapClass · 0.50
countMethod · 0.45

Tested by

no test coverage detected