Back to index

kdeartwork  4.3.2
Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes
KDE1::ThreeButtonButton Class Reference

#include <kde1client.h>

List of all members.

Signals

void clicked (ButtonState)

Public Member Functions

 ThreeButtonButton (QWidget *parent=0, const char *name=0)
 ~ThreeButtonButton ()

Protected Member Functions

void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)

Private Slots

void handleClicked ()

Private Attributes

ButtonState last_button

Detailed Description

Definition at line 119 of file kde1client.h.


Constructor & Destructor Documentation

KDE1::ThreeButtonButton::ThreeButtonButton ( QWidget *  parent = 0,
const char *  name = 0 
) [inline]

Definition at line 123 of file kde1client.h.

      : QToolButton( parent, name )
    {
       connect( this, SIGNAL( clicked() ), this, SLOT( handleClicked() ) );
        setCursor( arrowCursor );
    }

Here is the call graph for this function:

Definition at line 129 of file kde1client.h.

{}

Member Function Documentation

void KDE1::ThreeButtonButton::clicked ( ButtonState  ) [signal]

Here is the caller graph for this function:

void KDE1::ThreeButtonButton::handleClicked ( ) [inline, private, slot]

Definition at line 149 of file kde1client.h.

    {
       emit clicked( last_button );
    }

Here is the call graph for this function:

Here is the caller graph for this function:

void KDE1::ThreeButtonButton::mousePressEvent ( QMouseEvent *  e) [inline, protected]

Definition at line 135 of file kde1client.h.

    {
       last_button = e->button();
       QMouseEvent me ( e->type(), e->pos(), e->globalPos(), Qt::LeftButton, e->state() );
       QToolButton::mousePressEvent( &me );
    }
void KDE1::ThreeButtonButton::mouseReleaseEvent ( QMouseEvent *  e) [inline, protected]

Definition at line 142 of file kde1client.h.

    {
       QMouseEvent me ( e->type(), e->pos(), e->globalPos(), Qt::LeftButton, e->state() );
       QToolButton::mouseReleaseEvent( &me );
    }

Member Data Documentation

ButtonState KDE1::ThreeButtonButton::last_button [private]

Definition at line 155 of file kde1client.h.


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