libyui-qt
2.43.5
|
Public Member Functions | |
YQAlignment (YWidget *parent, YAlignmentType horAlign, YAlignmentType vertAlign) | |
YQAlignment (YWidget *yParent, QWidget *qParent, YAlignmentType horAlign, YAlignmentType vertAlign) | |
virtual void | moveChild (YWidget *child, int newX, int newY) |
virtual void | setEnabled (bool enabled) |
virtual void | setSize (int newWidth, int newHeight) |
virtual void | setBackgroundPixmap (const std::string &pixmapFileName) |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *event) |
Protected Attributes | |
std::string | _pixmapFileName |
Definition at line 35 of file YQAlignment.h.
YQAlignment::YQAlignment | ( | YWidget * | parent, |
YAlignmentType | horAlign, | ||
YAlignmentType | vertAlign | ||
) |
Constructor.
Definition at line 35 of file YQAlignment.cc.
YQAlignment::YQAlignment | ( | YWidget * | yParent, |
QWidget * | qParent, | ||
YAlignmentType | horAlign, | ||
YAlignmentType | vertAlign | ||
) |
Constructor for cases where the YWidget parent's widgetRep() isn't the QWidget parent, for example in compound widgets like YQWizard where it makes sense to pass a child of the YQWizard (the client area) as the QWidget parent.
Use this only if you know very well what you are doing.
Definition at line 45 of file YQAlignment.cc.
void YQAlignment::moveChild | ( | YWidget * | child, |
int | newX, | ||
int | newY | ||
) | [virtual] |
Move the child widget to a new position.
Implemented from YAlignment.
Definition at line 63 of file YQAlignment.cc.
void YQAlignment::setBackgroundPixmap | ( | const std::string & | pixmapFileName | ) | [virtual] |
Set the background pixmap.
Reimplemented from YAlignment.
Definition at line 84 of file YQAlignment.cc.
void YQAlignment::setEnabled | ( | bool | enabled | ) | [virtual] |
Enable or disable this widget and its child.
Reimplemented from YWidget.
Definition at line 56 of file YQAlignment.cc.
void YQAlignment::setSize | ( | int | newWidth, |
int | newHeight | ||
) | [virtual] |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 70 of file YQAlignment.cc.