#include <ZScrollView.h>
Inheritance diagram for ZScrollView::
Public Slots | |
virtual void | show () |
Reimplement. More... | |
virtual void | hide () |
Reimplement. More... | |
virtual void | doLayout (QWidget *widget, QSize size, QPoint cursorPos, int enlarge) |
Layout the children in the ZScrollView. More... | |
void | enableClipper (bool clipper) |
ZScrollView's enableClipper. More... | |
Signals | |
void | vScrollBarStateChanged (int show) |
Emitted when the vertical scrollbar of the ZScrollView is shown/hidden. More... | |
Public Methods | |
ZScrollView (QWidget *parent=0, const char *name=0, WFlags f=0) | |
Constructor of ZScrollView. More... | |
virtual | ~ZScrollView () |
Destructor of ZScrollView. More... | |
virtual void | addChild (QWidget *child, int x=0, int y=0) |
Reimplement. More... | |
virtual void | addChild (QWidget *child, int x, int y, bool autoAdjustWidth) |
ZScrollView's addChild. More... | |
virtual void | moveChild (QWidget *child, int x, int y, bool autoAdjustWidth=false) |
ZScrollView's moveChild. More... | |
void | updateContentSize () |
Update Content Size correctly by the all children's frame geometry. More... | |
void | setFlushEvents (bool flush=true) |
Set a flag for flush events in doLayout(), it is to call sendPostedEvents() which reduces screen flash. More... | |
bool | getFlushEvents () const |
Get the flush event flag. More... | |
void | setAutoLayout (bool doLayout=true) |
Set the flag to do layout automatically, usually doing layout is caused by the ZMultiLineEdit's text change. More... | |
bool | getAutoLayout () const |
Get the DoLayout flag. More... | |
Protected Methods | |
virtual bool | eventFilter (QObject *obj, QEvent *event) |
Reimplement. More... | |
virtual bool | event (QEvent *event) |
Reimplement. More... | |
virtual void | keyPressEvent (QKeyEvent *event) |
Reimplement. More... |
1. Adjusts the children's geometry automatically when the size of ZMultiLineEdit child is changed because of text set.
2. Changes the geometry of the text-entry area when the keyboard is shown/ hidden.
ZScrollView* sv = new ZScrollView( this, "sv" ); sv->enableClipper(true); UTIL_MulitLineEdit *ml1, *ml2; //add a 6 lines ZMultiLineEdit ml1 = new ZMultiLineEdit(sv->viewport(),true,6); sv->addChild(ml1,0,0); //set indent ml1->setIndent(20); ml2 = new ZMultiLineEdit(sv->viewport()); //need to change the widget width when ZScrollView's scrollbar is shown/hidden sv->addChild(ml2,0,30,true);
|
Constructor of ZScrollView.
|
|
Destructor of ZScrollView.
|
|
ZScrollView's addChild.
|
|
Reimplement.
|
|
Layout the children in the ZScrollView.
|
|
ZScrollView's enableClipper.
|
|
Reimplement.
|
|
Reimplement.
|
|
Get the DoLayout flag.
|
|
Get the flush event flag.
|
|
Reimplement.
|
|
Reimplement.
|
|
ZScrollView's moveChild.
|
|
Set the flag to do layout automatically, usually doing layout is caused by the ZMultiLineEdit's text change.
|
|
Set a flag for flush events in doLayout(), it is to call sendPostedEvents() which reduces screen flash. By default, the flag is on. If the application needs to assure the sequence of the events during the period, please turn off the flag.
|
|
Reimplement.
|
|
Update Content Size correctly by the all children's frame geometry.
|
|
Emitted when the vertical scrollbar of the ZScrollView is shown/hidden.
|