Reserve the virtual viewportSizeHint method in QAbstractScrollArea.
The virtual method will be used to implement the patch at http://codereview.qt-project.org/#change,11763 Change-Id: I6d6ffbb8aaaba73e5c769f3435cc60323c77b75a Reviewed-by: Christoph Schleifenbaum <christoph.schleifenbaum@kdab.com> Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
afa50b1478
commit
0042b5f0f2
@ -1489,6 +1489,16 @@ void QAbstractScrollArea::setupViewport(QWidget *viewport)
|
||||
Q_UNUSED(viewport);
|
||||
}
|
||||
|
||||
/*!
|
||||
\internal
|
||||
|
||||
This method is reserved for future use.
|
||||
*/
|
||||
QSize QAbstractScrollArea::viewportSizeHint() const
|
||||
{
|
||||
return QSize();
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qabstractscrollarea.cpp"
|
||||
|
@ -122,6 +122,8 @@ protected:
|
||||
|
||||
virtual void scrollContentsBy(int dx, int dy);
|
||||
|
||||
virtual QSize viewportSizeHint() const;
|
||||
|
||||
private:
|
||||
Q_DECLARE_PRIVATE(QAbstractScrollArea)
|
||||
Q_DISABLE_COPY(QAbstractScrollArea)
|
||||
|
Loading…
Reference in New Issue
Block a user