Skip to content
Permalink
Browse files

Make QgsVScrollArea inherit QgsScrollArea

  • Loading branch information
manisandro committed Oct 24, 2017
1 parent cff3569 commit bb21395e3d82931683463c024ffb369fd09435ea
Showing with 5 additions and 5 deletions.
  1. +1 −1 python/gui/qgsvscrollarea.sip
  2. +2 −2 src/gui/qgsvscrollarea.cpp
  3. +2 −2 src/gui/qgsvscrollarea.h
@@ -9,7 +9,7 @@



class QgsVScrollArea : QScrollArea
class QgsVScrollArea : QgsScrollArea
{
%Docstring
QgsVScrollArea is a QScrollArea subclass which only displays a vertical
@@ -20,7 +20,7 @@
#include <QScrollBar>

QgsVScrollArea::QgsVScrollArea( QWidget *parent )
: QScrollArea( parent )
: QgsScrollArea( parent )
{
setWidgetResizable( true );
setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
@@ -32,5 +32,5 @@ bool QgsVScrollArea::eventFilter( QObject *o, QEvent *e )
// This works because QScrollArea::setWidget installs an eventFilter on the widget
if ( o && o == widget() && e->type() == QEvent::Resize )
setMinimumWidth( widget()->minimumSizeHint().width() + verticalScrollBar()->width() );
return QScrollArea::eventFilter( o, e );
return QgsScrollArea::eventFilter( o, e );
}
@@ -19,7 +19,7 @@
#define QGSVSCROLLAREA_H

#include "qgis_gui.h"
#include <QScrollArea>
#include "qgsscrollarea.h"

/**
* \ingroup gui
@@ -28,7 +28,7 @@
*
* \since QGIS 3.0
*/
class GUI_EXPORT QgsVScrollArea : public QScrollArea
class GUI_EXPORT QgsVScrollArea : public QgsScrollArea
{
public:

0 comments on commit bb21395

Please sign in to comment.
You can’t perform that action at this time.