]> git.lyx.org Git - features.git/commitdiff
Do not crop wide characters in Symbols dialog (bug #5707).
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 10 Jan 2013 14:10:10 +0000 (15:10 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 10 Jan 2013 14:10:10 +0000 (15:10 +0100)
src/frontends/qt4/GuiSymbols.cpp
status.20x

index 6bd5ba210a4bf1f9fcbed1c4751b482422dd8749..95a4f623aad7b2db0a11a965f902456426f2034f 100644 (file)
@@ -275,11 +275,12 @@ GuiSymbols::GuiSymbols(GuiView & lv)
        setFocusProxy(symbolsLW);
 
        symbolsLW->setViewMode(QListView::IconMode);
-       symbolsLW->setUniformItemSizes(true);
        // increase the display size of the symbols a bit
        QFont font= symbolsLW->font();
        int size = font.pointSize() + 3;
        font.setPointSize(size);
+       QFontMetrics fm(font);
+       symbolsLW->setGridSize(QSize(fm.maxWidth() + 2, fm.height() + 2));
        symbolsLW->setFont(font);
        symbolsLW->setModel(model_);
 }
index dfca7ab2c3411f28992b322b5f013a8026cf68c7..1815a245503b1cd288556ef6073e15585363a45e 100644 (file)
@@ -116,6 +116,8 @@ What's new
 - Show the output of configure.py while the LaTeX packages are being checked
   rather than all at once at the end of the check (bug 8477).
 
+- Do not crop wide characters in Symbols dialog (bug 5707).
+
 
 * DOCUMENTATION AND LOCALIZATION