Use anonymous namespace instead of static for constants

This commit is contained in:
Jonas Kvinge
2024-07-28 01:24:56 +02:00
parent 6c1ec51fab
commit 70fdd5b0b3
10 changed files with 25 additions and 35 deletions

View File

@@ -55,14 +55,6 @@ class SizeOverlayDelegate : public QStyledItemDelegate {
Q_OBJECT
public:
static const int kMargin;
static const int kPaddingX;
static const int kPaddingY;
static const qreal kBorder;
static const qreal kFontPointSize;
static const int kBorderAlpha;
static const int kBackgroundAlpha;
explicit SizeOverlayDelegate(QObject *parent = nullptr);
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &idx) const override;