Commit 5e9c6575 authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Nate Graham
Browse files

kstyle: centre spinbox text

Having buttons on both sides of the text looks
awkward if the text isn't centred.
parent 770dcbb2
......@@ -40,6 +40,7 @@
#include <QRadioButton>
#include <QScrollBar>
#include <QItemDelegate>
#include <QSpinBox>
#include <QSplitterHandle>
#include <QTextEdit>
#include <QToolBar>
......@@ -418,6 +419,8 @@ namespace Breeze
widget->setAttribute(Qt::WA_StyledBackground);
} else if ( auto btn = qobject_cast<QPushButton*> (widget) ) {
btn->setAutoDefault(false);
} else if ( auto spbx = qobject_cast<QSpinBox*> (widget) ) {
spbx->setAlignment(Qt::AlignCenter);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment