Rev 88 | Rev 91 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 88 | Rev 89 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | #include <QMainWindow>
|
4 | #include <QMainWindow>
|
5 | #include <QStandardItemModel>
|
5 | #include <QStandardItemModel>
|
6 | #include <QStandardItem>
|
6 | #include <QStandardItem>
|
7 | #include <QTreeWidgetItem>
|
7 | #include <QTreeWidgetItem>
|
8 | #include <QTextCodec>
|
8 | #include <QTextCodec>
|
- | 9 | #include <QSqlDatabase>
|
|
- | 10 | ||
- | 11 | #include <QtGui>
|
|
9 | 12 | ||
10 | namespace Ui { |
13 | namespace Ui { |
11 | class MainWindow; |
14 | class MainWindow; |
12 | }
|
15 | }
|
13 | 16 | ||
Line 24... | Line 27... | ||
24 | Ui::MainWindow *ui; |
27 | Ui::MainWindow *ui; |
25 | 28 | ||
26 | QStandardItemModel *model; |
29 | QStandardItemModel *model; |
27 | QStandardItem *item; |
30 | QStandardItem *item; |
28 | QTreeWidgetItem *rootItem1, *rootItem2; |
31 | QTreeWidgetItem *rootItem1, *rootItem2; |
- | 32 | void openBase(); |
|
- | 33 | bool readModel(); |
|
- | 34 | void setupModelData(const QStringList &lines, QTreeWidgetItem *parent); |
|
29 | 35 | ||
30 | }; |
36 | }; |
31 | 37 | ||
32 | #endif // MAINWINDOW_H
|
38 | #endif // MAINWINDOW_H
|