diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-11-01 17:01:29 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-11-01 17:01:29 (GMT) |
commit | 837cfd75e6e806d6d77f4d50ce5aa113f891230a (patch) | |
tree | 3e6a1843fd5a31108ebe3e4e78636c4ea0bee422 /tests/auto/qtreeview/tst_qtreeview.cpp | |
parent | 5d09315ecc731b23636fbf4b19e1b0e9b9876887 (diff) | |
parent | debf1ea609ee10eb9429f02d1d1f63a2490529d5 (diff) | |
download | Qt-837cfd75e6e806d6d77f4d50ce5aa113f891230a.zip Qt-837cfd75e6e806d6d77f4d50ce5aa113f891230a.tar.gz Qt-837cfd75e6e806d6d77f4d50ce5aa113f891230a.tar.bz2 |
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-symbian-team: (62 commits)
Correct faulty 4.7->4.8 merge of Symbian def-files
SSL documentation: correct enum name
Updated changelog for Qt 4.8
Fix QFile::copy() returning false but error() being NoError
Symbian - disable memory mapping in QNetworkDiskCache
Revert "Fixed deployment problems with MSVC 2005 and 2008 SP1"
Harfbuzz shaper: kerning adjustment does not need to be modified by RTL
QIODevice - disallow setTextMode when not open
Adding items to a view with no delegate crashes.
Update changelog for Qt 4.8
Fix possible crash in glyph cache when deleting and creating contexts
Added Lithuanian translation of Qt.
Remove idc from mingw build.
Update changelog for Qt 4.8
Update changelog for Qt 4.8
Doc: Fix example code
Regression caused by 2be143ebb5246bb2f9b674bb09d23df5b2b6c504
Add the ability to enable various SSL bug workarounds.
Fix security issue on website due to bad JS.
Fix security problem on webpage due to bad JS
...
Diffstat (limited to 'tests/auto/qtreeview/tst_qtreeview.cpp')
-rw-r--r-- | tests/auto/qtreeview/tst_qtreeview.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/auto/qtreeview/tst_qtreeview.cpp b/tests/auto/qtreeview/tst_qtreeview.cpp index facb982..c37a4ea 100644 --- a/tests/auto/qtreeview/tst_qtreeview.cpp +++ b/tests/auto/qtreeview/tst_qtreeview.cpp @@ -45,6 +45,7 @@ #include <QtTest/QtTest> #include <QtGui/QtGui> +#include <private/qabstractitemview_p.h> #include "../../shared/util.h" //TESTED_CLASS= @@ -112,6 +113,8 @@ struct PublicView : public QTreeView inline QStyleOptionViewItem viewOptions() const { return QTreeView::viewOptions(); } inline int sizeHintForColumn(int column) const { return QTreeView::sizeHintForColumn(column); } + inline void startDrag(Qt::DropActions supportedActions) { QTreeView::startDrag(supportedActions); } + QAbstractItemViewPrivate* aiv_priv() { return static_cast<QAbstractItemViewPrivate*>(d_ptr.data()); } }; class tst_QTreeView : public QObject @@ -2947,7 +2950,7 @@ void tst_QTreeView::styleOptionViewItem() bool allCollapsed; }; - QTreeView view; + PublicView view; QStandardItemModel model; view.setModel(&model); MyDelegate delegate; @@ -3006,6 +3009,12 @@ void tst_QTreeView::styleOptionViewItem() QApplication::processEvents(); QTRY_VERIFY(delegate.count >= 4); + // test that the rendering of drag pixmap sets the correct options too (QTBUG-15834) + delegate.count = 0; + QItemSelection sel(model.index(0,0), model.index(0,3)); + QRect rect; + view.aiv_priv()->renderToPixmap(sel.indexes(), &rect); + QTRY_VERIFY(delegate.count >= 4); //test dynamic models { |