Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

MyScrollBar Class Reference

The MyScrollBar allows public access to the mouse event functions, which are private in QScrollBar. More...

List of all members.

Public Member Functions

 MyScrollBar (QWidget *parent=0, const char *name=0)
 Creates a new scrollbar.

 MyScrollBar (Orientation o, QWidget *parent=0, const char *name=0)
 Creates a new scrollbar with a given orientation.

 MyScrollBar (int minValue, int maxValue, int LineStep, int PageStep, int value, Orientation o, QWidget *parent=0, const char *name=0)
 Creates a new scrollbar, allowing the caller to specify most parameters of the scrollbar.

void mouseMoveEvent (QMouseEvent *mo)
 Called when the user moves the mouse over the scrollbar area.

void mousePressEvent (QMouseEvent *mo)
 Called when the user presses a mouse button in the scrollbar area.

void mouseReleaseEvent (QMouseEvent *mo)
 Called when the user releases a mouse button in the scrollbar area.


Detailed Description

The MyScrollBar allows public access to the mouse event functions, which are private in QScrollBar.

See also the documentation of QScrollBar for more information.

Author:
Carsten Heß


Constructor & Destructor Documentation

MyScrollBar::MyScrollBar QWidget *  parent = 0,
const char *  name = 0
 

Creates a new scrollbar.

Parameters:
parent the parent widget
name name of this scrollbar (internal use only)

MyScrollBar::MyScrollBar Orientation  o,
QWidget *  parent = 0,
const char *  name = 0
 

Creates a new scrollbar with a given orientation.

Parameters:
o the scrollbar's orientation (Qt::Horizontal or Qt::Vertical).
parent the parent widget
name name of this scrollbar (internal use only)

MyScrollBar::MyScrollBar int  minValue,
int  maxValue,
int  LineStep,
int  PageStep,
int  value,
Orientation  o,
QWidget *  parent = 0,
const char *  name = 0
 

Creates a new scrollbar, allowing the caller to specify most parameters of the scrollbar.

Parameters:
minValue the scrollbar's minimum value.
maxValue the scrollbar's maximum value.
LineStep the scrollbar's line step size.
PageStep the scrollbar's page step size.
value the initial scrollbar value (initial thumb position).
o the scrollbar's orientation (Qt::Horizontal or Qt::Vertical).
parent the parent widget
name name of this scrollbar (internal use only)


Member Function Documentation

void MyScrollBar::mouseMoveEvent QMouseEvent *  mo  ) 
 

Called when the user moves the mouse over the scrollbar area.

Parameters:
mo the mouse event.

void MyScrollBar::mousePressEvent QMouseEvent *  mo  ) 
 

Called when the user presses a mouse button in the scrollbar area.

Parameters:
mo the mouse event.

void MyScrollBar::mouseReleaseEvent QMouseEvent *  mo  ) 
 

Called when the user releases a mouse button in the scrollbar area.

Parameters:
mo the mouse event.


Generated on Sun Apr 27 18:26:58 2003 for Grisu by doxygen1.3