Changeset View
Changeset View
Standalone View
Standalone View
plasmoidviewer/main.cpp
Context not available. | |||||
85 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("t") << QStringLiteral("theme"), | 85 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("t") << QStringLiteral("theme"), | ||
---|---|---|---|---|---|
86 | i18n("The name of the theme which the shell will use"), | 86 | i18n("The name of the theme which the shell will use"), | ||
87 | QStringLiteral("themeName"))); | 87 | QStringLiteral("themeName"))); | ||
88 | parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("b") << QStringLiteral("nobuttons"), | ||||
89 | i18n("Show the button bar"))); | ||||
88 | 90 | | |||
89 | parser.addPositionalArgument(QStringLiteral("externalData"), i18n("Data that should be passed to the applet as 'externalData' event")); | 91 | parser.addPositionalArgument(QStringLiteral("externalData"), i18n("Data that should be passed to the applet as 'externalData' event")); | ||
90 | 92 | | |||
Context not available. | |||||
143 | QPixmapCache::setCacheLimit(parser.value("pixmapcache").toInt()); | 145 | QPixmapCache::setCacheLimit(parser.value("pixmapcache").toInt()); | ||
144 | } | 146 | } | ||
145 | 147 | | |||
148 | if (parser.isSet("nobuttons")) { | ||||
149 | v->setButtonsVisible(false); | ||||
150 | } | ||||
151 | | ||||
146 | // emit externalData event so we you can launch e.g. an icon applet already with a proper URL | 152 | // emit externalData event so we you can launch e.g. an icon applet already with a proper URL | ||
147 | if (parser.positionalArguments().count() == 1) { | 153 | if (parser.positionalArguments().count() == 1) { | ||
148 | v->emitExternalData(parser.positionalArguments().constFirst()); | 154 | v->emitExternalData(parser.positionalArguments().constFirst()); | ||
Context not available. |