File indexing completed on 2024-06-16 04:27:57
0001 /* 0002 This file is part of KDE. 0003 0004 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 #include <QApplication> 0009 #include <QVBoxLayout> 0010 #include <QWidget> 0011 0012 #include "emoticontexteditselector.h" 0013 0014 class Window : public QWidget 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit Window(QWidget *parent = nullptr) 0019 : QWidget(parent) 0020 { 0021 auto mainLayout = new QVBoxLayout(this); 0022 auto w = new TextEmoticonsWidgets::EmoticonTextEditSelector(this); 0023 w->loadEmoticons(); 0024 0025 mainLayout->addWidget(w); 0026 } 0027 }; 0028 0029 int main(int argc, char *argv[]) 0030 { 0031 QApplication app(argc, argv); 0032 Window window; 0033 0034 window.show(); 0035 return app.exec(); 0036 } 0037 0038 #include "emoticontexteditselector_gui.moc"