author | John Kern <johnk@symbian.org> |
Thu, 09 Sep 2010 14:29:26 -0700 | |
changeset 46 | 702dd26c0f4d |
parent 45 | b23ec2b62c45 |
permissions | -rwxr-xr-x |
45 | 1 |
|
2 |
||
42
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
3 |
#include <QtGui/QApplication> |
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
4 |
#include "mainwindow.h" |
45 | 5 |
#include <QApplication> |
6 |
#include <QPushButton> |
|
7 |
#include <QVBoxLayout> |
|
8 |
#include <QHBoxLayout> |
|
42
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
9 |
|
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
10 |
int main(int argc, char *argv[]) |
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
11 |
{ |
45 | 12 |
QApplication::setAttribute(Qt::AA_S60DontConstructApplicationPanes); |
42
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
13 |
QApplication a(argc, argv); |
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
14 |
MainWindow w; |
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
15 |
w.setWindowTitle("Zodiac"); |
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
16 |
#if defined(Q_WS_S60) |
45 | 17 |
w.showFullScreen(); |
42
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
18 |
#else |
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
19 |
w.show(); |
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
20 |
#endif |
45 | 21 |
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) ); |
42
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
22 |
|
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
23 |
return a.exec(); |
45 | 24 |
|
25 |
||
42
b9716e8867f1
checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
26 |
} |