Skip to content

Commit

Permalink
Set organization name and domain
Browse files Browse the repository at this point in the history
Also set the QCoreApplication properties before constructing the QApplication
  • Loading branch information
milianw committed Jul 5, 2017
1 parent b379a6e commit 352687b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.cpp
Expand Up @@ -36,6 +36,11 @@

int main(int argc, char** argv)
{
QCoreApplication::setOrganizationName(QStringLiteral("KDAB"));
QCoreApplication::setOrganizationDomain(QStringLiteral("kdab.com"));
QCoreApplication::setApplicationName(QStringLiteral("hotspot"));
QCoreApplication::setApplicationVersion(QStringLiteral(HOTSPOT_VERSION_STRING));

QApplication app(argc, argv);
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("hotspot"), app.windowIcon()));
qRegisterMetaType<SummaryData>();
Expand All @@ -46,8 +51,6 @@ int main(int argc, char** argv)
qRegisterMetaType<Data::TopDownResults>();
qRegisterMetaType<Data::CallerCalleeResults>();

app.setApplicationName(QStringLiteral("hotspot"));
app.setApplicationVersion(QStringLiteral(HOTSPOT_VERSION_STRING));

QCommandLineParser parser;
parser.setApplicationDescription(QStringLiteral("Linux perf GUI for performance analysis."));
Expand Down

0 comments on commit 352687b

Please sign in to comment.