summaryrefslogtreecommitdiff
path: root/inputmethods
authorhash <hash>2002-11-27 09:53:25 (UTC)
committer hash <hash>2002-11-27 09:53:25 (UTC)
commit796b942cc070da91982689eb6e50b1e1e776c5ed (patch) (side-by-side diff)
treee0c1733ca8f5fa9721af101f3db689c5cf0392dd /inputmethods
parente52158d2f9e1fdc9766d991dc672729648d5a020 (diff)
downloadopie-796b942cc070da91982689eb6e50b1e1e776c5ed.zip
opie-796b942cc070da91982689eb6e50b1e1e776c5ed.tar.gz
opie-796b942cc070da91982689eb6e50b1e1e776c5ed.tar.bz2
now saving profiles works! yay!
Diffstat (limited to 'inputmethods') (more/less context) (show whitespace changes)
-rw-r--r--inputmethods/handwriting/qimpensetup.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/inputmethods/handwriting/qimpensetup.cpp b/inputmethods/handwriting/qimpensetup.cpp
index 10c136d..2441102 100644
--- a/inputmethods/handwriting/qimpensetup.cpp
+++ b/inputmethods/handwriting/qimpensetup.cpp
@@ -94,5 +94,6 @@ QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent,
QVBoxLayout *vb = new QVBoxLayout( this );
-#if 0
+#define MULTIPROFILE
+#ifdef MULTIPROFILE
profileList.setAutoDelete( true );
QHBoxLayout *hb = new QHBoxLayout( vb );
@@ -104,9 +105,10 @@ QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent,
this, SLOT(selectProfile(const QString &)) );
hb->addWidget( profileCombo );
- loadProfiles();
#else
profileList.append( profile );
#endif
+ qWarning("profiles: %d", profileList.count());
+
QTabWidget *tw = new QTabWidget( this );
vb->addWidget( tw );
@@ -131,4 +133,8 @@ QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent,
edit = new QIMPenEdit( p, tw );
tw->addTab( edit, tr("Customize") );
+#ifdef MULTIPROFILE
+ loadProfiles();
+#endif
+
}
@@ -146,4 +152,5 @@ void QIMPenSetup::loadProfiles()
profileCombo->setCurrentItem( profileCombo->count()-1 );
profile = p;
+ edit->setProfile( profile );
}
}
@@ -564,4 +571,5 @@ void QIMPenEdit::addChar()
// User characters override all matching system characters.
// Copy and mark deleted identical system characters.
+
QIMPenCharIterator it(currentSet->characters() );
QIMPenChar *sc = 0;