qt5
Last change
on this file since 6bd729b was
6bd729b,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
work on alarm
|
-
Property mode set to
100644
|
File size:
736 bytes
|
Line | |
---|
1 | #include <mainwindow.h> |
---|
2 | |
---|
3 | #include <QtGui/QApplication> |
---|
4 | #ifdef MAEMO |
---|
5 | #include <alarmdialog.h> |
---|
6 | #endif /* MAEMO */ |
---|
7 | |
---|
8 | int main(int argc, char *argv[]) |
---|
9 | { |
---|
10 | Q_INIT_RESOURCE(icons); |
---|
11 | Q_INIT_RESOURCE(maps); |
---|
12 | Q_INIT_RESOURCE(schedule); |
---|
13 | |
---|
14 | QApplication a(argc, argv); |
---|
15 | QApplication::setWindowIcon(QIcon(":/icons/fosdem.png")); |
---|
16 | |
---|
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(); |
---|
31 | return a.exec(); |
---|
32 | } |
---|
33 | |
---|
Note: See
TracBrowser
for help on using the repository browser.