Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqnxabstractvirtualkeyboard.cpp
Go to the documentation of this file.
1// Copyright (C) 2013 BlackBerry Limited. All rights reserved.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
7
9 : QObject(parent)
10 , m_height(0)
11 , m_visible(false)
12 , m_locale(QLocale::system())
13 , m_keyboardMode(Default)
14 , m_enterKeyType(DefaultReturn)
15{
16}
17
19{
20 if (mode == m_keyboardMode)
21 return;
22
23 m_keyboardMode = mode;
24
25 if (m_visible)
27}
28
30{
31 if (type == m_enterKeyType)
32 return;
33
34 m_enterKeyType = type;
35
36 if (m_visible)
38}
39
58
60{
61 if (height == m_height)
62 return;
63
64 const int effectiveHeight = this->height();
65
66 m_height = height;
67
68 if (effectiveHeight != this->height())
69 emit heightChanged(this->height());
70}
71
73{
74 if (visible == m_visible)
75 return;
76
77 const int effectiveHeight = height();
78
79 m_visible = visible;
80
81 emit visibilityChanged(visible);
82
83 if (effectiveHeight != height())
85}
86
88{
89 if (locale == m_locale)
90 return;
91
92 m_locale = locale;
93
95}
96
99{
100 switch (type) {
101 case Qt::EnterKeyDone:
102 return Done;
103 case Qt::EnterKeyGo:
104 return Go;
105 case Qt::EnterKeyNext:
106 return Next;
108 return Search;
109 case Qt::EnterKeySend:
110 return Send;
113 case Qt::EnterKeyPrevious: // unsupported
114 return DefaultReturn;
115 }
116 Q_UNREACHABLE();
117 return DefaultReturn;
118}
119
\inmodule QtCore
Definition qobject.h:103
void visibilityChanged(bool visible)
void localeChanged(const QLocale &locale)
void setLocale(const QLocale &locale)
QQnxAbstractVirtualKeyboard(QObject *parent=nullptr)
static EnterKeyType qtEnterKeyTypeToQnx(Qt::EnterKeyType type)
virtual void applyKeyboardOptions()=0
void heightChanged(int height)
Combined button and popup list for selecting options.
@ ImhUrlCharactersOnly
@ ImhTime
@ ImhFormattedNumbersOnly
@ ImhDigitsOnly
@ ImhEmailCharactersOnly
@ ImhHiddenText
@ ImhDialableCharactersOnly
@ ImhDate
EnterKeyType
@ EnterKeyNext
@ EnterKeySearch
@ EnterKeyGo
@ EnterKeyDone
@ EnterKeyPrevious
@ EnterKeyReturn
@ EnterKeySend
@ EnterKeyDefault
GLenum mode
GLint GLsizei GLsizei height
GLenum type
static QT_BEGIN_NAMESPACE const uint Default
Definition qsplitter_p.h:27
#define emit