equal
deleted
inserted
replaced
46 mLabel1(0), |
46 mLabel1(0), |
47 mLabel2(0), |
47 mLabel2(0), |
48 mEdit2(0), |
48 mEdit2(0), |
49 mAdditionalRowVisible(false) |
49 mAdditionalRowVisible(false) |
50 { |
50 { |
51 mLabel1 = style()->createPrimitive(HbStyle::P_InputDialog_text,this); |
51 mLabel1 = HbStylePrivate::createPrimitive(HbStylePrivate::P_InputDialog_text,this); |
52 mEdit1 = new HbLineEdit(this); |
52 mEdit1 = new HbLineEdit(this); |
53 HbStyle::setItemName(mEdit1, "text-1"); |
53 HbStyle::setItemName(mEdit1, "text-1"); |
54 |
54 |
55 connect(mEdit1,SIGNAL(textChanged(const QString)),this,SLOT(emitTextChange(const QString))); |
55 connect(mEdit1,SIGNAL(textChanged(const QString)),this,SLOT(emitTextChange(const QString))); |
56 this->setProperty("additionalRowVisible",QVariant(false)); |
56 this->setProperty("additionalRowVisible",QVariant(false)); |
63 void HbInputDialogContentWidget::setAdditionalRowVisible(bool visible) |
63 void HbInputDialogContentWidget::setAdditionalRowVisible(bool visible) |
64 { |
64 { |
65 mAdditionalRowVisible = visible; |
65 mAdditionalRowVisible = visible; |
66 |
66 |
67 if(!mLabel2 && visible) { |
67 if(!mLabel2 && visible) { |
68 mLabel2 = style()->createPrimitive(HbStyle::P_InputDialog_additionaltext,this); |
68 mLabel2 = HbStylePrivate::createPrimitive(HbStylePrivate::P_InputDialog_additionaltext,this); |
69 } |
69 } |
70 |
70 |
71 if(!mEdit2 && visible) { |
71 if(!mEdit2 && visible) { |
72 //Retrieve the cached data here and assign// |
72 //Retrieve the cached data here and assign// |
73 mEdit2 = new HbLineEdit(this); |
73 mEdit2 = new HbLineEdit(this); |
257 } |
257 } |
258 HbStyleOptionInputDialog option; |
258 HbStyleOptionInputDialog option; |
259 if(row == 0) { |
259 if(row == 0) { |
260 mPromptText = text; |
260 mPromptText = text; |
261 q->initStyleOption(&option); |
261 q->initStyleOption(&option); |
262 q->style()->updatePrimitive(mContentWidget->mLabel1,HbStyle::P_InputDialog_text,&option); |
262 HbStylePrivate::updatePrimitive(mContentWidget->mLabel1,HbStylePrivate::P_InputDialog_text,&option); |
263 } else { |
263 } else { |
264 mPromptAdditionalText = text; |
264 mPromptAdditionalText = text; |
265 q->initStyleOption(&option); |
265 q->initStyleOption(&option); |
266 if(mContentWidget->mAdditionalRowVisible) { |
266 if(mContentWidget->mAdditionalRowVisible) { |
267 q->style()->updatePrimitive(mContentWidget->mLabel2,HbStyle::P_InputDialog_additionaltext,&option); |
267 HbStylePrivate::updatePrimitive(mContentWidget->mLabel2,HbStylePrivate::P_InputDialog_additionaltext,&option); |
268 } |
268 } |
269 } |
269 } |
270 } |
270 } |
271 |
271 |
272 |
272 |