Skip to content

Commit 352687b

Browse files
committed
Set organization name and domain
Also set the QCoreApplication properties before constructing the QApplication
1 parent b379a6e commit 352687b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/main.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636

3737
int main(int argc, char** argv)
3838
{
39+
QCoreApplication::setOrganizationName(QStringLiteral("KDAB"));
40+
QCoreApplication::setOrganizationDomain(QStringLiteral("kdab.com"));
41+
QCoreApplication::setApplicationName(QStringLiteral("hotspot"));
42+
QCoreApplication::setApplicationVersion(QStringLiteral(HOTSPOT_VERSION_STRING));
43+
3944
QApplication app(argc, argv);
4045
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("hotspot"), app.windowIcon()));
4146
qRegisterMetaType<SummaryData>();
@@ -46,8 +51,6 @@ int main(int argc, char** argv)
4651
qRegisterMetaType<Data::TopDownResults>();
4752
qRegisterMetaType<Data::CallerCalleeResults>();
4853

49-
app.setApplicationName(QStringLiteral("hotspot"));
50-
app.setApplicationVersion(QStringLiteral(HOTSPOT_VERSION_STRING));
5154

5255
QCommandLineParser parser;
5356
parser.setApplicationDescription(QStringLiteral("Linux perf GUI for performance analysis."));

0 commit comments

Comments
 (0)