Refactoring.
Code style.
This commit is contained in:
parent
3dfc62e99a
commit
4d849163fb
|
@ -40,14 +40,13 @@ class DialogRestrictDimension;
|
||||||
|
|
||||||
class QTableWidgetItem;
|
class QTableWidgetItem;
|
||||||
|
|
||||||
enum class RestrictDimension: qint8
|
enum class RestrictDimension : qint8
|
||||||
{
|
{
|
||||||
First = 0,
|
First = 0,
|
||||||
Second = 1,
|
Second = 1,
|
||||||
Third = 2
|
Third = 2
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class DialogRestrictDimension : public QDialog
|
class DialogRestrictDimension : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT // NOLINT
|
Q_OBJECT // NOLINT
|
||||||
|
@ -61,7 +60,7 @@ public:
|
||||||
auto Restrictions() const -> QMap<QString, VDimensionRestriction>;
|
auto Restrictions() const -> QMap<QString, VDimensionRestriction>;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void changeEvent(QEvent* event) override;
|
void changeEvent(QEvent *event) override;
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void RowSelected();
|
void RowSelected();
|
||||||
|
@ -94,11 +93,11 @@ private:
|
||||||
|
|
||||||
void FillBases(const QVector<qreal> &bases, const MeasurementDimension_p &dimension, QComboBox *control) const;
|
void FillBases(const QVector<qreal> &bases, const MeasurementDimension_p &dimension, QComboBox *control) const;
|
||||||
void FillBase(double base, const MeasurementDimension_p &dimension, QComboBox *control) const;
|
void FillBase(double base, const MeasurementDimension_p &dimension, QComboBox *control) const;
|
||||||
static auto FillDimensionXBases(const QVector<qreal> &bases,
|
static auto FillDimensionXBases(const QVector<qreal> &bases, const MeasurementDimension_p &dimension)
|
||||||
const MeasurementDimension_p &dimension) -> QStringList;
|
-> QStringList;
|
||||||
auto FillDimensionYBases(const QVector<qreal> &bases, const MeasurementDimension_p &dimension) const -> QStringList;
|
auto FillDimensionYBases(const QVector<qreal> &bases, const MeasurementDimension_p &dimension) const -> QStringList;
|
||||||
auto FillDimensionWZBases(const QVector<qreal> &bases,
|
auto FillDimensionWZBases(const QVector<qreal> &bases, const MeasurementDimension_p &dimension) const
|
||||||
const MeasurementDimension_p &dimension) const -> QStringList;
|
-> QStringList;
|
||||||
|
|
||||||
auto DimensionLabels(const QVector<qreal> &bases, const MeasurementDimension_p &dimension) const -> QStringList;
|
auto DimensionLabels(const QVector<qreal> &bases, const MeasurementDimension_p &dimension) const -> QStringList;
|
||||||
auto DimensionRestrictedValues(const MeasurementDimension_p &dimension) const -> QVector<qreal>;
|
auto DimensionRestrictedValues(const MeasurementDimension_p &dimension) const -> QVector<qreal>;
|
||||||
|
@ -106,7 +105,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
inline auto DialogRestrictDimension::Restrictions() const -> QMap<QString, VDimensionRestriction >
|
inline auto DialogRestrictDimension::Restrictions() const -> QMap<QString, VDimensionRestriction>
|
||||||
{
|
{
|
||||||
return m_restrictions;
|
return m_restrictions;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user