author | František Kučera <franta-hg@frantovo.cz> |
Fri, 28 Sep 2018 13:23:21 +0200 | |
branch | v_0 |
changeset 12 | a45d1cac365e |
parent 6 | 5acb6b487caf |
child 13 | c84042d014c9 |
permissions | -rw-r--r-- |
12
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
1 |
#include <QTabWidget> |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
2 |
#include <QPushButton> |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
3 |
#include <QLabel> |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
4 |
#include <QStatusBar> |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
5 |
#include <QSplitter> |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
6 |
|
4
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
#include "RelpipeChartMainWindow.h" |
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
|
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
RelpipeChartMainWindow::RelpipeChartMainWindow() { |
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
widget.setupUi(this); |
12
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
11 |
|
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
12 |
QTabWidget* tabs = new QTabWidget(this); |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
13 |
|
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
14 |
for (int i = 0; i < 5; i++) { |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
15 |
QSplitter* splitter = new QSplitter(Qt::Orientation::Vertical, tabs); |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
16 |
splitter->addWidget(new QPushButton("here will be the chart", splitter)); |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
17 |
splitter->addWidget(new QPushButton("here will be the table", splitter)); |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
18 |
tabs->addTab(splitter, "relation_name"); |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
19 |
} |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
20 |
|
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
21 |
//statusBar()->addWidget(new QPushButton("xxx", widget.statusbar)); |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
22 |
statusBar()->addWidget(new QLabel("Loading relations...", widget.statusbar)); |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
23 |
|
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
24 |
setCentralWidget(tabs); |
a45d1cac365e
splitter and component placeholders
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
25 |
|
4
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
} |
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
|
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
28 |
RelpipeChartMainWindow::~RelpipeChartMainWindow() { |
1622c087f3ea
add main window, compile Qt .ui file
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
} |