You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
967 B
36 lines
967 B
/**************************************************************************** |
|
** |
|
** An enhanced pushbutton. |
|
** |
|
** Copyright (C) 1997 by Markku Hihnala. |
|
** This class is freely distributable under the GNU Public License. |
|
** |
|
*****************************************************************************/ |
|
|
|
#include "pushbutton.h" |
|
#include <qtabdialog.h> |
|
#include <qmultilinedit.h> |
|
#include <qbuttongroup.h> |
|
#include <qradiobutton.h> |
|
#include <qlabel.h> |
|
#include <qcombobox.h> |
|
#include <qlayout.h> |
|
#include <stdio.h> |
|
#include <qstring.h> |
|
#include <qpainter.h> |
|
#include <qdrawutil.h> |
|
|
|
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(); |
|
}
|
|
|