23 ** |
23 ** |
24 ****************************************************************************/ |
24 ****************************************************************************/ |
25 |
25 |
26 #include <QGraphicsLinearLayout> |
26 #include <QGraphicsLinearLayout> |
27 #include <QGraphicsGridLayout> |
27 #include <QGraphicsGridLayout> |
28 #if QT_VERSION >= 0x040600 |
|
29 #include <QGraphicsDropShadowEffect> |
|
30 #endif |
|
31 |
28 |
32 #include <hblabel.h> |
29 #include <hblabel.h> |
33 #include <hbpushbutton.h> |
30 #include <hbpushbutton.h> |
34 #include <hblistwidget.h> |
31 #include <hblistwidget.h> |
35 #include <hblistwidgetitem.h> |
32 #include <hblistwidgetitem.h> |
142 |
139 |
143 #if QT_VERSION >= 0x040600 |
140 #if QT_VERSION >= 0x040600 |
144 // Make sure the custom button list never steals focus. |
141 // Make sure the custom button list never steals focus. |
145 setFlag(QGraphicsItem::ItemIsPanel, true); |
142 setFlag(QGraphicsItem::ItemIsPanel, true); |
146 setActive(false); |
143 setActive(false); |
147 |
|
148 // enable drop shadow for the setting list |
|
149 // Effect deletion is crashing -> Effect temporarily removed |
|
150 // QGraphicsDropShadowEffect *effect = new QGraphicsDropShadowEffect; |
|
151 // effect->setBlurRadius(8); |
|
152 // setGraphicsEffect(effect); |
|
153 #endif |
144 #endif |
154 |
145 |
155 connect(d->mLanguageButton, SIGNAL(clicked(bool)), this, SLOT(languageButtonClicked())); |
146 connect(d->mLanguageButton, SIGNAL(clicked(bool)), this, SLOT(languageButtonClicked())); |
156 connect(d->mPredictionButton, SIGNAL(clicked(bool)), this, SLOT(predictionButtonClicked())); |
147 connect(d->mPredictionButton, SIGNAL(clicked(bool)), this, SLOT(predictionButtonClicked())); |
157 connect(d->mOptionList, SIGNAL(activated(HbListWidgetItem*)), this, SLOT(listItemActivated(HbListWidgetItem*))); |
148 connect(d->mOptionList, SIGNAL(activated(HbListWidgetItem*)), this, SLOT(listItemActivated(HbListWidgetItem*))); |