Mercurial > hg > easaier-soundaccess
diff sv/main/main.cpp @ 58:b3c3a5fa185f
frontend with easaier's look
author | benoitrigolleau |
---|---|
date | Fri, 25 May 2007 12:36:35 +0000 |
parents | 41f1491c841b |
children | 3a99e1897d18 |
line wrap: on
line diff
--- a/sv/main/main.cpp Wed May 23 15:11:52 2007 +0000 +++ b/sv/main/main.cpp Fri May 25 12:36:35 2007 +0000 @@ -21,6 +21,7 @@ #include "base/PropertyContainer.h" #include "base/Preferences.h" #include "widgets/TipDialog.h" +#include "widgets/EasaierStyle.h" #include <QMetaType> #include <QApplication> @@ -32,6 +33,7 @@ #include <QIcon> #include <QSessionManager> #include <QPlastiqueStyle> +#include <QSplashScreen> #include <iostream> #include <signal.h> @@ -195,8 +197,13 @@ int main(int argc, char **argv) { + SVApplication application(argc, argv); + QSplashScreen *splash = new QSplashScreen; + splash->setPixmap(QPixmap(":icons/splashscreen.png")); + splash->show(); + QStringList args = application.arguments(); signal(SIGINT, signalHandler); @@ -225,7 +232,8 @@ QApplication::setOrganizationDomain("easaier.org"); QApplication::setApplicationName("sound-access"); QApplication::setWindowIcon(QIcon(":icons/svicon16.png")); - QApplication::setStyle(new QPlastiqueStyle); + //QApplication::setStyle(new QPlastiqueStyle); + QApplication::setStyle(new EasaierStyle); QString language = QLocale::system().name(); @@ -265,7 +273,11 @@ } settings.endGroup(); + //delay(5000); + gui.show(); + splash->finish(&gui); + delete splash; // The MainWindow class seems to have trouble dealing with this if // it tries to adapt to this preference before the constructor is