-rw-r--r-- | inputmethods/handwriting/qimpensetup.cpp | 12 |
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 @@ -95,3 +95,4 @@ QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent, -#if 0 +#define MULTIPROFILE +#ifdef MULTIPROFILE profileList.setAutoDelete( true ); @@ -105,3 +106,2 @@ QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent, hb->addWidget( profileCombo ); - loadProfiles(); #else @@ -109,2 +109,4 @@ QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent, #endif + + qWarning("profiles: %d", profileList.count()); @@ -132,2 +134,6 @@ QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent, tw->addTab( edit, tr("Customize") ); +#ifdef MULTIPROFILE + loadProfiles(); +#endif + } @@ -147,2 +153,3 @@ void QIMPenSetup::loadProfiles() profile = p; + edit->setProfile( profile ); } @@ -565,2 +572,3 @@ void QIMPenEdit::addChar() // Copy and mark deleted identical system characters. + QIMPenCharIterator it(currentSet->characters() ); |