mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-03-07 11:59:57 +03:00
21 lines
459 B
C++
21 lines
459 B
C++
#include "mainwindow.h"
|
|
|
|
#include <QApplication>
|
|
#include <QTranslator>
|
|
#include <QLocale>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
QTranslator translator;
|
|
if (translator.load(QLocale(), QLatin1String("kdiskinfo"), QLatin1String("_"), QLatin1String(":/translations"))) {
|
|
a.installTranslator(&translator);
|
|
}
|
|
|
|
MainWindow w;
|
|
w.setWindowIcon(QIcon(":/icons/icon.svg"));
|
|
w.show();
|
|
return a.exec();
|
|
}
|