mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 12:46:35 +01:00
Port from deprecated QLineEdit::getTextMargins() > QLineEdit::textMargins()
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
cf6a0b46ef
commit
6c56304aed
@ -678,11 +678,12 @@ void LocationBar::paintEvent(QPaintEvent* event)
|
||||
QStyleOptionFrame option;
|
||||
initStyleOption(&option);
|
||||
|
||||
int lm, tm, rm, bm;
|
||||
getTextMargins(&lm, &tm, &rm, &bm);
|
||||
QMargins margins = textMargins();
|
||||
|
||||
QRect contentsRect = style()->subElementRect(QStyle::SE_LineEditContents, &option, this);
|
||||
contentsRect.adjust(lm, tm, -rm, -bm);
|
||||
contentsRect.adjust(
|
||||
margins.left(), margins.top(), -margins.right(), -margins.bottom()
|
||||
);
|
||||
|
||||
QColor bg = m_progressColor;
|
||||
if (!bg.isValid() || bg.alpha() == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user