|
|
|
@ -1294,11 +1294,11 @@ void karamba::meterClicked(TQMouseEvent* e, Meter* meter)
|
|
|
|
|
{
|
|
|
|
|
int button = 0;
|
|
|
|
|
|
|
|
|
|
if( e->button() == Qt::LeftButton )
|
|
|
|
|
if( e->button() == TQt::LeftButton )
|
|
|
|
|
button = 1;
|
|
|
|
|
else if( e->button() == Qt::MidButton )
|
|
|
|
|
else if( e->button() == TQt::MidButton )
|
|
|
|
|
button = 2;
|
|
|
|
|
else if( e->button() == Qt::RightButton )
|
|
|
|
|
else if( e->button() == TQt::RightButton )
|
|
|
|
|
button = 3;
|
|
|
|
|
|
|
|
|
|
if (RichTextLabel* richText = dynamic_cast<RichTextLabel*>(meter))
|
|
|
|
@ -1351,11 +1351,11 @@ void karamba::passClick(TQMouseEvent *e)
|
|
|
|
|
{
|
|
|
|
|
int button = 0;
|
|
|
|
|
|
|
|
|
|
if( e->button() == Qt::LeftButton )
|
|
|
|
|
if( e->button() == TQt::LeftButton )
|
|
|
|
|
button = 1;
|
|
|
|
|
else if( e->button() == Qt::MidButton )
|
|
|
|
|
else if( e->button() == TQt::MidButton )
|
|
|
|
|
button = 2;
|
|
|
|
|
else if( e->button() == Qt::RightButton )
|
|
|
|
|
else if( e->button() == TQt::RightButton )
|
|
|
|
|
button = 3;
|
|
|
|
|
|
|
|
|
|
pythonIface->widgetClicked(this, e->x(), e->y(), button);
|
|
|
|
@ -1416,7 +1416,7 @@ void karamba::management_popup( void )
|
|
|
|
|
void karamba::mousePressEvent( TQMouseEvent *e )
|
|
|
|
|
{
|
|
|
|
|
//tqDebug("karamba::mousePressEvent");
|
|
|
|
|
if( e->button() == Qt::RightButton && !want_right_button )
|
|
|
|
|
if( e->button() == TQt::RightButton && !want_right_button )
|
|
|
|
|
{
|
|
|
|
|
management_popup();
|
|
|
|
|
}
|
|
|
|
@ -1512,14 +1512,14 @@ void karamba::mouseMoveEvent( TQMouseEvent *e )
|
|
|
|
|
//Modified by Ryan Nickell (p0z3r@mail.com) 03/16/2004
|
|
|
|
|
// This will work now, but only when you move at least
|
|
|
|
|
// one pixel in any direction with your mouse.
|
|
|
|
|
//if( e->button() == Qt::LeftButton )
|
|
|
|
|
if( e->state() == Qt::LeftButton)
|
|
|
|
|
//if( e->button() == TQt::LeftButton )
|
|
|
|
|
if( e->state() == TQt::LeftButton)
|
|
|
|
|
button = 1;
|
|
|
|
|
//else if( e->button() == Qt::MidButton )
|
|
|
|
|
else if( e->state() == Qt::MidButton )
|
|
|
|
|
//else if( e->button() == TQt::MidButton )
|
|
|
|
|
else if( e->state() == TQt::MidButton )
|
|
|
|
|
button = 2;
|
|
|
|
|
//else if( e->button() == Qt::RightButton )
|
|
|
|
|
else if( e->state() == Qt::RightButton )
|
|
|
|
|
//else if( e->button() == TQt::RightButton )
|
|
|
|
|
else if( e->state() == TQt::RightButton )
|
|
|
|
|
button = 3;
|
|
|
|
|
|
|
|
|
|
pythonIface->widgetMouseMoved(this, e->x(), e->y(), button);
|
|
|
|
|