summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2010-02-26 08:14:53 (GMT)
committerJanne Anttila <janne.anttila@digia.com>2010-02-26 08:17:49 (GMT)
commit53e7dda038e9251ca7380d3717709764c580192e (patch)
tree890153e559ad2ac7a46d98080bbbcb4f55650fa6
parent481fa3dd80d046779d4464fc50a8ad250ef9771c (diff)
downloadQt-53e7dda038e9251ca7380d3717709764c580192e.zip
Qt-53e7dda038e9251ca7380d3717709764c580192e.tar.gz
Qt-53e7dda038e9251ca7380d3717709764c580192e.tar.bz2
Build break fix for commit d8465414e6fd543cfc20e732030dedd8d2bc685f.
RVCT does not like static inline, and variables should not be defined in case statement without braces. In this case the temp variable was actually unnecessary. Reviewed-By: TrustMe
-rw-r--r--src/gui/itemviews/qabstractitemview.cpp3
-rw-r--r--src/gui/kernel/qwidget_p.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp
index 555555e..bc6db90 100644
--- a/src/gui/itemviews/qabstractitemview.cpp
+++ b/src/gui/itemviews/qabstractitemview.cpp
@@ -2283,10 +2283,9 @@ void QAbstractItemView::keyPressEvent(QKeyEvent *event)
case Qt::Key_Left:
case Qt::Key_Right:
#ifdef QT_KEYPAD_NAVIGATION
- int colCount = d->model->columnCount(d->root);
if (QApplication::navigationMode() == Qt::NavigationModeKeypadDirectional
&& (QWidgetPrivate::canKeypadNavigate(Qt::Horizontal)
- || (QWidgetPrivate::inTabWidget(this) && colCount > 1))) {
+ || (QWidgetPrivate::inTabWidget(this) && d->model->columnCount(d->root) > 1))) {
event->accept(); // don't change focus
break;
}
diff --git a/src/gui/kernel/qwidget_p.h b/src/gui/kernel/qwidget_p.h
index 1cb6072..1bbc057 100644
--- a/src/gui/kernel/qwidget_p.h
+++ b/src/gui/kernel/qwidget_p.h
@@ -472,8 +472,8 @@ public:
#ifdef QT_KEYPAD_NAVIGATION
static bool navigateToDirection(Direction direction);
static QWidget *widgetInNavigationDirection(Direction direction);
- static inline bool canKeypadNavigate(Qt::Orientation orientation);
- static inline bool inTabWidget(QWidget *widget);
+ static bool canKeypadNavigate(Qt::Orientation orientation);
+ static bool inTabWidget(QWidget *widget);
#endif
void setWindowIconText_sys(const QString &cap);