#include <klfpixmapbutton.h>
Public Slots | |
virtual void | setPixmap (const QPixmap &pix) |
virtual void | setPixmapMargin (int pixels) |
virtual void | setPixXAlignFactor (float xalignfactor) |
virtual void | setPixYAlignFactor (float yalignfactor) |
virtual void | setPixmapScale (float x) |
Public Member Functions | |
KLFPixmapButton (const QPixmap &pix, QWidget *parent=0) | |
virtual | ~KLFPixmapButton () |
virtual QSize | minimumSizeHint () const |
virtual QSize | sizeHint () const |
virtual QPixmap | pixmap () const |
virtual int | pixmapMargin () const |
virtual float | pixXAlignFactor () const |
virtual float | pixYAlignFactor () const |
virtual float | pixmapScale () const |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *event) |
Properties | |
QPixmap | pixmap |
int | pixmapMargin |
float | pixXAlignFactor |
float | pixYAlignFactor |
float | pixmapScale |
A button that displays a pixmap
Definition at line 33 of file klfpixmapbutton.h.
KLFPixmapButton::KLFPixmapButton | ( | const QPixmap & | pix, |
QWidget * | parent = 0 |
||
) |
Definition at line 37 of file klfpixmapbutton.cpp.
virtual KLFPixmapButton::~KLFPixmapButton | ( | ) | [inline, virtual] |
Definition at line 44 of file klfpixmapbutton.h.
QSize KLFPixmapButton::minimumSizeHint | ( | ) | const [virtual] |
Definition at line 47 of file klfpixmapbutton.cpp.
References sizeHint().
void KLFPixmapButton::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Definition at line 75 of file klfpixmapbutton.cpp.
References QPainter::drawPixmap(), QSizeF::height(), QPaintEvent::rect(), QPainter::setClipRect(), QPixmap::size(), and QSizeF::width().
virtual QPixmap KLFPixmapButton::pixmap | ( | ) | const [inline, virtual] |
Definition at line 49 of file klfpixmapbutton.h.
virtual int KLFPixmapButton::pixmapMargin | ( | ) | const [inline, virtual] |
Definition at line 50 of file klfpixmapbutton.h.
virtual float KLFPixmapButton::pixmapScale | ( | ) | const [inline, virtual] |
Definition at line 53 of file klfpixmapbutton.h.
virtual float KLFPixmapButton::pixXAlignFactor | ( | ) | const [inline, virtual] |
Definition at line 51 of file klfpixmapbutton.h.
virtual float KLFPixmapButton::pixYAlignFactor | ( | ) | const [inline, virtual] |
Definition at line 52 of file klfpixmapbutton.h.
virtual void KLFPixmapButton::setPixmap | ( | const QPixmap & | pix | ) | [inline, virtual, slot] |
Definition at line 56 of file klfpixmapbutton.h.
virtual void KLFPixmapButton::setPixmapMargin | ( | int | pixels | ) | [inline, virtual, slot] |
Definition at line 57 of file klfpixmapbutton.h.
virtual void KLFPixmapButton::setPixmapScale | ( | float | x | ) | [inline, virtual, slot] |
Definition at line 60 of file klfpixmapbutton.h.
virtual void KLFPixmapButton::setPixXAlignFactor | ( | float | xalignfactor | ) | [inline, virtual, slot] |
Definition at line 58 of file klfpixmapbutton.h.
virtual void KLFPixmapButton::setPixYAlignFactor | ( | float | yalignfactor | ) | [inline, virtual, slot] |
Definition at line 59 of file klfpixmapbutton.h.
QSize KLFPixmapButton::sizeHint | ( | ) | const [virtual] |
Definition at line 52 of file klfpixmapbutton.cpp.
References QPixmap::height(), style, and QPixmap::width().
Referenced by minimumSizeHint().
QPixmap KLFPixmapButton::pixmap [read, write] |
Definition at line 37 of file klfpixmapbutton.h.
int KLFPixmapButton::pixmapMargin [read, write] |
Definition at line 38 of file klfpixmapbutton.h.
float KLFPixmapButton::pixmapScale [read, write] |
Definition at line 41 of file klfpixmapbutton.h.
float KLFPixmapButton::pixXAlignFactor [read, write] |
Definition at line 39 of file klfpixmapbutton.h.
float KLFPixmapButton::pixYAlignFactor [read, write] |
Definition at line 40 of file klfpixmapbutton.h.