stationListModel(new StationListModel(this)),
stationListView(new StationListView(stationListModel, stationView))
{
+ stationListModel->load("/opt/usr/share/apps/quandoparte/stations/stations.qpl");
+
connect(stationListView, SIGNAL(stationSelected(const QString &)),
SLOT(queryStation(const QString &)));
connect(stationListView, SIGNAL(aboutTriggered()),
SLOT(setShowingArrivals(bool)));
readSettings();
+ qDebug() << "found" << stationListModel->rowCount() << "stations";
#if defined(Q_WS_S60)
stationView->showMaximized();
#else
resources/stations/stations.qpl
message($${OTHER_FILES})
+
unix:!symbian {
maemo5 {
target.path = /opt/usr/bin
INSTALLS += icon64
INSTALLS += css
INSTALLS += i18n
+ INSTALLS += stations
}
QMainWindow(parent),
ui(new Ui::StationListView),
viewSelectionGroup(new QActionGroup(0)),
- stationListModel(new QStringListModel(this)),
+ stationListModel(model),
filterModel(new QSortFilterProxyModel(this)),
keyPressForwarder(new KeyPressForwarder(this))
private:
Ui::StationListView *ui;
QActionGroup *viewSelectionGroup;
- QStringListModel *stationListModel;
+ StationListModel *stationListModel;
QSortFilterProxyModel *filterModel;
KeyPressForwarder *keyPressForwarder;
};