libyui-qt
Loading...
Searching...
No Matches
YQAlignment Class Reference
Inheritance diagram for YQAlignment:
Collaboration diagram for YQAlignment:

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
 

Constructor & Destructor Documentation

◆ YQAlignment() [1/2]

YQAlignment::YQAlignment ( YWidget *  parent,
YAlignmentType  horAlign,
YAlignmentType  vertAlign 
)

Constructor.

◆ YQAlignment() [2/2]

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.

Member Function Documentation

◆ moveChild()

void YQAlignment::moveChild ( YWidget *  child,
int  newX,
int  newY 
)
virtual

Move the child widget to a new position.

Implemented from YAlignment.

◆ setBackgroundPixmap()

void YQAlignment::setBackgroundPixmap ( const std::string &  pixmapFileName)
virtual

Set the background pixmap.

Reimplemented from YAlignment.

◆ setEnabled()

void YQAlignment::setEnabled ( bool  enabled)
virtual

Enable or disable this widget and its child.

Reimplemented from YWidget.

◆ setSize()

void YQAlignment::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.


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