Skip to content

Commit 28c126c

Browse files
committed
Quality reviews
1 parent b6a0b10 commit 28c126c

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/mainwindow.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), _pUi(new Ui::Main
6464
_pUi->tblRegData->setModel(_pRegisterDataModel);
6565
_pUi->tblRegData->verticalHeader()->show();
6666
_pUi->tblRegData->horizontalHeader()->show();
67-
68-
/* Don't stretch columns, resize to contents */
6967
_pUi->tblRegData->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
7068

7169
QList<uint> registerList = QList<uint>() << 0 << 1 << 2 << 3 << 4;

src/mainwindow.h

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#ifndef MAINWINDOW_H
22
#define MAINWINDOW_H
33

4-
#include <QMainWindow>
54
#include <QButtonGroup>
5+
#include <QMainWindow>
66

7-
#include "testslavemodbus.h"
87
#include "testslavedata.h"
8+
#include "testslavemodbus.h"
99

10-
#include "registerdatamodel.h"
1110
#include "incgraph.h"
11+
#include "registerdatamodel.h"
1212
#include "sinegraph.h"
1313

1414
namespace Ui {
@@ -20,7 +20,7 @@ class MainWindow : public QMainWindow
2020
Q_OBJECT
2121

2222
public:
23-
explicit MainWindow(QWidget *parent = nullptr);
23+
explicit MainWindow(QWidget* parent = nullptr);
2424
~MainWindow();
2525

2626
private slots:
@@ -34,8 +34,7 @@ private slots:
3434
void handleRequestProcessed();
3535

3636
private:
37-
38-
Ui::MainWindow *_pUi;
37+
Ui::MainWindow* _pUi;
3938

4039
bool _bAutoInc;
4140

@@ -47,10 +46,10 @@ private slots:
4746
QButtonGroup _exceptionGroup;
4847
QButtonGroup _errorRecurrenceGroup;
4948

50-
TestSlaveModbus *_pSlaveModbus;
51-
TestSlaveData *_pSlaveData;
49+
TestSlaveModbus* _pSlaveModbus;
50+
TestSlaveData* _pSlaveData;
5251

53-
RegisterDataModel *_pRegisterDataModel;
52+
RegisterDataModel* _pRegisterDataModel;
5453
};
5554

5655
#endif // MAINWINDOW_H

0 commit comments

Comments
 (0)