mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
56047b2b0b
svn path=/trunk/kdegraphics/kdvi/; revision=2139
36 lines
946 B
C++
36 lines
946 B
C++
/****************************************************************************
|
|
**
|
|
** An enhanced pushbutton.
|
|
**
|
|
** Copyright (C) 1997 by Markku Hihnala.
|
|
** This class is freely distributable under the GNU Public License.
|
|
**
|
|
*****************************************************************************/
|
|
|
|
#include "pushbutton.h"
|
|
#include <qtabdlg.h>
|
|
#include <qmlined.h>
|
|
#include <qbttngrp.h>
|
|
#include <qradiobt.h>
|
|
#include <qlabel.h>
|
|
#include <qcombo.h>
|
|
#include <qlayout.h>
|
|
#include <stdio.h>
|
|
#include <qstring.h>
|
|
#include <qpainter.h>
|
|
#include <qdrawutl.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();
|
|
}
|