Reduce margin of search box so that text isn't covered by fav button

This commit is contained in:
Houssam Salem 2014-06-28 01:38:34 +10:00
parent 2aa7714f87
commit 68d8275ce1

View File

@ -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):