ListElements/EasyStreet/mainwindow.h
author John Kern <johnk@symbian.org>
Fri, 03 Sep 2010 10:38:13 -0700
changeset 42 b9716e8867f1
permissions -rwxr-xr-x
checking in example; variations on List Widgets
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
42
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
#ifndef MAINWINDOW_H
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
     2
#define MAINWINDOW_H
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
     3
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
     4
#include <QMainWindow>
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
     5
#include <QListWidget>
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
     6
#include <QStringList>
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
     7
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
     8
namespace Ui {
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
    class MainWindow;
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
}
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    12
class MainWindow : public QMainWindow
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    13
{
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    14
    Q_OBJECT
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    15
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    16
public:
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    17
    explicit MainWindow(QWidget *parent = 0);
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    18
    ~MainWindow();
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    19
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    20
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    21
public slots:
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    22
    void displayBird( QListWidgetItem * item );
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    23
    // void on_birdList_itemClicked(QListWidgetItem * );
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    24
private:
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    25
    QStringList birds;
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    26
    QListWidget *birdList;
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    27
    Ui::MainWindow *ui;
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    28
};
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    29
b9716e8867f1 checking in example; variations on List Widgets
John Kern <johnk@symbian.org>
parents:
diff changeset
    30
#endif // MAINWINDOW_H