@@ -55,6 +55,9 VisualizationWidget::VisualizationWidget(QWidget *parent) | |||
|
55 | 55 | |
|
56 | 56 | connect(addTabViewButton, &QToolButton::clicked, addTabView); |
|
57 | 57 | connect(ui->tabWidget, &QTabWidget::tabCloseRequested, removeTabView); |
|
58 | ||
|
59 | // Adds default tab | |
|
60 | addTabView(); | |
|
58 | 61 | } |
|
59 | 62 | |
|
60 | 63 | VisualizationWidget::~VisualizationWidget() |
@@ -17,25 +17,12 | |||
|
17 | 17 | <item> |
|
18 | 18 | <widget class="QTabWidget" name="tabWidget"> |
|
19 | 19 | <property name="currentIndex"> |
|
20 |
<number> |
|
|
20 | <number>-1</number> | |
|
21 | 21 | </property> |
|
22 | <widget class="VisualizationTabWidget" name="firstView"> | |
|
23 | <attribute name="title"> | |
|
24 | <string>View 1</string> | |
|
25 | </attribute> | |
|
26 | </widget> | |
|
27 | 22 | </widget> |
|
28 | 23 | </item> |
|
29 | 24 | </layout> |
|
30 | 25 | </widget> |
|
31 | <customwidgets> | |
|
32 | <customwidget> | |
|
33 | <class>VisualizationTabWidget</class> | |
|
34 | <extends>QWidget</extends> | |
|
35 | <header location="global">Visualization/VisualizationTabWidget.h</header> | |
|
36 | <container>1</container> | |
|
37 | </customwidget> | |
|
38 | </customwidgets> | |
|
39 | 26 | <resources/> |
|
40 | 27 | <connections/> |
|
41 | 28 | </ui> |
General Comments 0
You need to be logged in to leave comments.
Login now