diff options
author | Janne Anttila <janne.anttila@digia.com> | 2011-11-02 07:29:20 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-15 09:34:13 (GMT) |
commit | 412b92e5348e82c59cee30d83fc8d0c264fb5260 (patch) | |
tree | 6a236355113bfae532860464b4b6638d79d9ba68 /src/gui/itemviews | |
parent | 9912af2108398b8633f91300c455455f6e16e482 (diff) | |
download | Qt-412b92e5348e82c59cee30d83fc8d0c264fb5260.zip Qt-412b92e5348e82c59cee30d83fc8d0c264fb5260.tar.gz Qt-412b92e5348e82c59cee30d83fc8d0c264fb5260.tar.bz2 |
Fixed compiler warnings about unused q and d pointers.
The q and d pointers were not used in these functions at all, or they
were used only inside some #ifdef quard such as QT_NO_ACCESSIBILITY.
Moved the Q_D and Q_Q macros inside the appropriate scope.
Task-number: QTBUG-22512
Change-Id: I1624a1d800c7ce21cde4af1678d93e6f615edd45
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r-- | src/gui/itemviews/qtableview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemviews/qtableview.cpp b/src/gui/itemviews/qtableview.cpp index 4edc94d..0160329 100644 --- a/src/gui/itemviews/qtableview.cpp +++ b/src/gui/itemviews/qtableview.cpp @@ -3186,8 +3186,8 @@ void QTableView::currentChanged(const QModelIndex ¤t, const QModelIndex &p void QTableView::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) { - Q_D(QTableView); #ifndef QT_NO_ACCESSIBILITY + Q_D(QTableView); if (QAccessible::isActive()) { // ### does not work properly for selection ranges. QModelIndex sel = selected.indexes().value(0); |