ui: fixed fontMetrics lineheight working with wrong font in QtCodeSnippet

FontMetric specific settings are now applied in the showEvent method, which is executed right before showing the Widget
where the font setting from the stylesheet is already present.
This commit is contained in:
Eberhard Graether
2014-07-17 13:41:51 +02:00
parent efe3316ae3
commit 75e1cb7229
3 changed files with 13 additions and 10 deletions
+2 -1
View File
@@ -55,7 +55,8 @@ public:
void annotateText(const TokenLocationFile& locationFile);
protected:
void resizeEvent(QResizeEvent *event);
virtual void resizeEvent(QResizeEvent *event);
virtual void showEvent(QShowEvent* event);
private slots:
void updateLineNumberAreaWidth(int newBlockCount);