summaryrefslogtreecommitdiff
path: root/inputmethods/dasher/QtDasherScreen.cc
authormjg59 <mjg59>2003-12-10 03:57:04 (UTC)
committer mjg59 <mjg59>2003-12-10 03:57:04 (UTC)
commitbecbcfae3bf3b5a714e7d3e39b924e08761739c2 (patch) (side-by-side diff)
tree7ec5f6f90a9d529858da340150b415d87e7936ba /inputmethods/dasher/QtDasherScreen.cc
parent1f0b92e554b76852af210ceb277b3e9ecb09a43d (diff)
downloadopie-becbcfae3bf3b5a714e7d3e39b924e08761739c2.zip
opie-becbcfae3bf3b5a714e7d3e39b924e08761739c2.tar.gz
opie-becbcfae3bf3b5a714e7d3e39b924e08761739c2.tar.bz2
Fix the search directory for the training file, remove the (non-working anyway) font size calculation code - with luck, this'll fix the failure to start under Opie
Diffstat (limited to 'inputmethods/dasher/QtDasherScreen.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/dasher/QtDasherScreen.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/inputmethods/dasher/QtDasherScreen.cc b/inputmethods/dasher/QtDasherScreen.cc
index d05ef49..7d77511 100644
--- a/inputmethods/dasher/QtDasherScreen.cc
+++ b/inputmethods/dasher/QtDasherScreen.cc
@@ -18,2 +18,5 @@
+#include <iconv.h>
+#include <iostream>
+
QtDasherScreen::QtDasherScreen (int _width, int _height,
@@ -22,6 +25,6 @@ QtDasherScreen::QtDasherScreen (int _width, int _height,
QWidget(_parent), interface( _interface ),
- fontname( "fixed" ), // fontsize(12),
+ fontname( "fixed" ), fontsize(12),
Dasher::CDasherScreen(_width, _height)
{
- // font = new QFont (fontname, fontsize);
+ font = QFont (fontname.c_str(), fontsize);
painter = new QPainter ();
@@ -36,3 +39,3 @@ QtDasherScreen::QtDasherScreen (int _width, int _height,
- interface->GetFontSizes(&FontSizes);
+/* interface->GetFontSizes(&FontSizes);
@@ -42,5 +45,5 @@ QtDasherScreen::QtDasherScreen (int _width, int _height,
Fonts[FontSizes[i]]= QFont (fontname.c_str(), FontSizes[i]);
- Fonts[FontSizes[i]].setPixelSize(FontSizes[i]);
+// Fonts[FontSizes[i]].setPixelSize(FontSizes[i]);
}
-
+*/
interface->ChangeScreen(this);