Commit a0b1312d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add some QStringLiteral + nullptr

parent 92450699
......@@ -24,7 +24,7 @@
void DesktopPlugin::registerTypes(const char *uri)
{
Q_ASSERT(uri == QLatin1String("org.kde.private.desktopcontainment.desktop"));
Q_ASSERT(uri == "org.kde.private.desktopcontainment.desktop");
qmlRegisterType<InfoNotification>(uri, 0, 1, "InfoNotification");
}
......@@ -45,7 +45,7 @@ static QObject *menuHelperSingletonProvider(QQmlEngine *engine, QJSEngine *jsEng
void FolderPlugin::registerTypes(const char *uri)
{
Q_ASSERT(uri == QLatin1String("org.kde.private.desktopcontainment.folder"));
Q_ASSERT(uri == "org.kde.private.desktopcontainment.folder");
qmlRegisterType<DirectoryPicker>(uri, 0, 1, "DirectoryPicker");
qmlRegisterType<FolderModel>(uri, 0, 1, "FolderModel");
qmlRegisterType<ItemViewAdapter>(uri, 0, 1, "ItemViewAdapter");
......
......@@ -145,7 +145,7 @@ static const ModifierKey modifierKeys[] = {
KAccessApp::KAccessApp()
: overlay(0), _player(0), toggleScreenReaderAction(new QAction(this))
: overlay(nullptr), _player(nullptr), toggleScreenReaderAction(new QAction(this))
{
m_error = false;
_activeWindow = KWindowSystem::activeWindow();
......@@ -153,7 +153,7 @@ KAccessApp::KAccessApp()
features = 0;
requestedFeatures = 0;
dialog = 0;
dialog = nullptr;
if (!QX11Info::isPlatformX11()) {
m_error = true;
......@@ -324,7 +324,7 @@ void KAccessApp::readSettings()
xkb->ctrls->enabled_ctrls &= ~XkbMouseKeysMask;
features = xkb->ctrls->enabled_ctrls & (XkbSlowKeysMask | XkbBounceKeysMask | XkbStickyKeysMask | XkbMouseKeysMask);
if (dialog == 0)
if (dialog == nullptr)
requestedFeatures = features;
// set state
XkbSetControls(QX11Info::display(), XkbControlsEnabledMask | XkbMouseKeysAccelMask | XkbStickyKeysMask | XkbSlowKeysMask | XkbBounceKeysMask | XkbAccessXKeysMask | XkbAccessXTimeoutMask, xkb);
......@@ -346,7 +346,7 @@ void KAccessApp::readSettings()
}
delete overlay;
overlay = 0;
overlay = nullptr;
KConfigGroup screenReaderGroup(_config, "ScreenReader");
setScreenReaderEnabled(screenReaderGroup.readEntry("Enabled", false));
......@@ -354,7 +354,7 @@ void KAccessApp::readSettings()
QString shortcut = screenReaderGroup.readEntry("Shortcut", QStringLiteral("Meta+Alt+S"));
toggleScreenReaderAction->setText(i18n("Toggle Screen Reader On and Off"));
toggleScreenReaderAction->setObjectName("Toggle Screen Reader On and Off");
toggleScreenReaderAction->setObjectName(QStringLiteral("Toggle Screen Reader On and Off"));
toggleScreenReaderAction->setProperty("componentDisplayName", i18nc("Name for kaccess shortcuts category", "Accessibility"));
KGlobalAccel::self()->setGlobalShortcut(toggleScreenReaderAction,
QKeySequence(shortcut));
......@@ -373,15 +373,15 @@ void KAccessApp::toggleScreenReader()
void KAccessApp::setScreenReaderEnabled(bool enabled)
{
if (enabled) {
QStringList args = { "set", "org.gnome.desktop.a11y.applications", "screen-reader-enabled", "true"};
int ret = QProcess::execute("gsettings", args);
QStringList args = { QStringLiteral("set"), QStringLiteral("org.gnome.desktop.a11y.applications"), QStringLiteral("screen-reader-enabled"), QStringLiteral("true")};
int ret = QProcess::execute(QStringLiteral("gsettings"), args);
if (ret == 0) {
qint64 pid = 0;
QProcess::startDetached("orca", {"--replace"}, QString(), &pid);
QProcess::startDetached(QStringLiteral("orca"), {QStringLiteral("--replace")}, QString(), &pid);
qCDebug(logKAccess) << "Launching Orca, pid:" << pid;
}
} else {
QProcess::startDetached("gsettings", { "set", "org.gnome.desktop.a11y.applications", "screen-reader-enabled", "false"});
QProcess::startDetached(QStringLiteral("gsettings"), { QStringLiteral("set"), QStringLiteral("org.gnome.desktop.a11y.applications"), QStringLiteral("screen-reader-enabled"), QStringLiteral("false")});
}
}
......@@ -483,18 +483,18 @@ void KAccessApp::xkbStateNotify()
if (!strcmp(modifierKeys[keys[i]].latchedText, "")
&& ((((mods >> i) & 0x101) != 0) != (((state >> i) & 0x101) != 0))) {
if ((mods >> i) & 1) {
KNotification::event("lockkey-locked", i18n(modifierKeys[keys[i]].lockedText));
KNotification::event(QStringLiteral("lockkey-locked"), i18n(modifierKeys[keys[i]].lockedText));
} else {
KNotification::event("lockkey-unlocked", i18n(modifierKeys[keys[i]].unlatchedText));
KNotification::event(QStringLiteral("lockkey-unlocked"), i18n(modifierKeys[keys[i]].unlatchedText));
}
} else if (strcmp(modifierKeys[keys[i]].latchedText, "")
&& (((mods >> i) & 0x101) != ((state >> i) & 0x101))) {
if ((mods >> i) & 0x100) {
KNotification::event("modifierkey-locked", i18n(modifierKeys[keys[i]].lockedText));
KNotification::event(QStringLiteral("modifierkey-locked"), i18n(modifierKeys[keys[i]].lockedText));
} else if ((mods >> i) & 1) {
KNotification::event("modifierkey-latched", i18n(modifierKeys[keys[i]].latchedText));
KNotification::event(QStringLiteral("modifierkey-latched"), i18n(modifierKeys[keys[i]].latchedText));
} else {
KNotification::event("modifierkey-unlatched", i18n(modifierKeys[keys[i]].unlatchedText));
KNotification::event(QStringLiteral("modifierkey-unlatched"), i18n(modifierKeys[keys[i]].unlatchedText));
}
}
}
......@@ -637,31 +637,31 @@ QString mouseKeysShortcut(Display *display)
HyperMask &= ~(mods | AltGrMask | MetaMask | SuperMask);
if ((modifiers & AltGrMask) != 0)
keyname = i18n("AltGraph") + '+' + keyname;
keyname = i18n("AltGraph") + QLatin1Char('+') + keyname;
if ((modifiers & HyperMask) != 0)
keyname = i18n("Hyper") + '+' + keyname;
keyname = i18n("Hyper") + QLatin1Char('+') + keyname;
if ((modifiers & SuperMask) != 0)
keyname = i18n("Super") + '+' + keyname;
keyname = i18n("Super") + QLatin1Char('+') + keyname;
if ((modifiers & WinMask) != 0)
keyname = i18n("Meta") + '+' + keyname;
keyname = i18n("Meta") + QLatin1Char('+') + keyname;
if ((modifiers & WinMask) != 0)
keyname = QKeySequence(Qt::META).toString() + '+' + keyname;
keyname = QKeySequence(Qt::META).toString() + QLatin1Char('+') + keyname;
if ((modifiers & AltMask) != 0)
keyname = QKeySequence(Qt::ALT).toString() + '+' + keyname;
keyname = QKeySequence(Qt::ALT).toString() + QLatin1Char('+') + keyname;
if ((modifiers & ControlMask) != 0)
keyname = QKeySequence(Qt::CTRL).toString() + '+' + keyname;
keyname = QKeySequence(Qt::CTRL).toString() + QLatin1Char('+') + keyname;
if ((modifiers & ShiftMask) != 0)
keyname = QKeySequence(Qt::SHIFT).toString() + '+' + keyname;
keyname = QKeySequence(Qt::SHIFT).toString() + QLatin1Char('+') + keyname;
return keyname;
}
void KAccessApp::createDialogContents()
{
if (dialog == 0) {
if (dialog == nullptr) {
dialog = new QDialog(nullptr);
dialog->setWindowTitle(i18n("Warning"));
dialog->setObjectName("AccessXWarning");
dialog->setObjectName(QStringLiteral("AccessXWarning"));
dialog->setModal(true);
QWidget *topcontents = new QWidget(dialog);
......@@ -671,7 +671,7 @@ void KAccessApp::createDialogContents()
QHBoxLayout * lay = new QHBoxLayout(contents);
QLabel *label1 = new QLabel(contents);
QIcon icon = QIcon::fromTheme("dialog-warning");
QIcon icon = QIcon::fromTheme(QStringLiteral("dialog-warning"));
if (icon.isNull())
icon = QMessageBox::standardIcon(QMessageBox::Warning);
label1->setPixmap(icon.pixmap(64, 64));
......@@ -849,8 +849,8 @@ void KAccessApp::xkbControlsNotify(xcb_xkb_controls_notify_event_t *event)
}
createDialogContents();
featuresLabel->setText(question + "\n\n" + explanation
+ " " + i18n("These AccessX settings are needed for some users with motion impairments and can be configured in the KDE System Settings. You can also turn them on and off with standardized keyboard gestures.\n\nIf you do not need them, you can select \"Deactivate all AccessX features and gestures\"."));
featuresLabel->setText(question + QStringLiteral("\n\n") + explanation
+ QStringLiteral(" ") + i18n("These AccessX settings are needed for some users with motion impairments and can be configured in the KDE System Settings. You can also turn them on and off with standardized keyboard gestures.\n\nIf you do not need them, you can select \"Deactivate all AccessX features and gestures\"."));
KWindowSystem::setState(dialog->winId(), NET::KeepAbove);
KUserTimestamp::updateUserTimestamp(0);
......@@ -868,24 +868,24 @@ void KAccessApp::notifyChanges()
unsigned int disabled = features & ~requestedFeatures;
if (enabled & XCB_XKB_BOOL_CTRL_SLOW_KEYS)
KNotification::event("slowkeys", i18n("Slow keys has been enabled. From now on, you need to press each key for a certain length of time before it gets accepted."));
KNotification::event(QStringLiteral("slowkeys"), i18n("Slow keys has been enabled. From now on, you need to press each key for a certain length of time before it gets accepted."));
else if (disabled & XCB_XKB_BOOL_CTRL_SLOW_KEYS)
KNotification::event("slowkeys", i18n("Slow keys has been disabled."));
KNotification::event(QStringLiteral("slowkeys"), i18n("Slow keys has been disabled."));
if (enabled & XCB_XKB_BOOL_CTRL_BOUNCE_KEYS)
KNotification::event("bouncekeys", i18n("Bounce keys has been enabled. From now on, each key will be blocked for a certain length of time after it was used."));
KNotification::event(QStringLiteral("bouncekeys"), i18n("Bounce keys has been enabled. From now on, each key will be blocked for a certain length of time after it was used."));
else if (disabled & XCB_XKB_BOOL_CTRL_BOUNCE_KEYS)
KNotification::event("bouncekeys", i18n("Bounce keys has been disabled."));
KNotification::event(QStringLiteral("bouncekeys"), i18n("Bounce keys has been disabled."));
if (enabled & XCB_XKB_BOOL_CTRL_STICKY_KEYS)
KNotification::event("stickykeys", i18n("Sticky keys has been enabled. From now on, modifier keys will stay latched after you have released them."));
KNotification::event(QStringLiteral("stickykeys"), i18n("Sticky keys has been enabled. From now on, modifier keys will stay latched after you have released them."));
else if (disabled & XCB_XKB_BOOL_CTRL_STICKY_KEYS)
KNotification::event("stickykeys", i18n("Sticky keys has been disabled."));
KNotification::event(QStringLiteral("stickykeys"), i18n("Sticky keys has been disabled."));
if (enabled & XCB_XKB_BOOL_CTRL_MOUSE_KEYS)
KNotification::event("mousekeys", i18n("Mouse keys has been enabled. From now on, you can use the number pad of your keyboard in order to control the mouse."));
KNotification::event(QStringLiteral("mousekeys"), i18n("Mouse keys has been enabled. From now on, you can use the number pad of your keyboard in order to control the mouse."));
else if (disabled & XCB_XKB_BOOL_CTRL_MOUSE_KEYS)
KNotification::event("mousekeys", i18n("Mouse keys has been disabled."));
KNotification::event(QStringLiteral("mousekeys"), i18n("Mouse keys has been disabled."));
}
void KAccessApp::applyChanges()
......
......@@ -52,7 +52,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char * argv[])
// we need an application object for QX11Info
QApplication app(argc, argv);
KAboutData about("kaccess", QString(), i18n("KDE Accessibility Tool"),
KAboutData about(QStringLiteral("kaccess"), QString(), i18n("KDE Accessibility Tool"),
{}, KAboutLicense::GPL_V2,
i18n("(c) 2000, Matthias Hoelzer-Kluepfel"));
......
......@@ -55,11 +55,11 @@ KNetAttach::KNetAttach( QWidget* parent )
connect(_createIcon, &QAbstractButton::toggled, this, &KNetAttach::updateFinishButtonText);
connect( this, &QWizard::helpRequested, this, &KNetAttach::slotHelpClicked );
connect( this, &QWizard::currentIdChanged, this, &KNetAttach::slotPageChanged );
setWindowIcon(QIcon::fromTheme("knetattach"));
setWindowIcon(QIcon::fromTheme(QStringLiteral("knetattach")));
setOption(HaveHelpButton, true);
//setResizeMode(Fixed); FIXME: make the wizard fixed-geometry
button(FinishButton)->setEnabled(false);
KConfig crecent( "krecentconnections", KConfig::NoGlobals );
KConfig crecent( QStringLiteral("krecentconnections"), KConfig::NoGlobals );
KConfigGroup recent(&crecent, "General");
QStringList idx = recent.readEntry("Index",QStringList());
if (idx.isEmpty()) {
......@@ -73,7 +73,7 @@ KNetAttach::KNetAttach( QWidget* parent )
}
_encoding->clear();
_encoding->addItems(KCharsets::charsets()->descriptiveEncodingNames());
const int codecForLocaleIdx = _encoding->findText(QTextCodec::codecForLocale()->name(), Qt::MatchContains);
const int codecForLocaleIdx = _encoding->findText(QString::fromLatin1(QTextCodec::codecForLocale()->name()), Qt::MatchContains);
_encoding->setCurrentIndex(codecForLocaleIdx != -1 ? codecForLocaleIdx : 0);
}
......@@ -84,7 +84,7 @@ void KNetAttach::slotPageChanged( int )
void KNetAttach::slotHelpClicked()
{
QDesktopServices::openUrl(QUrl("help:/knetattach"));
QDesktopServices::openUrl(QUrl(QStringLiteral("help:/knetattach")));
}
void KNetAttach::setInformationText( const QString &type )
......@@ -119,25 +119,25 @@ bool KNetAttach::validateCurrentPage()
_connectionName->setFocus();
if (_webfolder->isChecked()) {
setInformationText("WebFolder");
updateForProtocol("WebFolder");
setInformationText(QStringLiteral("WebFolder"));
updateForProtocol(QStringLiteral("WebFolder"));
_port->setValue(80);
} else if (_fish->isChecked()) {
setInformationText("Fish");
updateForProtocol("Fish");
setInformationText(QStringLiteral("Fish"));
updateForProtocol(QStringLiteral("Fish"));
_port->setValue(22);
} else if (_ftp->isChecked()) {
setInformationText("FTP");
updateForProtocol("FTP");
setInformationText(QStringLiteral("FTP"));
updateForProtocol(QStringLiteral("FTP"));
_port->setValue(21);
if (_path->text().isEmpty()) {
_path->setText("/");
_path->setText(QStringLiteral("/"));
}
} else if (_smb->isChecked()) {
setInformationText("SMB");
updateForProtocol("SMB");
setInformationText(QStringLiteral("SMB"));
updateForProtocol(QStringLiteral("SMB"));
} else { //if (_recent->isChecked()) {
KConfig recent( "krecentconnections", KConfig::NoGlobals );
KConfig recent( QStringLiteral("krecentconnections"), KConfig::NoGlobals );
if (!recent.hasGroup(_recentConnectionName->currentText())) {
KConfigGroup group = recent.group("General");
QStringList idx = group.readEntry("Index",QStringList());
......@@ -176,28 +176,28 @@ bool KNetAttach::validateCurrentPage()
button(BackButton)->setEnabled(false);
button(FinishButton)->setEnabled(false);
KUrl url;
if (_type == "WebFolder") {
if (_type == QLatin1String("WebFolder")) {
if (_useEncryption->isChecked()) {
url.setProtocol("webdavs");
url.setProtocol(QStringLiteral("webdavs"));
} else {
url.setProtocol("webdav");
url.setProtocol(QStringLiteral("webdav"));
}
url.setPort(_port->value());
} else if (_type == "Fish") {
KConfig config("kio_fishrc");
} else if (_type == QLatin1String("Fish")) {
KConfig config(QStringLiteral("kio_fishrc"));
KConfigGroup cg(&config, _host->text().trimmed());
cg.writeEntry("Charset", KCharsets::charsets()->encodingForName(_encoding->currentText()));
url.setProtocol(_protocolText->currentText());
url.setPort(_port->value());
} else if (_type == "FTP") {
url.setProtocol("ftp");
} else if (_type == QLatin1String("FTP")) {
url.setProtocol(QStringLiteral("ftp"));
url.setPort(_port->value());
KConfig config("kio_ftprc");
KConfig config(QStringLiteral("kio_ftprc"));
KConfigGroup cg(&config, _host->text().trimmed());
cg.writeEntry("Charset", KCharsets::charsets()->encodingForName(_encoding->currentText()));
config.sync();
} else if (_type == "SMB") {
url.setProtocol("smb");
} else if (_type == QLatin1String("SMB")) {
url.setProtocol(QStringLiteral("smb"));
} else { // recent
}
......@@ -206,8 +206,8 @@ bool KNetAttach::validateCurrentPage()
QString path = _path->text().trimmed();
#ifndef Q_WS_WIN
// could a relative path really be made absolute by simply prepending a '/' ?
if (!path.startsWith('/')) {
path = QString("/") + path;
if (!path.startsWith(QLatin1Char('/'))) {
path = QLatin1Char('/') + path;
}
#endif
url.setPath(path);
......@@ -220,7 +220,7 @@ bool KNetAttach::validateCurrentPage()
return false;
}
KRun::runUrl(url, "inode/directory", this);
KRun::runUrl(url, QStringLiteral("inode/directory"), this);
QString name = _connectionName->text().trimmed();
......@@ -228,7 +228,7 @@ bool KNetAttach::validateCurrentPage()
KGlobal::dirs()->addResourceType("remote_entries", "data", "remoteview");
QString path = KGlobal::dirs()->saveLocation("remote_entries");
path += name + ".desktop";
path += name + QStringLiteral(".desktop");
KConfig _desktopFile( path, KConfig::SimpleConfig );
KConfigGroup desktopFile(&_desktopFile, "Desktop Entry");
desktopFile.writeEntry("Icon", "folder-remote");
......@@ -237,11 +237,11 @@ bool KNetAttach::validateCurrentPage()
desktopFile.writeEntry("URL", url.prettyUrl());
desktopFile.writeEntry("Charset", url.fileEncoding());
desktopFile.sync();
org::kde::KDirNotify::emitFilesAdded( QUrl("remote:/") );
org::kde::KDirNotify::emitFilesAdded( QUrl(QStringLiteral("remote:/")) );
}
if (!name.isEmpty()) {
KConfig _recent("krecentconnections", KConfig::NoGlobals);
KConfig _recent(QStringLiteral("krecentconnections"), KConfig::NoGlobals);
KConfigGroup recent(&_recent, "General");
QStringList idx = recent.readEntry("Index",QStringList());
_recent.deleteGroup(name); // erase anything stale
......@@ -261,7 +261,7 @@ bool KNetAttach::validateCurrentPage()
}
recent = KConfigGroup(&_recent,name);
recent.writeEntry("URL", url.prettyUrl());
if (_type == "WebFolder" || _type == "Fish" || _type == "FTP") {
if (_type == QLatin1String("WebFolder") || _type == QLatin1String("Fish") || _type == QLatin1String("FTP")) {
recent.writeEntry("Port", _port->value());
}
recent.writeEntry("Type", _type);
......@@ -298,7 +298,7 @@ bool KNetAttach::doConnectionTest(const KUrl& url)
bool KNetAttach::updateForProtocol(const QString& protocol)
{
_type = protocol;
if (protocol == "WebFolder") {
if (protocol == QLatin1String("WebFolder")) {
_useEncryption->show();
_portText->show();
_port->show();
......@@ -308,7 +308,7 @@ bool KNetAttach::updateForProtocol(const QString& protocol)
_user->show();
_encodingText->hide();
_encoding->hide();
} else if (protocol == "Fish") {
} else if (protocol == QLatin1String("Fish")) {
_useEncryption->hide();
_portText->show();
_port->show();
......@@ -318,7 +318,7 @@ bool KNetAttach::updateForProtocol(const QString& protocol)
_user->show();
_encodingText->show();
_encoding->show();
} else if (protocol == "FTP") {
} else if (protocol == QLatin1String("FTP")) {
_useEncryption->hide();
_portText->show();
_port->show();
......@@ -328,7 +328,7 @@ bool KNetAttach::updateForProtocol(const QString& protocol)
_user->show();
_encodingText->show();
_encoding->show();
} else if (protocol == "SMB") {
} else if (protocol == QLatin1String("SMB")) {
_useEncryption->hide();
_portText->hide();
_port->hide();
......@@ -339,7 +339,7 @@ bool KNetAttach::updateForProtocol(const QString& protocol)
_encodingText->hide();
_encoding->hide();
} else {
_type = "";
_type = QString();
return false;
}
return true;
......
......@@ -30,7 +30,7 @@ int main(int argc, char **argv)
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("knetattach5");
KAboutData aboutData(QLatin1String("knetattach"), i18n("KDE Network Wizard"), PROJECT_VERSION, i18n("KDE Network Wizard"),KAboutLicense::GPL, i18n("(c) 2004 George Staikos"), QLatin1String("http://www.kde.org/"));
KAboutData aboutData(QLatin1String("knetattach"), i18n("KDE Network Wizard"), QLatin1String(PROJECT_VERSION), i18n("KDE Network Wizard"),KAboutLicense::GPL, i18n("(c) 2004 George Staikos"), QLatin1String("http://www.kde.org/"));
aboutData.addAuthor(i18n("George Staikos"), i18n("Primary author and maintainer"), QStringLiteral("staikos@kde.org"));
......
......@@ -82,22 +82,22 @@ void PlasmaDesktopRunner::run(const Plasma::RunnerContext &context, const Plasma
QString query = context.query();
if (query.compare(m_desktopConsoleKeyword, Qt::CaseInsensitive) == 0) {
message = QDBusMessage::createMethodCall(s_plasmaService, "/PlasmaShell",
"org.kde.PlasmaShell", "showInteractiveConsole");
message = QDBusMessage::createMethodCall(s_plasmaService, QStringLiteral("/PlasmaShell"),
QStringLiteral("org.kde.PlasmaShell"), QStringLiteral("showInteractiveConsole"));
} else if (query.startsWith(m_desktopConsoleKeyword)) {
message = QDBusMessage::createMethodCall(s_plasmaService, "/PlasmaShell",
"org.kde.PlasmaShell", "loadScriptInInteractiveConsole");
message = QDBusMessage::createMethodCall(s_plasmaService, QStringLiteral("/PlasmaShell"),
QStringLiteral("org.kde.PlasmaShell"), QStringLiteral("loadScriptInInteractiveConsole"));
query.replace(m_desktopConsoleKeyword, QString(), Qt::CaseInsensitive);
QList<QVariant> args;
args << query;
message.setArguments(args);
}
if (query.compare(m_kwinConsoleKeyword, Qt::CaseInsensitive) == 0) {
message = QDBusMessage::createMethodCall(s_plasmaService, "/PlasmaShell",
"org.kde.PlasmaShell", "showInteractiveKWinConsole");
message = QDBusMessage::createMethodCall(s_plasmaService, QStringLiteral("/PlasmaShell"),
QStringLiteral("org.kde.PlasmaShell"), QStringLiteral("showInteractiveKWinConsole"));
} else if (query.startsWith(m_kwinConsoleKeyword)) {
message = QDBusMessage::createMethodCall(s_plasmaService, "/PlasmaShell",
"org.kde.PlasmaShell", "loadKWinScriptInInteractiveConsole");
message = QDBusMessage::createMethodCall(s_plasmaService, QStringLiteral("/PlasmaShell"),
QStringLiteral("org.kde.PlasmaShell"), QStringLiteral("loadKWinScriptInInteractiveConsole"));
query.replace(m_kwinConsoleKeyword, QString(), Qt::CaseInsensitive);
QList<QVariant> args;
args << query;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment