Don't rely on implicit conversion from int to QUuid
Not available in Qt6 anymore.
This commit is contained in:
parent
f6d14f0401
commit
c5a712a77a
3 changed files with 3 additions and 3 deletions
|
@ -334,7 +334,7 @@ QVariantMap ScreenShotDBusInterface2::CaptureWindow(const QString &handle,
|
||||||
return QVariantMap();
|
return QVariantMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
EffectWindow *window = effects->findWindow(handle);
|
EffectWindow *window = effects->findWindow(QUuid(handle));
|
||||||
if (!window) {
|
if (!window) {
|
||||||
bool ok;
|
bool ok;
|
||||||
const int winId = handle.toInt(&ok);
|
const int winId = handle.toInt(&ok);
|
||||||
|
|
|
@ -72,7 +72,7 @@ void KCMKWinRules::parseArguments(const QStringList &args)
|
||||||
uuid = QUuid(arg);
|
uuid = QUuid(arg);
|
||||||
nextArgIsUuid = false;
|
nextArgIsUuid = false;
|
||||||
} else if (arg.startsWith("uuid=")) {
|
} else if (arg.startsWith("uuid=")) {
|
||||||
uuid = arg.mid(strlen("uuid="));
|
uuid = QUuid(arg.mid(strlen("uuid=")));
|
||||||
} else if (arg == QLatin1String("whole-app")) {
|
} else if (arg == QLatin1String("whole-app")) {
|
||||||
m_wholeApp = true;
|
m_wholeApp = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ private:
|
||||||
|
|
||||||
void ScreencastManager::streamWindow(KWaylandServer::ScreencastStreamV1Interface *waylandStream, const QString &winid)
|
void ScreencastManager::streamWindow(KWaylandServer::ScreencastStreamV1Interface *waylandStream, const QString &winid)
|
||||||
{
|
{
|
||||||
auto *toplevel = Workspace::self()->findToplevel(winid);
|
auto *toplevel = Workspace::self()->findToplevel(QUuid(winid));
|
||||||
|
|
||||||
if (!toplevel) {
|
if (!toplevel) {
|
||||||
waylandStream->sendFailed(i18n("Could not find window id %1", winid));
|
waylandStream->sendFailed(i18n("Could not find window id %1", winid));
|
||||||
|
|
Loading…
Reference in a new issue