diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt index 6e3dd8aedcf..71fa0fa6d59 100644 --- a/tests/manual/CMakeLists.txt +++ b/tests/manual/CMakeLists.txt @@ -18,7 +18,6 @@ if (QT_FEATURE_graphicsframecapture) add_subdirectory(graphicsframecapture) endif() add_subdirectory(highdpi) -add_subdirectory(inputmethodhints) add_subdirectory(keypadnavigation) add_subdirectory(keyevents) if(QT_FEATURE_opengl) diff --git a/tests/manual/inputmethodhints/CMakeLists.txt b/tests/manual/inputmethodhints/CMakeLists.txt deleted file mode 100644 index 491c9d5b596..00000000000 --- a/tests/manual/inputmethodhints/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (C) 2022 The Qt Company Ltd. -# SPDX-License-Identifier: BSD-3-Clause - -##################################################################### -## tst_inputmethodhints Binary: -##################################################################### - -qt_internal_add_manual_test(tst_inputmethodhints - GUI - SOURCES - inputmethodhints.cpp inputmethodhints.h inputmethodhints.ui - main.cpp - LIBRARIES - Qt::Gui - Qt::Widgets - ENABLE_AUTOGEN_TOOLS - uic -) 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)); -} diff --git a/tests/manual/inputmethodhints/inputmethodhints.h b/tests/manual/inputmethodhints/inputmethodhints.h deleted file mode 100644 index 24461d87b0c..00000000000 --- a/tests/manual/inputmethodhints/inputmethodhints.h +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only - -#ifndef INPUTMETHODHINTS_H -#define INPUTMETHODHINTS_H - -#include -#include "ui_inputmethodhints.h" - -class inputmethodhints : public QMainWindow -{ - Q_OBJECT - -public: - inputmethodhints(QWidget *parent = nullptr); - ~inputmethodhints(); - -public slots: - void checkboxChanged(int); - -private: - Ui::MainWindow ui; -}; - -#endif // INPUTMETHODHINTS_H diff --git a/tests/manual/inputmethodhints/inputmethodhints.pro b/tests/manual/inputmethodhints/inputmethodhints.pro deleted file mode 100644 index f253f723326..00000000000 --- a/tests/manual/inputmethodhints/inputmethodhints.pro +++ /dev/null @@ -1,10 +0,0 @@ -TEMPLATE = app -TARGET = tst_inputmethodhints - -QT += widgets - -HEADERS += inputmethodhints.h -SOURCES += main.cpp \ - inputmethodhints.cpp -FORMS += inputmethodhints.ui -RESOURCES += diff --git a/tests/manual/inputmethodhints/inputmethodhints.ui b/tests/manual/inputmethodhints/inputmethodhints.ui deleted file mode 100644 index d0dc01d61f4..00000000000 --- a/tests/manual/inputmethodhints/inputmethodhints.ui +++ /dev/null @@ -1,138 +0,0 @@ - - - MainWindow - - - - 0 - 0 - 360 - 640 - - - - MainWindow - - - - - - - 1 - - - - behaviour - - - - - - ImhHiddenText - - - - - - - ImhNoAutoUppercase - - - - - - - ImhPreferNumbers - - - - - - - ImhPreferUppercase - - - - - - - ImhPreferLowercase - - - - - - - ImhNoPredictiveText - - - - - - - - restrictions - - - - - - ImhDigitsOnly - - - - - - - ImhFormattedNumbersOnly - - - - - - - ImhUppercaseOnly - - - - - - - ImhLowercaseOnly - - - - - - - ImhDialableCharactersOnly - - - - - - - ImhEmailCharactersOnly - - - - - - - ImhUrlCharactersOnly - - - - - - - - - - - - - - - - diff --git a/tests/manual/inputmethodhints/main.cpp b/tests/manual/inputmethodhints/main.cpp deleted file mode 100644 index 1b511b91f8b..00000000000 --- a/tests/manual/inputmethodhints/main.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only - -#include "inputmethodhints.h" - -#include - -int main(int argc, char *argv[]) -{ - QApplication a(argc, argv); - inputmethodhints w; - w.showMaximized(); - return a.exec(); -} diff --git a/tests/manual/manual.pro b/tests/manual/manual.pro index d2774a6e6e5..0c8eb66b8c4 100644 --- a/tests/manual/manual.pro +++ b/tests/manual/manual.pro @@ -9,7 +9,6 @@ foreignwindows \ fontfeatures \ gestures \ highdpi \ -inputmethodhints \ keypadnavigation \ keyevents \ lance \