Skip to content

Commit

Permalink
Update colorsettingswidget.cpp
Browse files Browse the repository at this point in the history
Focus bug fixes
  • Loading branch information
rodlie committed Apr 22, 2024
1 parent 40fcf98 commit ba3c0fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/GUI/ColorWidgets/colorsettingswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ ColorSettingsWidget::ColorSettingsWidget(QWidget *parent)
setContentsMargins(0, 0, 0, 0);
mWidgetsLayout->setMargin(0);

mTabWidget->setFocusPolicy(Qt::NoFocus);

mColorModeCombo = new QComboBox(this);
mColorModeCombo->setFocusPolicy(Qt::NoFocus);

mWidgetsLayout->setAlignment(Qt::AlignTop);
setLayout(mWidgetsLayout);

Expand Down Expand Up @@ -363,6 +367,7 @@ ColorSettingsWidget::ColorSettingsWidget(QWidget *parent)
aLayout->addWidget(aSpin);

mPickingButton = new QPushButton(QIcon::fromTheme("pick"), QString(), this);
mPickingButton->setFocusPolicy(Qt::NoFocus);
mPickingButton->setObjectName("FlatButton");
mPickingButton->setToolTip(tr("Pick Color"));
connect(mPickingButton, &QPushButton::released,
Expand All @@ -389,6 +394,7 @@ ColorSettingsWidget::ColorSettingsWidget(QWidget *parent)
hexLayout = new QHBoxLayout;
hexLayout->addWidget(new QLabel("Hex", this));
mHexEdit = new QLineEdit("#FF000000", this);
mHexEdit->setFocusPolicy(Qt::ClickFocus);
hexLayout->addWidget(mHexEdit);
mRGBLayout->addLayout(hexLayout);

Expand Down

0 comments on commit ba3c0fe

Please sign in to comment.