-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 | |||
@@ -94,5 +94,6 @@ QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent, | |||
94 | QVBoxLayout *vb = new QVBoxLayout( this ); | 94 | QVBoxLayout *vb = new QVBoxLayout( this ); |
95 | 95 | ||
96 | #if 0 | 96 | #define MULTIPROFILE |
97 | #ifdef MULTIPROFILE | ||
97 | profileList.setAutoDelete( true ); | 98 | profileList.setAutoDelete( true ); |
98 | QHBoxLayout *hb = new QHBoxLayout( vb ); | 99 | QHBoxLayout *hb = new QHBoxLayout( vb ); |
@@ -104,8 +105,9 @@ QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent, | |||
104 | this, SLOT(selectProfile(const QString &)) ); | 105 | this, SLOT(selectProfile(const QString &)) ); |
105 | hb->addWidget( profileCombo ); | 106 | hb->addWidget( profileCombo ); |
106 | loadProfiles(); | ||
107 | #else | 107 | #else |
108 | profileList.append( profile ); | 108 | profileList.append( profile ); |
109 | #endif | 109 | #endif |
110 | |||
111 | qWarning("profiles: %d", profileList.count()); | ||
110 | 112 | ||
111 | QTabWidget *tw = new QTabWidget( this ); | 113 | QTabWidget *tw = new QTabWidget( this ); |
@@ -131,4 +133,8 @@ QIMPenSetup::QIMPenSetup( QIMPenProfile *p, QWidget *parent, | |||
131 | edit = new QIMPenEdit( p, tw ); | 133 | edit = new QIMPenEdit( p, tw ); |
132 | tw->addTab( edit, tr("Customize") ); | 134 | tw->addTab( edit, tr("Customize") ); |
135 | #ifdef MULTIPROFILE | ||
136 | loadProfiles(); | ||
137 | #endif | ||
138 | |||
133 | } | 139 | } |
134 | 140 | ||
@@ -146,4 +152,5 @@ void QIMPenSetup::loadProfiles() | |||
146 | profileCombo->setCurrentItem( profileCombo->count()-1 ); | 152 | profileCombo->setCurrentItem( profileCombo->count()-1 ); |
147 | profile = p; | 153 | profile = p; |
154 | edit->setProfile( profile ); | ||
148 | } | 155 | } |
149 | } | 156 | } |
@@ -564,4 +571,5 @@ void QIMPenEdit::addChar() | |||
564 | // User characters override all matching system characters. | 571 | // User characters override all matching system characters. |
565 | // Copy and mark deleted identical system characters. | 572 | // Copy and mark deleted identical system characters. |
573 | |||
566 | QIMPenCharIterator it(currentSet->characters() ); | 574 | QIMPenCharIterator it(currentSet->characters() ); |
567 | QIMPenChar *sc = 0; | 575 | QIMPenChar *sc = 0; |