removed removed obsolete ctrlClick() signal

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1131 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-15 12:49:04 +00:00
parent d0483d9138
commit 137196cec5
2 changed files with 14 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
/*
* pixmap_button.h - declaration of class pixmapButton
*
* Copyright (c) 2004-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -35,7 +35,8 @@ class EXPORT pixmapButton : public automatableButton
{
Q_OBJECT
public:
pixmapButton( QWidget * _parent, const QString & _name = QString::null );
pixmapButton( QWidget * _parent,
const QString & _name = QString::null );
virtual ~pixmapButton();
void setActiveGraphic( const QPixmap & _pm );
@@ -44,7 +45,6 @@ public:
signals:
void doubleClicked( void );
void ctrlClick( void );
protected:

View File

@@ -78,25 +78,19 @@ void pixmapButton::paintEvent( QPaintEvent * )
void pixmapButton::mousePressEvent( QMouseEvent * _me )
{
if( _me->button() == Qt::LeftButton &&
engine::getMainWindow()->isCtrlPressed() )
// Show pressing graphics if this isn't checkable
if( !isCheckable() )
{
emit( ctrlClick() );
_me->accept();
m_pressed = TRUE;
update();
}
else
{
// Show pressing graphics if this isn't checkable
if( !isCheckable() )
{
m_pressed = TRUE;
update();
}
automatableButton::mousePressEvent( _me );
}
automatableButton::mousePressEvent( _me );
}
void pixmapButton::mouseReleaseEvent( QMouseEvent * _me )
{
automatableButton::mouseReleaseEvent( _me );
@@ -108,6 +102,9 @@ void pixmapButton::mouseReleaseEvent( QMouseEvent * _me )
}
}
void pixmapButton::mouseDoubleClickEvent( QMouseEvent * _me )
{
emit doubleClicked();