1997-10-18 11:34:02 +00:00
|
|
|
/****************************************************************************
|
|
|
|
**
|
|
|
|
** An enhanced pushbutton.
|
|
|
|
**
|
|
|
|
** Copyright (C) 1997 by Markku Hihnala.
|
|
|
|
** This class is freely distributable under the GNU Public License.
|
|
|
|
**
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#include "pushbutton.h"
|
1999-03-01 23:45:56 +00:00
|
|
|
#include <qtabdialog.h>
|
|
|
|
#include <qmultilinedit.h>
|
|
|
|
#include <qbuttongroup.h>
|
|
|
|
#include <qradiobutton.h>
|
1997-10-18 11:34:02 +00:00
|
|
|
#include <qlabel.h>
|
1999-03-01 23:45:56 +00:00
|
|
|
#include <qcombobox.h>
|
1997-10-18 11:34:02 +00:00
|
|
|
#include <qlayout.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <qstring.h>
|
|
|
|
#include <qpainter.h>
|
1999-03-01 23:45:56 +00:00
|
|
|
#include <qdrawutil.h>
|
1997-10-18 11:34:02 +00:00
|
|
|
|
|
|
|
PushButton::PushButton( QWidget * parent , const char * name )
|
|
|
|
: QPushButton( parent, name )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void PushButton::mousePressEvent ( QMouseEvent *e )
|
|
|
|
{
|
|
|
|
if ( e->button() == LeftButton )
|
|
|
|
QPushButton::mousePressEvent( e );
|
|
|
|
else if ( e->button() == RightButton )
|
|
|
|
emit button3Pressed( mapToGlobal( e->pos() ) );
|
|
|
|
// else if ( e->button() == MidButton )
|
|
|
|
// emit button2Pressed();
|
|
|
|
}
|