- Timestamp:
- 01/19/10 14:45:57 (13 years ago)
- Branches:
- master, qt5
- Children:
- cfd615d
- Parents:
- 0c658c1
- Location:
- src/app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/app/app.pro
r0c658c1 r6bd729b 1 include(../global.pri) 1 2 TEMPLATE = app 2 3 TARGET = fosdem … … 9 10 DEPENDPATH += . ../gui 10 11 TARGETDEPS += $$DESTDIR/libmvc.a $$DESTDIR/libgui.a $$DESTDIR/libsql.a 12 maemo { 13 LIBS += -L$$DESTDIR -lqalarm -lalarm 14 INCLUDEPATH += ../alarm 15 DEPENDPATH += ../alarm 16 TARGETDEPS += $$DESTDIR/libqalarm.a 17 } 11 18 12 19 SOURCES += main.cpp -
src/app/main.cpp
r0c658c1 r6bd729b 2 2 3 3 #include <QtGui/QApplication> 4 #ifdef MAEMO 5 #include <alarmdialog.h> 6 #endif /* MAEMO */ 4 7 5 8 int main(int argc, char *argv[]) … … 12 15 QApplication::setWindowIcon(QIcon(":/icons/fosdem.png")); 13 16 14 MainWindow w; 15 w.show(); 17 QWidget *window; 18 #ifdef MAEMO 19 // if the app is run with two cmd-line arguments 20 // an alarm dialog is to be displayed 21 // Usage: $ ./fosdem eventId alarmId 22 // Example: $ ./fosdem 521 13 23 if(argc==3) 24 window = new AlarmDialog(argc,argv); 25 else 26 window = new MainWindow; 27 #else 28 window = new MainWindow; 29 #endif /* MAEMO */ 30 window->show(); 16 31 return a.exec(); 17 32 }
Note: See TracChangeset
for help on using the changeset viewer.