summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-10 03:13:39 (UTC)
committer llornkcor <llornkcor>2002-11-10 03:13:39 (UTC)
commitea3334042e9625c0f67c9a7293a482849f60e4e2 (patch) (unidiff)
treed9c36920818ed681a4a80d3e7af14524e66fa942
parent7601c75b529d9ff205403a32206b9431845cfc91 (diff)
downloadopie-ea3334042e9625c0f67c9a7293a482849f60e4e2.zip
opie-ea3334042e9625c0f67c9a7293a482849f60e4e2.tar.gz
opie-ea3334042e9625c0f67c9a7293a482849f60e4e2.tar.bz2
use opie's FontDatabase so to be able to use freetype
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-write/mainwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/apps/opie-write/mainwindow.cpp b/noncore/apps/opie-write/mainwindow.cpp
index ed95e83..bcafd16 100644
--- a/noncore/apps/opie-write/mainwindow.cpp
+++ b/noncore/apps/opie-write/mainwindow.cpp
@@ -25,2 +25,4 @@
25#include <qpe/resource.h> 25#include <qpe/resource.h>
26#include <qpe/fontdatabase.h>
27
26//#include "qspellchecker.h" 28//#include "qspellchecker.h"
@@ -210,3 +212,4 @@ void MainWindow::setupActions()
210 comboFont = new QComboBox( FALSE, tbFont ); 212 comboFont = new QComboBox( FALSE, tbFont );
211 QFontDatabase db; 213 FontDatabase db;
214 QStringList f= db.families();
212 comboFont->insertStringList( db.families() ); 215 comboFont->insertStringList( db.families() );
@@ -215,2 +218,3 @@ void MainWindow::setupActions()
215 comboFont->setCurrentItem( comboFont->listBox()->index( comboFont->listBox()->findItem( QApplication::font().family() ) ) ); 218 comboFont->setCurrentItem( comboFont->listBox()->index( comboFont->listBox()->findItem( QApplication::font().family() ) ) );
219 comboFont->setMaximumWidth(90);
216 220
@@ -279,3 +283,3 @@ void MainWindow::updateFontSizeCombo( const QFont &f )
279 comboSize->clear(); 283 comboSize->clear();
280 QFontDatabase fdb; 284 FontDatabase fdb;
281 QValueList<int> sizes = fdb.pointSizes( f.family() ); 285 QValueList<int> sizes = fdb.pointSizes( f.family() );