- mainLayout->setContentsMargins(0, 0, 0, 0); // This is required, otherwise the layout engine puts too much space around this widget. :-/
-
- visibility->setFlat(true);
- visibility->setIcon(visibleIcon);
- visibility->setCheckable(true);
- visibility->setMaximumSize(buttonSize);
- visibility->setChecked(invisible);
-
- editibility->setFlat(true);
- editibility->setIcon(lockedIcon);
- editibility->setCheckable(true);
- editibility->setMaximumSize(buttonSize);
- editibility->setChecked(locked);
-
- mainLayout->addWidget(visibility);
- mainLayout->addWidget(editibility);
+ // This is required, otherwise the layout engine puts too much space around
+ // this widget. :-/
+ mainLayout->setContentsMargins(0, 0, 0, 0);
+
+ invisible->setFlat(true);
+ invisible->setIcon(visibleIcon);
+ invisible->setCheckable(true);
+ invisible->setMaximumSize(buttonSize);
+ invisible->setChecked(i);
+
+ locked->setFlat(true);
+ locked->setIcon(lockedIcon);
+ locked->setCheckable(true);
+ locked->setMaximumSize(buttonSize);
+ locked->setChecked(l);
+
+ mainLayout->addWidget(invisible);
+ mainLayout->addWidget(locked);