diff --git a/.arcconfig b/.arcconfig new file mode 100644 index 0000000..377c7ec --- /dev/null +++ b/.arcconfig @@ -0,0 +1,3 @@ +{ + "phabricator.uri" : "https://phabricator.kde.org/" +} diff --git a/kcachegrind/main.cpp b/kcachegrind/main.cpp index eab31c6..1d811cb 100644 --- a/kcachegrind/main.cpp +++ b/kcachegrind/main.cpp @@ -1,104 +1,105 @@ /* This file is part of KCachegrind. Copyright (C) 2003-2016 Josef Weidendorfer KCachegrind is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* * KCachegrind startup */ // for KCACHEGRIND_VERSION #include "../version.h" #include #include #include #include #include #include "kdeconfig.h" #include "toplevel.h" #include "tracedata.h" #include "loader.h" int main( int argc, char ** argv ) { QApplication a(argc, argv); KLocalizedString::setApplicationDomain("kcachegrind"); KAboutData aboutData(QStringLiteral("kcachegrind"), i18n("KCachegrind"), KCACHEGRIND_VERSION, i18n("KDE Frontend for Callgrind/Cachegrind"), KAboutLicense::GPL, i18n("(C) 2002 - 2016"), QString(), QStringLiteral("https://kcachegrind.github.io")); aboutData.addAuthor(i18n("Josef Weidendorfer"), i18n("Author/Maintainer"), QStringLiteral("Josef.Weidendorfer@gmx.de")); + aboutData.setDesktopFileName(QStringLiteral("org.kde.kcachegrind")); KAboutData::setApplicationData(aboutData); // KGlobal::locale()->insertCatalog("kcachegrind_qt"); Loader::initLoaders(); KConfig* kc = KSharedConfig::openConfig().data(); ConfigStorage::setStorage(new KDEConfigStorage(kc)); if (a.isSessionRestored()){ int n = 1; while (KMainWindow::canBeRestored(n)){ (new TopLevel())->restore(n); n++; } } else { TopLevel* t; QCommandLineParser parser; parser.addPositionalArgument(QStringLiteral("trace"), i18n("Show information of this trace"), i18n("[trace...]")); parser.addVersionOption(); parser.addHelpOption(); aboutData.setupCommandLine(&parser); parser.process(a); aboutData.processCommandLine(&parser); int nbArgs = parser.positionalArguments().count(); if (nbArgs>0) { t = new TopLevel(); t->show(); foreach(const QString &arg, parser.positionalArguments()) { t->loadDelayed(arg); } } else { // load trace in current dir t = new TopLevel(); t->show(); t->loadDelayed(QStringLiteral(".")); } } a.connect( &a, &QGuiApplication::lastWindowClosed, &a, &QCoreApplication::quit ); int res = a.exec(); // to make leak checking in valgrind happy... Loader::deleteLoaders(); ProfileContext::cleanup(); ConfigStorage::cleanup(); return res; }