GuiSymbols: Use a grid with appropriat size

This commit is contained in:
Juergen Spitzmueller 2013-01-10 13:19:14 +01:00
parent 0dd91a1fd7
commit b57f585109

View File

@ -280,6 +280,8 @@ GuiSymbols::GuiSymbols(GuiView & lv)
int size = font.pointSize() + 3;
font.setPointSize(size);
symbolsLW->setFont(font);
QFontMetrics fm(font);
symbolsLW->setGridSize(QSize(fm.maxWidth() + 2, fm.height() + 2));
symbolsLW->setModel(model_);
}