Commit 0743c55d authored by Karel Slaný's avatar Karel Slaný
Browse files

Using default implementation on non-Android platforms.

parent c6260d84
......@@ -54,6 +54,8 @@ QString PasteInputDialogue::getText(QWidget *parent, const QString &title,
const QString &label, QLineEdit::EchoMode mode, const QString &text,
bool *ok, Qt::WindowFlags flags, Qt::InputMethodHints inputMethodHints)
{
#if defined Q_OS_ANDROID
//#if 1
PasteInputDialogue dialogue(parent, flags);
dialogue.setWindowTitle(title);
......@@ -62,12 +64,9 @@ QString PasteInputDialogue::getText(QWidget *parent, const QString &title,
dialogue.setTextEchoMode(mode);
dialogue.setInputMethodHints(inputMethodHints);
#if defined Q_OS_ANDROID
//#if 1
dialogue.setVisible(true); /* Constructs the dialogue. */
dialogue.setVisible(false);
dialogue.extendDialoguePaste();
#endif /* defined Q_OS_ANDROID */
int ret = dialogue.exec();
if (ok) {
......@@ -78,6 +77,10 @@ QString PasteInputDialogue::getText(QWidget *parent, const QString &title,
} else {
return QString();
}
#else /* !defined Q_OS_ANDROID */
return QInputDialog::getText(parent, title, label, mode, text, ok,
flags, inputMethodHints);
#endif /* defined Q_OS_ANDROID */
}
void PasteInputDialogue::activatePasteButton(void)
......
Markdown is supported
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