File indexing completed on 2024-12-22 04:28:10
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "plaintexteditor/plaintexteditorwidget.h" 0008 0009 #include <QApplication> 0010 #include <QCommandLineParser> 0011 #include <QStandardPaths> 0012 0013 int main(int argc, char **argv) 0014 { 0015 QApplication app(argc, argv); 0016 QStandardPaths::setTestModeEnabled(true); 0017 QCommandLineParser parser; 0018 parser.addVersionOption(); 0019 parser.addHelpOption(); 0020 parser.process(app); 0021 0022 auto w = new TextCustomEditor::PlainTextEditorWidget(); 0023 w->resize(800, 600); 0024 w->show(); 0025 app.exec(); 0026 delete w; 0027 return 0; 0028 }