With qt5/svg icons, go to preferences and type something in the search bar
of the dialog. A huge "editclear" icon appears. Apparently the pixmap size
of the svg icon is wrong.

The attached patch solves it, but I am unsure if it is the best fix.

Stephan, Enrico?

Jürgen
diff --git a/src/frontends/qt4/PanelStack.cpp b/src/frontends/qt4/PanelStack.cpp
index b2024b1..4ceff8b 100644
--- a/src/frontends/qt4/PanelStack.cpp
+++ b/src/frontends/qt4/PanelStack.cpp
@@ -75,7 +75,9 @@ PanelStack::PanelStack(QWidget * parent)
 #endif
 
 #if QT_VERSION >= 0x040600
-       search_->setButtonPixmap(FancyLineEdit::Right, getPixmap("images/", 
"editclear", "svgz,png"));
+       QPixmap bitmap = getPixmap("images/", "editclear", "png");
+       QPixmap real = getPixmap("images/", "editclear", "svgz,png");
+       search_->setButtonPixmap(FancyLineEdit::Right, 
real.scaledToWidth(bitmap.width()));
        search_->setButtonVisible(FancyLineEdit::Right, true);
        search_->setButtonToolTip(FancyLineEdit::Right, qt_("Clear text"));
        search_->setAutoHideButton(FancyLineEdit::Right, true);

Reply via email to