summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-06-05 14:34:22 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-06-05 14:34:22 (GMT)
commitba753f45e472810739c04e3677b754671e62b76b (patch)
tree9eb810ee2de2e03a3df8a1516e4bba68140b0895
parentd0a2a16bfe73c4281277397dec0fdc8ca201f0fa (diff)
downloadQt-ba753f45e472810739c04e3677b754671e62b76b.zip
Qt-ba753f45e472810739c04e3677b754671e62b76b.tar.gz
Qt-ba753f45e472810739c04e3677b754671e62b76b.tar.bz2
S60Style: More styleHints
-rw-r--r--src/gui/styles/qs60style.cpp28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index fe24195..9a96c05 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -2269,10 +2269,36 @@ int QS60Style::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget *w
retValue = '*';
break;
case SH_ComboBox_PopupFrameStyle:
- retValue = QFrame::NoFrame;
+ retValue = QFrame::NoFrame | QFrame::Plain;
break;
case SH_Dial_BackgroundRole:
retValue = QPalette::Base;
+ case SH_ItemView_ActivateItemOnSingleClick:
+ retValue = true;
+ break;
+ case SH_ProgressDialog_TextLabelAlignment:
+ retValue = (QApplication::layoutDirection() == Qt::LeftToRight) ?
+ Qt::AlignLeft :
+ Qt::AlignRight;
+ break;
+ case SH_Menu_SubMenuPopupDelay:
+ retValue = 300;
+ break;
+ case SH_Menu_Scrollable:
+ retValue = true;
+ break;
+ case SH_Menu_SelectionWrap:
+ retValue = true;
+ break;
+ case SH_ItemView_ShowDecorationSelected:
+ retValue = true;
+ break;
+ case SH_ToolBar_Movable:
+ retValue = false;
+ break;
+ case SH_BlinkCursorWhenTextSelected:
+ retValue = true;
+ break;
default:
break;
}