All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <PropertyArea.h>
Public Slots | |
| void | resizeContent () |
Public Member Functions | |
| virtual QSize | minimumSizeHint () const |
| PropertyArea (QWidget *parent=0) | |
| virtual QSize | sizeHint () const |
| ~PropertyArea () | |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *e) |
Brief description of class still missing.
Full description of class still missing
| QGpGuiTools::PropertyArea::PropertyArea | ( | QWidget * | parent = 0 | ) |
Description of constructor still missing
: QScrollArea(parent)
{
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
}
Description of destructor still missing
{
}
| QSize QGpGuiTools::PropertyArea::minimumSizeHint | ( | ) | const [virtual] |
Referenced by sizeHint().
{
QSize s;
s.setHeight(200);
if(widget()) {
s.setWidth(widget()->minimumSizeHint().width()+20);
}
return s;
}
| void QGpGuiTools::PropertyArea::resizeContent | ( | ) | [slot] |
Referenced by QGpGuiTools::PropertyEditor::eventFilter(), and resizeEvent().
{
if(widget()) {
QSize s=widget()->minimumSizeHint();
if(s.width()<viewport()->width()) s.setWidth(viewport()->width());
widget()->resize(s);
}
}
| void QGpGuiTools::PropertyArea::resizeEvent | ( | QResizeEvent * | e | ) | [protected] |
References resizeContent().
{
resizeContent();
QScrollArea::resizeEvent(e);
}
| QSize QGpGuiTools::PropertyArea::sizeHint | ( | ) | const [virtual] |
References minimumSizeHint().
{
return minimumSizeHint();
}