Formatting
This commit is contained in:
@@ -346,6 +346,7 @@ class FancyTabBar : public QTabBar { // clazy:exclude=missing-qobject-macro
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
class TabData : public QObject { // clazy:exclude=missing-qobject-macro
|
||||
|
||||
@@ -203,6 +203,7 @@ TextEdit::TextEdit(QWidget *parent)
|
||||
|
||||
QObject::connect(reset_button_, &QToolButton::clicked, this, &TextEdit::Reset);
|
||||
QObject::connect(this, &TextEdit::textChanged, [this]() { viewport()->update(); }); // To clear the hint
|
||||
|
||||
}
|
||||
|
||||
void TextEdit::paintEvent(QPaintEvent *e) {
|
||||
@@ -237,6 +238,7 @@ CheckBox::CheckBox(QWidget *parent)
|
||||
: QCheckBox(parent), ExtendedEditor(this, 14, false) {
|
||||
|
||||
QObject::connect(reset_button_, &QToolButton::clicked, this, &CheckBox::Reset);
|
||||
|
||||
}
|
||||
|
||||
void CheckBox::paintEvent(QPaintEvent *e) {
|
||||
@@ -255,6 +257,7 @@ QString SpinBox::textFromValue(int val) const {
|
||||
return "-";
|
||||
}
|
||||
return QSpinBox::textFromValue(val);
|
||||
|
||||
}
|
||||
|
||||
RatingBox::RatingBox(QWidget *parent)
|
||||
@@ -263,4 +266,5 @@ RatingBox::RatingBox(QWidget *parent)
|
||||
|
||||
clear_button_->hide();
|
||||
reset_button_->hide();
|
||||
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ QRect RatingPainter::Contents(const QRect rect) {
|
||||
const int x = rect.x() + (rect.width() - width) / 2;
|
||||
|
||||
return QRect(x, rect.y(), width, rect.height());
|
||||
|
||||
}
|
||||
|
||||
float RatingPainter::RatingForPos(const QPoint pos, const QRect rect) {
|
||||
|
||||
Reference in New Issue
Block a user