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>
This commit is contained in:
parent
16fc1e0778
commit
d19d2d261e
@ -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)
|
||||
|
@ -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
|
||||
)
|
@ -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));
|
||||
}
|
@ -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 <QMainWindow>
|
||||
#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
|
@ -1,10 +0,0 @@
|
||||
TEMPLATE = app
|
||||
TARGET = tst_inputmethodhints
|
||||
|
||||
QT += widgets
|
||||
|
||||
HEADERS += inputmethodhints.h
|
||||
SOURCES += main.cpp \
|
||||
inputmethodhints.cpp
|
||||
FORMS += inputmethodhints.ui
|
||||
RESOURCES +=
|
@ -1,138 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>MainWindow</class>
|
||||
<widget class="QMainWindow" name="MainWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>360</width>
|
||||
<height>640</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>MainWindow</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
<string>behaviour</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbHiddenText">
|
||||
<property name="text">
|
||||
<string>ImhHiddenText</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbNoAutoUppercase">
|
||||
<property name="text">
|
||||
<string>ImhNoAutoUppercase</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbPreferNumbers">
|
||||
<property name="text">
|
||||
<string>ImhPreferNumbers</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbPreferUpperCase">
|
||||
<property name="text">
|
||||
<string>ImhPreferUppercase</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbPreferLowercase">
|
||||
<property name="text">
|
||||
<string>ImhPreferLowercase</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbNoPredictiveText">
|
||||
<property name="text">
|
||||
<string>ImhNoPredictiveText</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab_2">
|
||||
<attribute name="title">
|
||||
<string>restrictions</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbDigitsOnly">
|
||||
<property name="text">
|
||||
<string>ImhDigitsOnly</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbFormattedNumbersOnly">
|
||||
<property name="text">
|
||||
<string>ImhFormattedNumbersOnly</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbUppercaseOnly">
|
||||
<property name="text">
|
||||
<string>ImhUppercaseOnly</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbLowercaseOnly">
|
||||
<property name="text">
|
||||
<string>ImhLowercaseOnly</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbDialableOnly">
|
||||
<property name="text">
|
||||
<string>ImhDialableCharactersOnly</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbEmailOnly">
|
||||
<property name="text">
|
||||
<string>ImhEmailCharactersOnly</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="cbUrlOnly">
|
||||
<property name="text">
|
||||
<string>ImhUrlCharactersOnly</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -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 <QApplication>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
inputmethodhints w;
|
||||
w.showMaximized();
|
||||
return a.exec();
|
||||
}
|
@ -9,7 +9,6 @@ foreignwindows \
|
||||
fontfeatures \
|
||||
gestures \
|
||||
highdpi \
|
||||
inputmethodhints \
|
||||
keypadnavigation \
|
||||
keyevents \
|
||||
lance \
|
||||
|
Loading…
x
Reference in New Issue
Block a user