Rev | Line | |
---|
[238] | 1 | #include <QtGui/QApplication> |
---|
| 2 | #include "debug.h" |
---|
| 3 | #include "sichtsystemgui.h" |
---|
| 4 | |
---|
| 5 | int main(int argc, char *argv[]) |
---|
| 6 | { |
---|
| 7 | // QApplication initialisieren |
---|
| 8 | QApplication a(argc, argv); |
---|
| 9 | a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) ); |
---|
| 10 | |
---|
| 11 | // DEBUG-Handler installieren |
---|
| 12 | QTextEdit *debug = new QTextEdit; |
---|
| 13 | debug->hide(); |
---|
| 14 | setDebugPointer( debug ); |
---|
| 15 | qInstallMsgHandler( myMessageOutput ); |
---|
| 16 | qDebug("MessageHandler installiert"); |
---|
| 17 | QSettings settings("OSG-Visual", "Visual-GUI 1.0"); |
---|
| 18 | debug->restoreGeometry(settings.value("debugwindow/geometry").toByteArray()); |
---|
| 19 | |
---|
| 20 | //QTranslator translator; |
---|
| 21 | //qDebug() << "Translator loaded: " << translator.load( QString("chm3read_en") ); |
---|
| 22 | //a.installTranslator( &translator ); |
---|
| 23 | |
---|
| 24 | SichtsystemGUI w; |
---|
| 25 | w.setDebug( debug ); |
---|
| 26 | return a.exec(); |
---|
| 27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.