logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtArrowButton - Arrow Button.

Author

       Generated automatically by Doxygen for Qwt User's Guide from the source code.

Version 6.1.4                                    Wed Jan 2 2019                                QwtArrowButton(3)

Constructor & Destructor Documentation

QwtArrowButton::QwtArrowButton(intnum,Qt::ArrowTypearrowType,QWidget*parent=NULL)[explicit]Parameters:num Number of arrows
           arrowType see Qt::ArrowType in the Qt docs.
           parent Parent widget

Detailed Description

       Arrow Button.

       A push button with one or more filled triangles on its front. An Arrow button can have 1 to 3 arrows in a
       row, pointing up, down, left or right.

Member Function Documentation

QSizeQwtArrowButton::arrowSize(Qt::ArrowTypearrowType,constQSize&boundingSize)const[protected],[virtual]
       Calculate the size for a arrow that fits into a rectangle of a given size

       Parameters:arrowType Arrow type
           boundingSize Bounding size

       Returns:
           Size of the arrow

   voidQwtArrowButton::drawArrow(QPainter*painter,constQRect&r,Qt::ArrowTypearrowType)const[protected],[virtual]
       Draw an arrow int a bounding rectangle

       Parameters:painter Painter
           r Rectangle where to paint the arrow
           arrowType Arrow type

   voidQwtArrowButton::drawButtonLabel(QPainter*painter)[protected],[virtual]
       Draw the button label.

       Parameters:painter Painter

       Seealso:
           The Qt Manual for QPushButton

   QRectQwtArrowButton::labelRect()const[protected],[virtual]Returns:
           the bounding rectangle for the label

   voidQwtArrowButton::paintEvent(QPaintEvent*event)[protected],[virtual]
       Paint event handler

       Parameters:event Paint event

   QSizeQwtArrowButton::sizeHint()const[virtual]Returns:
           a size hint

Name

       QwtArrowButton - Arrow Button.

Synopsis

       #include <qwt_arrow_button.h>

       Inherits QPushButton.

   PublicMemberFunctionsQwtArrowButton (int num, Qt::ArrowType, QWidget *parent=NULL)
       virtual ~QwtArrowButton ()
           Destructor.
       Qt::ArrowType arrowType () const
           The direction of the arrows.
       int num () const
           The number of arrows.
       virtual QSize sizeHint () const
       virtual QSize minimumSizeHint () const
           Return a minimum size hint.

   ProtectedMemberFunctions
       virtual void paintEvent (QPaintEvent *event)
       virtual void drawButtonLabel (QPainter *)
           Draw the button label.
       virtual void drawArrow (QPainter *, const QRect &, Qt::ArrowType) const
       virtual QRect labelRect () const
       virtual QSize arrowSize (Qt::ArrowType, const QSize &boundingSize) const
       virtual void keyPressEvent (QKeyEvent *)
           autoRepeat for the space keys

See Also