Reduce margin of search box so that text isn't covered by fav button
This commit is contained in:
parent
2aa7714f87
commit
68d8275ce1
@ -1781,6 +1781,7 @@ class FavouritesLineEdit(QLineEdit):
|
||||
frameWidth = self.style().pixelMetric(QStyle.PM_DefaultFrameWidth)
|
||||
self.button.move(self.rect().right() - frameWidth - buttonSize.width(),
|
||||
(self.rect().bottom() - buttonSize.height() + 1) / 2)
|
||||
self.setTextMargins(0, 0, buttonSize.width() * 1.5, 0)
|
||||
super(FavouritesLineEdit, self).resizeEvent(event)
|
||||
|
||||
def setIcon(self, path):
|
||||
|
Loading…
Reference in New Issue
Block a user