add TextInput
This commit is contained in:
parent
374f39c87b
commit
2f2d5cf122
12
playground/inputpanel/TextInput.cpp
Normal file
12
playground/inputpanel/TextInput.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include "TextInput.h"
|
||||||
|
|
||||||
|
TextInput::TextInput( QQuickItem* parent )
|
||||||
|
: QQuickTextInput( parent )
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
TextInput::~TextInput()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
13
playground/inputpanel/TextInput.h
Normal file
13
playground/inputpanel/TextInput.h
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#ifndef TEXTINPUT_H
|
||||||
|
#define TEXTINPUT_H
|
||||||
|
|
||||||
|
#include <private/qquicktextinput_p.h>
|
||||||
|
|
||||||
|
class TextInput : public QQuickTextInput
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
TextInput( QQuickItem* parent );
|
||||||
|
virtual ~TextInput();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // TEXTINPUT_H
|
@ -5,4 +5,8 @@ TARGET = inputpanel
|
|||||||
DEFINES += PLUGIN_PATH=$$clean_path( $$QSK_OUT_ROOT/plugins )
|
DEFINES += PLUGIN_PATH=$$clean_path( $$QSK_OUT_ROOT/plugins )
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
main.cpp
|
main.cpp \
|
||||||
|
TextInput.cpp
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
TextInput.h
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#include "TextInput.h"
|
||||||
|
|
||||||
#include <SkinnyFont.h>
|
#include <SkinnyFont.h>
|
||||||
#include <SkinnyShortcut.h>
|
#include <SkinnyShortcut.h>
|
||||||
|
|
||||||
@ -21,8 +23,6 @@
|
|||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QFontMetricsF>
|
#include <QFontMetricsF>
|
||||||
|
|
||||||
#include <private/qquicktextinput_p.h>
|
|
||||||
|
|
||||||
#define STRINGIFY(x) #x
|
#define STRINGIFY(x) #x
|
||||||
#define STRING(x) STRINGIFY(x)
|
#define STRING(x) STRINGIFY(x)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user