@@ -93,11 +93,7 MainWindow::MainWindow(QWidget *parent) | |||||
93 | impl->m_CatalogExplorer->setVisualizationWidget(m_Ui->view); |
|
93 | impl->m_CatalogExplorer->setVisualizationWidget(m_Ui->view); | |
94 |
|
94 | |||
95 |
|
95 | |||
96 | auto leftSidePane = m_Ui->leftInspectorSidePane->sidePane(); |
|
96 | ||
97 | auto openLeftInspectorAction = new QAction{QIcon{ |
|
|||
98 | ":/icones/previous.png", |
|
|||
99 | }, |
|
|||
100 | tr("Show/hide the left inspector"), this}; |
|
|||
101 |
|
97 | |||
102 |
|
98 | |||
103 | auto spacerLeftTop = new QWidget{}; |
|
99 | auto spacerLeftTop = new QWidget{}; | |
@@ -106,16 +102,6 MainWindow::MainWindow(QWidget *parent) | |||||
106 | auto spacerLeftBottom = new QWidget{}; |
|
102 | auto spacerLeftBottom = new QWidget{}; | |
107 | spacerLeftBottom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
103 | spacerLeftBottom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); | |
108 |
|
104 | |||
109 | leftSidePane->addWidget(spacerLeftTop); |
|
|||
110 | leftSidePane->addAction(openLeftInspectorAction); |
|
|||
111 | leftSidePane->addWidget(spacerLeftBottom); |
|
|||
112 |
|
||||
113 |
|
||||
114 | auto rightSidePane = m_Ui->rightInspectorSidePane->sidePane(); |
|
|||
115 | auto openRightInspectorAction = new QAction{QIcon{ |
|
|||
116 | ":/icones/next.png", |
|
|||
117 | }, |
|
|||
118 | tr("Show/hide the right inspector"), this}; |
|
|||
119 |
|
105 | |||
120 | auto spacerRightTop = new QWidget{}; |
|
106 | auto spacerRightTop = new QWidget{}; | |
121 | spacerRightTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
107 | spacerRightTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); | |
@@ -123,12 +109,6 MainWindow::MainWindow(QWidget *parent) | |||||
123 | auto spacerRightBottom = new QWidget{}; |
|
109 | auto spacerRightBottom = new QWidget{}; | |
124 | spacerRightBottom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
110 | spacerRightBottom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); | |
125 |
|
111 | |||
126 | rightSidePane->addWidget(spacerRightTop); |
|
|||
127 | rightSidePane->addAction(openRightInspectorAction); |
|
|||
128 | rightSidePane->addWidget(spacerRightBottom); |
|
|||
129 |
|
||||
130 | openLeftInspectorAction->setCheckable(true); |
|
|||
131 | openRightInspectorAction->setCheckable(true); |
|
|||
132 |
|
112 | |||
133 | auto openInspector = [this](bool checked, bool right, auto action) { |
|
113 | auto openInspector = [this](bool checked, bool right, auto action) { | |
134 |
|
114 | |||
@@ -169,15 +149,6 MainWindow::MainWindow(QWidget *parent) | |||||
169 | }; |
|
149 | }; | |
170 |
|
150 | |||
171 |
|
151 | |||
172 | connect(openLeftInspectorAction, &QAction::triggered, |
|
|||
173 | [openInspector, openLeftInspectorAction](bool checked) { |
|
|||
174 | openInspector(checked, false, openLeftInspectorAction); |
|
|||
175 | }); |
|
|||
176 | connect(openRightInspectorAction, &QAction::triggered, |
|
|||
177 | [openInspector, openRightInspectorAction](bool checked) { |
|
|||
178 | openInspector(checked, true, openRightInspectorAction); |
|
|||
179 | }); |
|
|||
180 |
|
||||
181 | // //////////////// // |
|
152 | // //////////////// // | |
182 | // Menu and Toolbar // |
|
153 | // Menu and Toolbar // | |
183 | // //////////////// // |
|
154 | // //////////////// // |
@@ -81,7 +81,6 | |||||
81 | </item> |
|
81 | </item> | |
82 | </layout> |
|
82 | </layout> | |
83 | </widget> |
|
83 | </widget> | |
84 | <widget class="SqpSidePane" name="leftInspectorSidePane" native="true"/> |
|
|||
85 | <widget class="VisualizationWidget" name="view" native="true"> |
|
84 | <widget class="VisualizationWidget" name="view" native="true"> | |
86 | <property name="sizePolicy"> |
|
85 | <property name="sizePolicy"> | |
87 | <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> |
|
86 | <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> | |
@@ -90,7 +89,6 | |||||
90 | </sizepolicy> |
|
89 | </sizepolicy> | |
91 | </property> |
|
90 | </property> | |
92 | </widget> |
|
91 | </widget> | |
93 | <widget class="SqpSidePane" name="rightInspectorSidePane" native="true"/> |
|
|||
94 | <widget class="QWidget" name="rightMainInspectorWidget" native="true"> |
|
92 | <widget class="QWidget" name="rightMainInspectorWidget" native="true"> | |
95 | <layout class="QVBoxLayout" name="verticalLayout_3"> |
|
93 | <layout class="QVBoxLayout" name="verticalLayout_3"> | |
96 | <property name="spacing"> |
|
94 | <property name="spacing"> | |
@@ -132,7 +130,7 | |||||
132 | <x>0</x> |
|
130 | <x>0</x> | |
133 | <y>0</y> |
|
131 | <y>0</y> | |
134 | <width>800</width> |
|
132 | <width>800</width> | |
135 |
<height> |
|
133 | <height>41</height> | |
136 | </rect> |
|
134 | </rect> | |
137 | </property> |
|
135 | </property> | |
138 | </widget> |
|
136 | </widget> | |
@@ -147,12 +145,6 | |||||
147 | <container>1</container> |
|
145 | <container>1</container> | |
148 | </customwidget> |
|
146 | </customwidget> | |
149 | <customwidget> |
|
147 | <customwidget> | |
150 | <class>SqpSidePane</class> |
|
|||
151 | <extends>QWidget</extends> |
|
|||
152 | <header location="global">SidePane/SqpSidePane.h</header> |
|
|||
153 | <container>1</container> |
|
|||
154 | </customwidget> |
|
|||
155 | <customwidget> |
|
|||
156 | <class>DataSourceWidget</class> |
|
148 | <class>DataSourceWidget</class> | |
157 | <extends>QWidget</extends> |
|
149 | <extends>QWidget</extends> | |
158 | <header location="global">DataSource/DataSourceWidget.h</header> |
|
150 | <header location="global">DataSource/DataSourceWidget.h</header> |
General Comments 0
You need to be logged in to leave comments.
Login now