diff options
| author | Frédéric Lefebvre <frederic.lefebvre@qt.io> | 2025-01-02 13:31:59 +0100 |
|---|---|---|
| committer | Frédéric Lefebvre <frederic.lefebvre@qt.io> | 2025-01-14 15:56:04 +0100 |
| commit | d19d2d261ecc8cf90b4698e9de6d138049facbcb (patch) | |
| tree | c4e472a0320331f5ddf308c1ae5efb75e75b0b76 /tests/manual/inputmethodhints/inputmethodhints.cpp | |
| parent | 16fc1e07784e294cdd75bbab216c2479ae171221 (diff) | |
Remove tst_inputMethodHints manual test as broken
Tests input method hints, but currently does not work and does not
check these properly.
Remove as broken/irrelevant
Change-Id: Iad1bc2a14d2e69b13b7f882b1191d3b810c26c43
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/manual/inputmethodhints/inputmethodhints.cpp')
| -rw-r--r-- | tests/manual/inputmethodhints/inputmethodhints.cpp | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/tests/manual/inputmethodhints/inputmethodhints.cpp b/tests/manual/inputmethodhints/inputmethodhints.cpp deleted file mode 100644 index 89fa9ab0be2..00000000000 --- a/tests/manual/inputmethodhints/inputmethodhints.cpp +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only - -#include "inputmethodhints.h" - -inputmethodhints::inputmethodhints(QWidget *parent) - : QMainWindow(parent) -{ - ui.setupUi(this); - connect(ui.cbDialableOnly, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbDigitsOnly, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbEmailOnly, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbFormattedNumbersOnly, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbHiddenText, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbLowercaseOnly, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbNoAutoUppercase, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbNoPredictiveText, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbPreferLowercase, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbPreferNumbers, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbPreferUpperCase, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbUppercaseOnly, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); - connect(ui.cbUrlOnly, SIGNAL(stateChanged(int)), this, SLOT(checkboxChanged(int))); -} - -inputmethodhints::~inputmethodhints() -{ - -} - -void inputmethodhints::checkboxChanged(int) -{ - int flags = 0; - if (ui.cbDialableOnly->isChecked()) - flags |= Qt::ImhDialableCharactersOnly; - if (ui.cbDigitsOnly->isChecked()) - flags |= Qt::ImhDigitsOnly; - if (ui.cbEmailOnly->isChecked()) - flags |= Qt::ImhEmailCharactersOnly; - if (ui.cbFormattedNumbersOnly->isChecked()) - flags |= Qt::ImhFormattedNumbersOnly; - if (ui.cbHiddenText->isChecked()) - flags |= Qt::ImhHiddenText; - if (ui.cbLowercaseOnly->isChecked()) - flags |= Qt::ImhLowercaseOnly; - if (ui.cbNoAutoUppercase->isChecked()) - flags |= Qt::ImhNoAutoUppercase; - if (ui.cbNoPredictiveText->isChecked()) - flags |= Qt::ImhNoPredictiveText; - if (ui.cbPreferLowercase->isChecked()) - flags |= Qt::ImhPreferLowercase; - if (ui.cbPreferNumbers->isChecked()) - flags |= Qt::ImhPreferNumbers; - if (ui.cbPreferUpperCase->isChecked()) - flags |= Qt::ImhPreferUppercase; - if (ui.cbUppercaseOnly->isChecked()) - flags |= Qt::ImhUppercaseOnly; - if (ui.cbUrlOnly->isChecked()) - flags |= Qt::ImhUrlCharactersOnly; - ui.lineEdit->clear(); - ui.lineEdit->setInputMethodHints(Qt::InputMethodHints(flags)); -} |
