Révision aec16e96
main.cpp | ||
---|---|---|
24 | 24 |
#include "version.h" |
25 | 25 |
#include "webphotoalbum.h" |
26 | 26 |
|
27 |
void debugOutput(QtMsgType type, const char *msg) |
|
28 |
{ |
|
29 |
switch (type) { |
|
30 |
case QtDebugMsg: |
|
31 |
#ifndef QT_NO_DEBUG |
|
32 |
fprintf(stderr, "Debug: %s\n", msg); |
|
33 |
#endif |
|
34 |
break; |
|
35 |
case QtWarningMsg: |
|
36 |
#ifndef QT_NO_DEBUG |
|
37 |
fprintf(stderr, "Warning: %s\n", msg); |
|
38 |
#endif |
|
39 |
break; |
|
40 |
case QtCriticalMsg: |
|
41 |
fprintf(stderr, "Critical: %s\n", msg); |
|
42 |
break; |
|
43 |
case QtFatalMsg: |
|
44 |
fprintf(stderr, "Fatal: %s\n", msg); |
|
45 |
abort(); |
|
46 |
} |
|
47 |
} |
|
48 |
|
|
49 | 27 |
int main(int argc, char *argv[]) |
50 | 28 |
{ |
51 |
// qInstallMsgHandler(debugOutput); |
|
52 |
|
|
53 | 29 |
AbulEduApplicationV1 a(argc, argv,VER_INTERNALNAME_STR, VER_PRODUCTVERSION_STR, VER_COMPANYDOMAIN_STR, VER_COMPANYNAME_STR); |
54 | 30 |
a.setAbeApplicationLongName(QObject::trUtf8(VER_FILEDESCRIPTION_STR)); |
55 | 31 |
WebPhotoAlbum w; |
Formats disponibles : Unified diff