qt5
Last change
on this file since 76cde75 was
76cde75,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
removed schedule resource file, which was used for testing
- import schedule dialog replaces it's functionality
|
-
Property mode set to
100644
|
File size:
833 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 | |
---|
13 | QApplication a(argc, argv); |
---|
14 | QApplication::setWindowIcon(QIcon(":/icons/fosdem.png")); |
---|
15 | |
---|
16 | QWidget *window; |
---|
17 | #ifdef MAEMO |
---|
18 | // if the app is run with two cmd-line arguments |
---|
19 | // an alarm dialog is to be displayed |
---|
20 | // Usage: $ ./fosdem eventId alarmId |
---|
21 | // Example: $ ./fosdem 521 13 |
---|
22 | if(argc==3) |
---|
23 | window = new AlarmDialog(argc,argv); |
---|
24 | else if(argc==2) // display Event dialog automatically |
---|
25 | window = new MainWindow(atoi(argv[1])); // eventId = argv[1] |
---|
26 | else |
---|
27 | window = new MainWindow; |
---|
28 | #else |
---|
29 | window = new MainWindow; |
---|
30 | #endif /* MAEMO */ |
---|
31 | window->show(); |
---|
32 | return a.exec(); |
---|
33 | } |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.