Handle other data source types in the debug console clipboard tab
This commit is contained in:
parent
95a8163c5b
commit
55b50a3e2b
1 changed files with 13 additions and 12 deletions
|
@ -572,10 +572,7 @@ static QString sourceString(const AbstractDataSource *const source)
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!source->client()) {
|
if (source->client()) {
|
||||||
return QStringLiteral("XWayland source");
|
|
||||||
}
|
|
||||||
|
|
||||||
const QString executable = waylandServer()->display()->getConnection(source->client())->executablePath();
|
const QString executable = waylandServer()->display()->getConnection(source->client())->executablePath();
|
||||||
|
|
||||||
if (auto dataSource = qobject_cast<const DataSourceInterface *const>(source)) {
|
if (auto dataSource = qobject_cast<const DataSourceInterface *const>(source)) {
|
||||||
|
@ -585,9 +582,13 @@ static QString sourceString(const AbstractDataSource *const source)
|
||||||
} else if (qobject_cast<const DataControlSourceV1Interface *const>(source)) {
|
} else if (qobject_cast<const DataControlSourceV1Interface *const>(source)) {
|
||||||
return QStringLiteral("data control by %1").arg(executable);
|
return QStringLiteral("data control by %1").arg(executable);
|
||||||
}
|
}
|
||||||
|
|
||||||
return QStringLiteral("unknown source of").arg(executable);
|
return QStringLiteral("unknown source of").arg(executable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return QStringLiteral("%1(0x%2)").arg(source->metaObject()->className()).arg(qulonglong(source), 0, 16);
|
||||||
|
}
|
||||||
|
|
||||||
DebugConsole::DebugConsole()
|
DebugConsole::DebugConsole()
|
||||||
: QWidget()
|
: QWidget()
|
||||||
, m_ui(new Ui::DebugConsole)
|
, m_ui(new Ui::DebugConsole)
|
||||||
|
|
Loading…
Reference in a new issue