-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (24 loc) · 703 Bytes
/
main.cpp
File metadata and controls
30 lines (24 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "QtGui/qapplication.h"
#include "database.h"
#include "pandasoft.h"
#include "qlocale.h"
#include "qsplashscreen.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QSplashScreen *splash = new QSplashScreen;
splash->setPixmap(QPixmap(":/images/pandasoft.png"));
splash->show();
Qt::Alignment topRight = Qt::AlignRight | Qt::AlignTop;
splash->showMessage(QObject::tr("Cargando base de datos..."),
topRight, Qt::red);
if (!createConnection())
return 1;
splash->showMessage(QObject::tr("Cargando Login..."),
topRight, Qt::red);
pandasoft w;
w.show();
splash->finish(&w);
delete splash;
return app.exec();
}