pineapple-notepad/main.cpp
2024-06-22 20:01:42 +08:00

36 lines
998 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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"));
KAboutData::setApplicationData(aboutData);
a.setWindowIcon(QIcon::fromTheme(QStringLiteral("accessories-text-editor")));
MainWindow mw;
mw.show();
return a.exec();
}