Public Member Functions | Public Attributes

QwtLegend::PrivateData::LegendView Class Reference

List of all members.

Public Member Functions

 LegendView (QWidget *parent)
void viewportResizeEvent (QResizeEvent *e)

Public Attributes

QWidget * contentsWidget

Detailed Description

Definition at line 65 of file qwt_legend.cpp.


Constructor & Destructor Documentation

QwtLegend::PrivateData::LegendView::LegendView ( QWidget *  parent ) [inline]

Definition at line 68 of file qwt_legend.cpp.

References contentsWidget.

                               :
        QScrollView(parent)
    {
        setResizePolicy(Manual);

        viewport()->setBackgroundMode(Qt::NoBackground); // Avoid flicker

        contentsWidget = new QWidget(viewport());

        addChild(contentsWidget);
    }

Member Function Documentation

void QwtLegend::PrivateData::LegendView::viewportResizeEvent ( QResizeEvent *  e ) [inline]

Definition at line 80 of file qwt_legend.cpp.

References contentsWidget.

    {
        QScrollView::viewportResizeEvent(e);

        // It's not safe to update the layout now, because
        // we are in an internal update of the scrollview framework.
        // So we delay the update by posting a LayoutHint.

        QApplication::postEvent(contentsWidget, 
            new QEvent(QEvent::LayoutHint));
    }

Member Data Documentation

Definition at line 92 of file qwt_legend.cpp.

Referenced by LegendView(), and viewportResizeEvent().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines