summaryrefslogtreecommitdiff
path: root/src/gui/widgets/characterviewnormal.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-03 22:26:02 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-03 22:26:24 +0300
commit20a530182719a356135ba91d1b453ae7fac500f4 (patch)
tree3d138bde802bb0a1ce29d8426d6c8eb441f700ba /src/gui/widgets/characterviewnormal.cpp
parente1fd136f61a0f28263098299d7d956bf42a15b32 (diff)
downloadplus-20a530182719a356135ba91d1b453ae7fac500f4.tar.gz
plus-20a530182719a356135ba91d1b453ae7fac500f4.tar.bz2
plus-20a530182719a356135ba91d1b453ae7fac500f4.tar.xz
plus-20a530182719a356135ba91d1b453ae7fac500f4.zip
Change a bit some windows sizes for drawing big size fonts.
Diffstat (limited to 'src/gui/widgets/characterviewnormal.cpp')
-rw-r--r--src/gui/widgets/characterviewnormal.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/characterviewnormal.cpp b/src/gui/widgets/characterviewnormal.cpp
index 7422f25d5..f197ea343 100644
--- a/src/gui/widgets/characterviewnormal.cpp
+++ b/src/gui/widgets/characterviewnormal.cpp
@@ -20,6 +20,8 @@
#include "gui/widgets/characterviewnormal.h"
+#include "configuration.h"
+
#include "gui/widgets/characterdisplay.h"
#include "gui/widgets/characterviewsmall.h"
@@ -46,7 +48,10 @@ CharacterViewNormal::CharacterViewNormal(CharSelectDialog *const widget,
}
const CharacterDisplay *const firtChar = (*mCharacterEntries)[0];
setWidth(firtChar->getWidth() * 5 + mPadding * 2);
- setHeight(200);
+ if (config.getIntValue("fontSize") > 16)
+ setHeight(250);
+ else
+ setHeight(220);
}
CharacterViewNormal::~CharacterViewNormal()