diff --git a/playground/inputpanel/TextInput.cpp b/playground/inputpanel/TextInput.cpp new file mode 100644 index 00000000..8d43e2f3 --- /dev/null +++ b/playground/inputpanel/TextInput.cpp @@ -0,0 +1,12 @@ +#include "TextInput.h" + +TextInput::TextInput( QQuickItem* parent ) + : QQuickTextInput( parent ) +{ + +} + +TextInput::~TextInput() +{ + +} diff --git a/playground/inputpanel/TextInput.h b/playground/inputpanel/TextInput.h new file mode 100644 index 00000000..3fe56eeb --- /dev/null +++ b/playground/inputpanel/TextInput.h @@ -0,0 +1,13 @@ +#ifndef TEXTINPUT_H +#define TEXTINPUT_H + +#include + +class TextInput : public QQuickTextInput +{ + public: + TextInput( QQuickItem* parent ); + virtual ~TextInput(); +}; + +#endif // TEXTINPUT_H diff --git a/playground/inputpanel/inputpanel.pro b/playground/inputpanel/inputpanel.pro index 499ddb20..3b9b2535 100644 --- a/playground/inputpanel/inputpanel.pro +++ b/playground/inputpanel/inputpanel.pro @@ -5,4 +5,8 @@ TARGET = inputpanel DEFINES += PLUGIN_PATH=$$clean_path( $$QSK_OUT_ROOT/plugins ) SOURCES += \ - main.cpp + main.cpp \ + TextInput.cpp + +HEADERS += \ + TextInput.h diff --git a/playground/inputpanel/main.cpp b/playground/inputpanel/main.cpp index defd4ce4..0e485801 100644 --- a/playground/inputpanel/main.cpp +++ b/playground/inputpanel/main.cpp @@ -3,6 +3,8 @@ * This file may be used under the terms of the 3-clause BSD License *****************************************************************************/ +#include "TextInput.h" + #include #include @@ -21,8 +23,6 @@ #include #include -#include - #define STRINGIFY(x) #x #define STRING(x) STRINGIFY(x)