diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fa25109..bc4fef1 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,25 +1,28 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src ${CMAKE_CURRENT_BINARY_DIR}/../src) add_executable(inserthtmldialog_demo inserthtmldialog_demo.cpp) set(inserthtmldialog_demo_LIBS KF5PimTextEdit Qt5::Widgets KF5::SyntaxHighlighting) target_link_libraries(inserthtmldialog_demo ${inserthtmldialog_demo_LIBS}) set(slidecontainer_gui_SRCS slidecontainer_gui.cpp) add_executable(slidecontainer_gui ${slidecontainer_gui_SRCS}) target_link_libraries(slidecontainer_gui Qt5::Core Qt5::Gui Qt5::Widgets KF5PimTextEdit ) add_executable(showemojiunicode_gui showemojiunicode_gui.cpp) set(showemojiunicode_gui_LIBS KF5PimTextEdit Qt5::Widgets) target_link_libraries(showemojiunicode_gui ${showemojiunicode_gui_LIBS}) add_executable(showemoticonlistwidgetselector_gui showemoticonlistwidgetselector_gui.cpp) set(showemoticonlistwidgetselector_gui_LIBS KF5PimTextEdit Qt5::Widgets) target_link_libraries(showemoticonlistwidgetselector_gui ${showemoticonlistwidgetselector_gui_LIBS}) +add_executable(showemoticonunicodetab_gui showemoticonunicodetab_gui.cpp) +set(showemoticonunicodetab_gui_LIBS KF5PimTextEdit Qt5::Widgets) +target_link_libraries(showemoticonunicodetab_gui ${showemoticonunicodetab_gui_LIBS}) diff --git a/tests/showemoticonunicodetab_gui.cpp b/tests/showemoticonunicodetab_gui.cpp new file mode 100644 index 0000000..5b69061 --- /dev/null +++ b/tests/showemoticonunicodetab_gui.cpp @@ -0,0 +1,51 @@ +/* + This file is part of KDE. + + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published by + the Free Software Foundation; either version 2 of the License, or (at your + option) any later version. + + This library is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public + License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. +*/ +#include +#include +#include +#include + +#include "textutils.h" +#include "emoticon/emoticonunicodetab.h" + +class Window : public QWidget +{ + Q_OBJECT +public: + explicit Window(QWidget *parent = nullptr) + : QWidget(parent) + { + QVBoxLayout *mainLayout = new QVBoxLayout(this); + KPIMTextEdit::EmoticonUnicodeTab *w = new KPIMTextEdit::EmoticonUnicodeTab(this); + mainLayout->addWidget(w); + } +}; + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + Window window; + + window.show(); + return app.exec(); +} + +#include "showemoticonunicodetab_gui.moc"