22 lines
704 B
C++
22 lines
704 B
C++
#include "mainwindow.h"
|
|
#include "loaderdialog.h"
|
|
|
|
#include <QApplication>
|
|
#include <QObject>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
QApplication a(argc, argv);
|
|
MainWindow w;
|
|
// w.show();
|
|
LoaderDialog loader;
|
|
QObject::connect(&loader, SIGNAL(sendPostNummer(int,QString)), &w, SLOT(mottaPostNrSted(int,QString)));
|
|
QObject::connect(&loader, SIGNAL(finish()), &w, SLOT(splashDone()));
|
|
loader.setWindowFlags(Qt::Window | Qt::FramelessWindowHint);
|
|
loader.setAttribute(Qt::WA_NoSystemBackground);
|
|
loader.setAttribute(Qt::WA_TranslucentBackground);
|
|
loader.setAttribute(Qt::WA_PaintOnScreen);
|
|
loader.show();
|
|
loader.load();
|
|
return a.exec();
|
|
}
|