@@ -79,17 +79,16 MainWindow::MainWindow(QWidget *parent) | |||||
79 |
|
79 | |||
80 |
|
80 | |||
81 | auto leftSidePane = m_Ui->leftInspectorSidePane->sidePane(); |
|
81 | auto leftSidePane = m_Ui->leftInspectorSidePane->sidePane(); | |
82 |
auto openLeftInspectorAction = new QAction |
|
82 | auto openLeftInspectorAction = new QAction{QIcon{ | |
83 | QIcon{ |
|
|||
84 | ":/icones/previous.png", |
|
83 | ":/icones/previous.png", | |
85 | }, |
|
84 | }, | |
86 |
tr("Show/hide the left inspector"), this |
|
85 | tr("Show/hide the left inspector"), this}; | |
87 |
|
86 | |||
88 |
|
87 | |||
89 |
|
|
88 | auto spacerLeftTop = new QWidget{}; | |
90 | spacerLeftTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
89 | spacerLeftTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); | |
91 |
|
90 | |||
92 |
|
|
91 | auto spacerLeftBottom = new QWidget{}; | |
93 | spacerLeftBottom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
92 | spacerLeftBottom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); | |
94 |
|
93 | |||
95 | leftSidePane->addWidget(spacerLeftTop); |
|
94 | leftSidePane->addWidget(spacerLeftTop); | |
@@ -98,16 +97,15 MainWindow::MainWindow(QWidget *parent) | |||||
98 |
|
97 | |||
99 |
|
98 | |||
100 | auto rightSidePane = m_Ui->rightInspectorSidePane->sidePane(); |
|
99 | auto rightSidePane = m_Ui->rightInspectorSidePane->sidePane(); | |
101 |
auto openRightInspectorAction = new QAction |
|
100 | auto openRightInspectorAction = new QAction{QIcon{ | |
102 | QIcon{ |
|
|||
103 | ":/icones/next.png", |
|
101 | ":/icones/next.png", | |
104 | }, |
|
102 | }, | |
105 |
tr("Show/hide the right inspector"), this |
|
103 | tr("Show/hide the right inspector"), this}; | |
106 |
|
104 | |||
107 |
|
|
105 | auto spacerRightTop = new QWidget{}; | |
108 | spacerRightTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
106 | spacerRightTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); | |
109 |
|
107 | |||
110 |
|
|
108 | auto spacerRightBottom = new QWidget{}; | |
111 | spacerRightBottom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
|
109 | spacerRightBottom->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); | |
112 |
|
110 | |||
113 | rightSidePane->addWidget(spacerRightTop); |
|
111 | rightSidePane->addWidget(spacerRightTop); | |
@@ -168,7 +166,7 MainWindow::MainWindow(QWidget *parent) | |||||
168 | this->menuBar()->addAction(tr("File")); |
|
166 | this->menuBar()->addAction(tr("File")); | |
169 | auto mainToolBar = this->addToolBar(QStringLiteral("MainToolBar")); |
|
167 | auto mainToolBar = this->addToolBar(QStringLiteral("MainToolBar")); | |
170 |
|
168 | |||
171 |
mainToolBar->addWidget(new TimeWidget |
|
169 | mainToolBar->addWidget(new TimeWidget{}); | |
172 |
|
170 | |||
173 | // Widgets / controllers connections |
|
171 | // Widgets / controllers connections | |
174 | connect(&sqpApp->dataSourceController(), SIGNAL(dataSourceItemSet(DataSourceItem *)), |
|
172 | connect(&sqpApp->dataSourceController(), SIGNAL(dataSourceItemSet(DataSourceItem *)), |
General Comments 0
You need to be logged in to leave comments.
Login now