Replace typedef with using
This commit is contained in:
@@ -40,7 +40,7 @@ class StretchHeaderView : public QHeaderView {
|
||||
public:
|
||||
explicit StretchHeaderView(const Qt::Orientation orientation, QWidget *parent = nullptr);
|
||||
|
||||
typedef double ColumnWidthType;
|
||||
using ColumnWidthType = double;
|
||||
|
||||
static const int kMinimumColumnWidth;
|
||||
static const int kMagicNumber;
|
||||
|
||||
@@ -81,10 +81,10 @@ class PrettySlider : public SliderSlider {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
typedef enum {
|
||||
using SliderMode = enum {
|
||||
Normal, // Same behavior as Slider *unless* there's a moodbar
|
||||
Pretty
|
||||
} SliderMode;
|
||||
};
|
||||
|
||||
explicit PrettySlider(const Qt::Orientation orientation, const SliderMode mode, QWidget *parent, const uint max = 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user