mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
26 lines
548 B
C++
26 lines
548 B
C++
#include "vmainwindow.h"
|
|
#include <QApplication>
|
|
#include <QFile>
|
|
#include <QTextCodec>
|
|
#include "utils/vutils.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
QTextCodec *codec = QTextCodec::codecForName("UTF8");
|
|
if (codec) {
|
|
QTextCodec::setCodecForLocale(codec);
|
|
}
|
|
VMainWindow w;
|
|
w.show();
|
|
|
|
QString style = VUtils::readFileFromDisk(":/resources/vnote.qss");
|
|
if (!style.isEmpty()) {
|
|
VUtils::processStyle(style);
|
|
app.setStyleSheet(style);
|
|
}
|
|
|
|
return app.exec();
|
|
}
|