40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
#include <QApplication>
|
||
|
||
#include "mainwindow.h"
|
||
|
||
#include <KAboutData>
|
||
#include <KLocalizedString>
|
||
#include <KIconTheme>
|
||
#include <KStyleManager>
|
||
|
||
int main(int argc, char *argv[])
|
||
{
|
||
KIconTheme::initTheme();
|
||
|
||
QApplication a(argc, argv);
|
||
|
||
KStyleManager::initStyle();
|
||
|
||
KLocalizedString::setApplicationDomain(QByteArrayLiteral("pineapple-notepad"));
|
||
|
||
KAboutData aboutData(QStringLiteral("pineapple-notepad"),
|
||
"Pineapple Notepad(迫真)",
|
||
QStringLiteral("0.1"),
|
||
"A Scintilla-based Text Editor",
|
||
KAboutLicense::Unknown,
|
||
QString(),
|
||
QString(),
|
||
QStringLiteral("https://blumia.net"));
|
||
aboutData.addComponent("Scintilla", "A free source code editing component.",
|
||
"5.5.0", "https://scintilla.org/");
|
||
aboutData.addComponent("Lexilla", "A library of lexers that can be used with Scintilla.",
|
||
"5.3.2", "https://www.scintilla.org/Lexilla.html");
|
||
KAboutData::setApplicationData(aboutData);
|
||
a.setWindowIcon(QIcon::fromTheme(QStringLiteral("accessories-text-editor")));
|
||
|
||
MainWindow mw;
|
||
mw.show();
|
||
|
||
return a.exec();
|
||
}
|