Skip to content

Commit

Permalink
Github Issue #194: Updated the mouse wheel handler to save the font s…
Browse files Browse the repository at this point in the history
…ize changes directly into QSettings. This way now all documents are equally zoomed in/out
  • Loading branch information
AngryFender committed Aug 14, 2024
1 parent b55d094 commit a68f2aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mkedit.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <QElapsedTimer>
#include <QSettings>
#include "blockdata.h"
#include "linedata.h"
#include "mkedit.h"
Expand Down Expand Up @@ -121,6 +122,9 @@ void MkEdit::wheelEvent(QWheelEvent *e)
this->zoomOut();
}
this->ensureCursorVisible();

QSettings settings("Remini","Remini");
settings.setValue("fontsize",this->currentFont().pointSizeF());
}else{
QTextEdit::wheelEvent(e);
}
Expand Down

0 comments on commit a68f2aa

Please sign in to comment.