Raw -> Smart Pointers for musrStep, qt5.
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
#ifndef _PMUSRSTEP_H_
|
||||
#define _PMUSRSTEP_H_
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <QDialog>
|
||||
#include <QWidget>
|
||||
#include <QVector>
|
||||
@@ -37,6 +39,7 @@
|
||||
#include <QTableWidget>
|
||||
#include <QLabel>
|
||||
#include <QCheckBox>
|
||||
#include <QLineEdit>
|
||||
|
||||
struct PParam {
|
||||
QString number;
|
||||
@@ -65,12 +68,12 @@ class PModSelect : public QDialog
|
||||
void getFactor();
|
||||
|
||||
private:
|
||||
QCheckBox *fAbsVal;
|
||||
QLabel *fFactorLabel;
|
||||
QLineEdit *fFactorLineEdit;
|
||||
QPushButton *fScaleByFactor;
|
||||
QPushButton *fScaleAutomatic;
|
||||
QPushButton *fCancel;
|
||||
std::unique_ptr<QCheckBox> fAbsVal;
|
||||
std::unique_ptr<QLabel> fFactorLabel;
|
||||
std::unique_ptr<QLineEdit> fFactorLineEdit;
|
||||
std::unique_ptr<QPushButton> fScaleByFactor;
|
||||
std::unique_ptr<QPushButton> fScaleAutomatic;
|
||||
std::unique_ptr<QPushButton> fCancel;
|
||||
};
|
||||
|
||||
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
@@ -98,15 +101,15 @@ class PMusrStep : public QDialog
|
||||
|
||||
QVector<PParam> fParamVec;
|
||||
|
||||
QLabel *fTitleLabel;
|
||||
QTableWidget *fParamTable;
|
||||
QPushButton *fCheckSpecific;
|
||||
QPushButton *fCheckAll;
|
||||
QPushButton *fUnCheckAll;
|
||||
QPushButton *fModifyAuto;
|
||||
QPushButton *fModifySelected;
|
||||
QPushButton *fSave;
|
||||
QPushButton *fCancel;
|
||||
std::unique_ptr<QLabel> fTitleLabel;
|
||||
std::unique_ptr<QTableWidget> fParamTable;
|
||||
std::unique_ptr<QPushButton> fCheckSpecific;
|
||||
std::unique_ptr<QPushButton> fCheckAll;
|
||||
std::unique_ptr<QPushButton> fUnCheckAll;
|
||||
std::unique_ptr<QPushButton> fModifyAuto;
|
||||
std::unique_ptr<QPushButton> fModifySelected;
|
||||
std::unique_ptr<QPushButton> fSave;
|
||||
std::unique_ptr<QPushButton> fCancel;
|
||||
|
||||
PModSelect *fModSelect;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user