mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Remove offset on username field in classic theme
* Fix #5601 Fix padding offset in editable QComboBox Accepted
This commit is contained in:
parent
260c84ccf0
commit
f9b2cf8484
@ -178,9 +178,6 @@ void EditEntryWidget::setupMain()
|
||||
|
||||
m_mainUi->expirePresets->setMenu(createPresetsMenu());
|
||||
connect(m_mainUi->expirePresets->menu(), SIGNAL(triggered(QAction*)), this, SLOT(useExpiryPreset(QAction*)));
|
||||
|
||||
// HACK: Align username text with other line edits. Qt does not let you do this with an application stylesheet.
|
||||
m_mainUi->usernameComboBox->lineEdit()->setStyleSheet("padding-left: 8px;");
|
||||
}
|
||||
|
||||
void EditEntryWidget::setupAdvanced()
|
||||
|
@ -4775,7 +4775,11 @@ QRect BaseStyle::subElementRect(SubElement sr, const QStyleOption* opt, const QW
|
||||
}
|
||||
case SE_LineEditContents: {
|
||||
QRect r = QCommonStyle::subElementRect(sr, opt, w);
|
||||
int pad = Phantom::dpiScaled(Phantom::LineEdit_ContentsHPad);
|
||||
int pad = Phantom::LineEdit_ContentsHPad;
|
||||
if (w && qobject_cast<const QComboBox*>(w->parentWidget())) {
|
||||
pad += 3;
|
||||
}
|
||||
pad = Phantom::dpiScaled(pad);
|
||||
return r.adjusted(pad, 0, -pad, 0);
|
||||
}
|
||||
default:
|
||||
|
@ -13,3 +13,7 @@ DatabaseWidget #SearchBanner, DatabaseWidget #KeeShareBanner {
|
||||
border: 1px solid rgb(190, 190, 190);
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
QLineEdit {
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user