fix: multiple relations v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu, 13 Dec 2018 01:45:28 +0100
branchv_0
changeset 32 23018a2ed2a0
parent 31 47fb4bb3db45
child 33 ec98d2e080a0
fix: multiple relations
src/RelpipeChartMainWindow.cpp
src/RelpipeChartMainWindow.h
--- a/src/RelpipeChartMainWindow.cpp	Mon Dec 03 16:11:40 2018 +0100
+++ b/src/RelpipeChartMainWindow.cpp	Thu Dec 13 01:45:28 2018 +0100
@@ -46,6 +46,7 @@
 	tableView->setModel(currentModel);
 
 	if (currentChartWidget) currentChartWidget->endOfRelation();
+	splitter = new QSplitter(Qt::Orientation::Vertical, tabs);
 	currentChartWidget = new RelpipeChartWidget(currentModel, splitter);
 	splitter->addWidget(currentChartWidget);
 	splitter->addWidget(tableView);
--- a/src/RelpipeChartMainWindow.h	Mon Dec 03 16:11:40 2018 +0100
+++ b/src/RelpipeChartMainWindow.h	Thu Dec 13 01:45:28 2018 +0100
@@ -47,7 +47,7 @@
 private:
 	Ui::RelpipeChartMainWindow widget;
 	QTabWidget* tabs = new QTabWidget(this);
-	QSplitter* splitter = new QSplitter(Qt::Orientation::Vertical, tabs);
+	QSplitter* splitter;
 	RelpipeTableModel* currentModel;
 	RelpipeChartWidget* currentChartWidget;
 	QLabel* status = new QLabel();