libyui-qt  2.46.13
YQAlignment Class Reference
Inheritance diagram for YQAlignment:
Collaboration diagram for YQAlignment:

Public Member Functions

 YQAlignment (YWidget *parent, YAlignmentType horAlign, YAlignmentType vertAlign)
 Constructor.
 
 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. More...
 
virtual void moveChild (YWidget *child, int newX, int newY)
 Move the child widget to a new position. More...
 
virtual void setEnabled (bool enabled)
 Enable or disable this widget and its child. More...
 
virtual void setSize (int newWidth, int newHeight)
 Set the new size of the widget. More...
 
virtual void setBackgroundPixmap (const std::string &pixmapFileName)
 Set the background pixmap. More...
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
 

Protected Attributes

std::string _pixmapFileName
 

Detailed Description

Definition at line 35 of file YQAlignment.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.


The documentation for this class was generated from the following files: