##// END OF EJS Templates
Removed side bars which were too big......
jeandet -
r1375:0dd942c2cda8
parent child
Show More
@@ -93,11 +93,7 MainWindow::MainWindow(QWidget *parent)
93 93 impl->m_CatalogExplorer->setVisualizationWidget(m_Ui->view);
94 94
95 95
96 auto leftSidePane = m_Ui->leftInspectorSidePane->sidePane();
97 auto openLeftInspectorAction = new QAction{QIcon{
98 ":/icones/previous.png",
99 },
100 tr("Show/hide the left inspector"), this};
96
101 97
102 98
103 99 auto spacerLeftTop = new QWidget{};
@@ -106,16 +102,6 MainWindow::MainWindow(QWidget *parent)
106 102 auto spacerLeftBottom = new QWidget{};
107 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 106 auto spacerRightTop = new QWidget{};
121 107 spacerRightTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
@@ -123,12 +109,6 MainWindow::MainWindow(QWidget *parent)
123 109 auto spacerRightBottom = new QWidget{};
124 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 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 153 // Menu and Toolbar //
183 154 // //////////////// //
@@ -81,7 +81,6
81 81 </item>
82 82 </layout>
83 83 </widget>
84 <widget class="SqpSidePane" name="leftInspectorSidePane" native="true"/>
85 84 <widget class="VisualizationWidget" name="view" native="true">
86 85 <property name="sizePolicy">
87 86 <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
@@ -90,7 +89,6
90 89 </sizepolicy>
91 90 </property>
92 91 </widget>
93 <widget class="SqpSidePane" name="rightInspectorSidePane" native="true"/>
94 92 <widget class="QWidget" name="rightMainInspectorWidget" native="true">
95 93 <layout class="QVBoxLayout" name="verticalLayout_3">
96 94 <property name="spacing">
@@ -132,7 +130,7
132 130 <x>0</x>
133 131 <y>0</y>
134 132 <width>800</width>
135 <height>21</height>
133 <height>41</height>
136 134 </rect>
137 135 </property>
138 136 </widget>
@@ -147,12 +145,6
147 145 <container>1</container>
148 146 </customwidget>
149 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 148 <class>DataSourceWidget</class>
157 149 <extends>QWidget</extends>
158 150 <header location="global">DataSource/DataSourceWidget.h</header>
General Comments 0
You need to be logged in to leave comments. Login now