Refactoring.

Code style.
This commit is contained in:
Roman Telezhynskyi 2024-03-14 13:35:48 +02:00
parent 3dfc62e99a
commit 4d849163fb

View File

@ -40,14 +40,13 @@ class DialogRestrictDimension;
class QTableWidgetItem;
enum class RestrictDimension: qint8
enum class RestrictDimension : qint8
{
First = 0,
Second = 1,
Third = 2
};
class DialogRestrictDimension : public QDialog
{
Q_OBJECT // NOLINT
@ -61,7 +60,7 @@ public:
auto Restrictions() const -> QMap<QString, VDimensionRestriction>;
protected:
void changeEvent(QEvent* event) override;
void changeEvent(QEvent *event) override;
protected slots:
void RowSelected();
@ -94,11 +93,11 @@ private:
void FillBases(const QVector<qreal> &bases, 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,
const MeasurementDimension_p &dimension) -> QStringList;
static auto FillDimensionXBases(const QVector<qreal> &bases, const MeasurementDimension_p &dimension)
-> QStringList;
auto FillDimensionYBases(const QVector<qreal> &bases, const MeasurementDimension_p &dimension) const -> QStringList;
auto FillDimensionWZBases(const QVector<qreal> &bases,
const MeasurementDimension_p &dimension) const -> QStringList;
auto FillDimensionWZBases(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>;
@ -106,7 +105,7 @@ private:
};
//---------------------------------------------------------------------------------------------------------------------
inline auto DialogRestrictDimension::Restrictions() const -> QMap<QString, VDimensionRestriction >
inline auto DialogRestrictDimension::Restrictions() const -> QMap<QString, VDimensionRestriction>
{
return m_restrictions;
}