##// END OF EJS Templates
Correction MR
perrinel -
r139:94f8c05d7495
parent child
Show More
@@ -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{
83 ":/icones/previous.png",
84 ":/icones/previous.png",
84 },
85 },
85 tr("Show/hide the left inspector"), this};
86 tr("Show/hide the left inspector"), this);
87
86
88
87
89 QWidget *spacerLeftTop = new QWidget();
88 auto spacerLeftTop = new QWidget{};
90 spacerLeftTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
89 spacerLeftTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
91
90
92 QWidget *spacerLeftBottom = new QWidget();
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{
101 ":/icones/next.png",
103 ":/icones/next.png",
102 },
104 },
103 tr("Show/hide the right inspector"), this};
105 tr("Show/hide the right inspector"), this);
106
104
107 QWidget *spacerRightTop = new QWidget();
105 auto spacerRightTop = new QWidget{};
108 spacerRightTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
106 spacerRightTop->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
109
107
110 QWidget *spacerRightBottom = new QWidget();
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 *)),
@@ -7,8 +7,6 namespace Ui {
7 class TimeWidget;
7 class TimeWidget;
8 } // Ui
8 } // Ui
9
9
10 class TimeWidget;
11
12 class TimeWidget : public QWidget {
10 class TimeWidget : public QWidget {
13 Q_OBJECT
11 Q_OBJECT
14
12
General Comments 0
You need to be logged in to leave comments. Login now