KNewStuff
main.cpp
30 parser->addPositionalArgument(QStringLiteral("knsrcfile"), i18n("The KNSRC file you want to show. If none is passed, you will be presented with a dialog which lets you switch between all the config files installed into the systemwide knsrc file location, which on your system is: %1", KNSCore::Engine::configSearchLocations().last()));
35 appengine->rootContext()->setContextProperty(QStringLiteral("knsrcFilesLocation"), KNSCore::Engine::configSearchLocations().last());
38 appengine->rootContext()->setContextProperty(QStringLiteral("knsrcfile"), parser->positionalArguments().first());
QStringList positionalArguments() const const
void addPositionalArgument(const QString &name, const QString &description, const QString &syntax)
static void setApplicationDomain(const char *domain)
void setOrganizationDomain(const QString &orgDomain)
int count(const T &value) const const
void setApplicationVersion(const QString &version)
QCommandLineOption addHelpOption()
void setContextProperty(const QString &name, QObject *value)
T & first()
QQmlContext * rootContext() const const
void process(const QStringList &arguments)
QString i18n(const char *text, const TYPE &arg...)
void load(const QUrl &url)
static QStringList configSearchLocations(bool includeFallbackLocations=false)
Get a list of all the locations which will be used when searching for knsrc files, in the order in which the search will occur.
Definition: engine.cpp:944
void setApplicationName(const QString &application)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 22:47:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 22:47:27 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.