aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
diff options
context:
space:
mode:
authorq5sys <jt@obs-sec.com>2017-06-14 14:29:25 -0400
committerq5sys <jt@obs-sec.com>2017-06-14 14:29:25 -0400
commit9fb40bfc3c9a5b1877fdfdf65b307c690ea860d9 (patch)
treeb537499f575194ed4525bec104297ea06d3bd401 /src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
parentMerge branch 'master' of http://github.com/trueos/lumina (diff)
downloadlumina-9fb40bfc3c9a5b1877fdfdf65b307c690ea860d9.tar.gz
lumina-9fb40bfc3c9a5b1877fdfdf65b307c690ea860d9.tar.bz2
lumina-9fb40bfc3c9a5b1877fdfdf65b307c690ea860d9.zip
fix font size bug for line sizes
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
index 64ff256b..0c83b7ce 100644
--- a/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
+++ b/src-qt5/desktop-utils/lumina-textedit/PlainTextEditor.h
@@ -37,6 +37,9 @@ public:
//Functions for managing the line number widget (internal - do not need to run directly)
int LNWWidth(); //replacing the LNW size hint detection
void paintLNW(QPaintEvent *ev); //forwarded from the LNW paint event
+ void updateLNW();
+
+ QFontMetrics *metrics;
private:
QWidget *LNW; //Line Number Widget
@@ -65,7 +68,7 @@ private slots:
void textChanged();
void cursorMoved();
//Function for prompting the user if the file changed externally
- void fileChanged();
+ void fileChanged();
protected:
void resizeEvent(QResizeEvent *ev);
bgstack15