Remove Android TextField workaround
It has been fixed in Qt 6.5.3, 6.6.0
This commit is contained in:
parent
2802b42747
commit
301141c755
1 changed files with 0 additions and 14 deletions
|
|
@ -167,20 +167,6 @@ void AmneziaApplication::init()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Android TextField clipboard workaround
|
|
||||||
// https://bugreports.qt.io/browse/QTBUG-113461
|
|
||||||
#ifdef Q_OS_ANDROID
|
|
||||||
QObject::connect(qApp, &QGuiApplication::applicationStateChanged, [](Qt::ApplicationState state) {
|
|
||||||
if (state == Qt::ApplicationActive) {
|
|
||||||
if (qApp->clipboard()->mimeData()->formats().contains("text/html")) {
|
|
||||||
QTextDocument doc;
|
|
||||||
doc.setHtml(qApp->clipboard()->mimeData()->html());
|
|
||||||
qApp->clipboard()->setText(doc.toPlainText());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AmneziaApplication::registerTypes()
|
void AmneziaApplication::registerTypes()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue