We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a37b45 commit b6dddebCopy full SHA for b6dddeb
Qt.Widgets/CommonControls/SpinButton/src/SpinButton.h
@@ -9,9 +9,7 @@ namespace Examples {
9
Q_OBJECT
10
public:
11
SpinButton(QWidget* parent = nullptr) : QSpinBox(parent) {
12
- // Hack of QSpinBox :
13
- // (child[0] : line-edit and child[1] validator...
14
- // remove focus , hide line-edit (child 0) and resize without line-edit width.
+ // Hack of QSpinBox (child[0] : line-edit and child[1] validator...) : remove focus , hide line-edit (child 0) and resize without line-edit width.
15
setFocusPolicy(Qt::FocusPolicy::NoFocus);
16
auto lineEdit = dynamic_cast<QWidget*>(children().at(0));
17
if (lineEdit) {
0 commit comments