ListElements/ModelViewList/main.cpp
author John Kern <johnk@symbian.org>
Thu, 09 Sep 2010 14:29:26 -0700
changeset 46 702dd26c0f4d
parent 45 b23ec2b62c45
permissions -rwxr-xr-x
a little clean up
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
45
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
     1
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
     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
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
     5
#include <QApplication>
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
     6
#include <QPushButton>
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
     7
#include <QVBoxLayout>
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
     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
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
    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
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
    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
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
    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
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
    24
b23ec2b62c45 resizing layouts
wesleyt@symbian.org
parents: 42
diff changeset
    25
42
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    26
}