Diffstat (limited to 'inputmethods/dasher/QtDasherScreen.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | inputmethods/dasher/QtDasherScreen.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/inputmethods/dasher/QtDasherScreen.h b/inputmethods/dasher/QtDasherScreen.h index c4d3b59..c029a60 100644 --- a/inputmethods/dasher/QtDasherScreen.h +++ b/inputmethods/dasher/QtDasherScreen.h @@ -22,4 +22,6 @@ #include "DasherInterface.h" +#include <iconv.h> + using namespace Dasher; @@ -50,5 +52,5 @@ class QtDasherScreen : public QWidget, public Dasher::CDasherScreen { // should probably use QPainter::boundingRect() - *Width = *Height = Fonts[Size].pixelSize(); + *Width = *Height = font.pixelSize(); } @@ -59,5 +61,5 @@ class QtDasherScreen : public QWidget, public Dasher::CDasherScreen QPoint point = QPoint(x1, y1+Size/2); - painter->setFont (Fonts[Size]); + painter->setFont (font); painter->drawText (point, QString(interface->GetDisplayText(Character).c_str())); @@ -72,5 +74,6 @@ class QtDasherScreen : public QWidget, public Dasher::CDasherScreen std::vector<int> FontSizes; std::vector<QFont> Fonts; - + QFont font; + int fontsize; void Blank() const { painter->begin(pixmap); |