mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +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;
|
QStyleOptionFrame option;
|
||||||
initStyleOption(&option);
|
initStyleOption(&option);
|
||||||
|
|
||||||
int lm, tm, rm, bm;
|
QMargins margins = textMargins();
|
||||||
getTextMargins(&lm, &tm, &rm, &bm);
|
|
||||||
|
|
||||||
QRect contentsRect = style()->subElementRect(QStyle::SE_LineEditContents, &option, this);
|
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;
|
QColor bg = m_progressColor;
|
||||||
if (!bg.isValid() || bg.alpha() == 0) {
|
if (!bg.isValid() || bg.alpha() == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user