You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
818 B
C++
42 lines
818 B
C++
#include "cmainwindow.h"
|
|
|
|
#include <QApplication>
|
|
#include <QSettings>
|
|
|
|
#include "csplashscreen.h"
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
a.setApplicationVersion(APP_VERSION);
|
|
a.setApplicationDisplayName("fontManager");
|
|
a.setOrganizationName("WIN-DESIGN");
|
|
a.setOrganizationDomain("windesign.at");
|
|
a.setApplicationName("fontManager");
|
|
|
|
QSettings settings;
|
|
|
|
QPixmap pixmap(":/images/splash.png");
|
|
QFont splashFont;
|
|
cSplashScreen* lpSplash = new cSplashScreen(pixmap, splashFont);
|
|
|
|
lpSplash->show();
|
|
a.processEvents();
|
|
|
|
lpSplash->showStatusMessage(QObject::tr("<center>initializing...</denter>"));
|
|
|
|
cMainWindow w(lpSplash);
|
|
|
|
if(settings.value("main/maximized").toBool())
|
|
w.showMaximized();
|
|
else
|
|
w.show();
|
|
|
|
lpSplash->finish(&w);
|
|
delete lpSplash;
|
|
|
|
return a.exec();
|
|
}
|