Qt: Remember the tile and font size

The QT_TILEWIDTH and QT_TILEHEIGHT read from NetHack config file
override the remembered settings.
Also set the smallest tile size to 6x6
This commit is contained in:
Pasi Kallinen
2018-09-12 18:43:10 +03:00
parent c7c21c264e
commit b33b66aa29
4 changed files with 22 additions and 6 deletions
+2
View File
@@ -33,6 +33,7 @@ public slots:
void setGlyphSize(bool);
private:
QSettings settings;
QSpinBox tilewidth;
QSpinBox tileheight;
QLabel widthlbl;
@@ -48,6 +49,7 @@ private:
private slots:
void resizeTiles();
void changedFont();
};
extern NetHackQtSettings* qt_settings;