Fix build with QT_NO_DRAGANDDROP

viewportSizeHint() should be defined outside the QT_NO_DRAGANDDROP ifndef

Change-Id: I7c23c820ea58b3614eb030dc5b0f290ad891ccb1
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Sérgio Martins 2014-08-11 01:21:32 +01:00 committed by Marc Mutz
parent 909d3f5c73
commit 96d8c61f0d

View File

@ -1370,6 +1370,15 @@ bool QAbstractItemView::tabKeyNavigation() const
return d->tabKeyNavigation;
}
/*!
\since 5.2
\reimp
*/
QSize QAbstractItemView::viewportSizeHint() const
{
return QAbstractScrollArea::viewportSizeHint();
}
#ifndef QT_NO_DRAGANDDROP
/*!
\property QAbstractItemView::showDropIndicator
@ -1390,15 +1399,6 @@ bool QAbstractItemView::showDropIndicator() const
return d->showDropIndicator;
}
/*!
\since 5.2
\reimp
*/
QSize QAbstractItemView::viewportSizeHint() const
{
return QAbstractScrollArea::viewportSizeHint();
}
/*!
\property QAbstractItemView::dragEnabled
\brief whether the view supports dragging of its own items