|
|
@ -169,7 +169,7 @@ void KMyMoneyAccountCombo::mousePressEvent(TQMouseEvent *e)
|
|
|
|
e->ignore();
|
|
|
|
e->ignore();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bool hit = TQT_TQRECT_OBJECT(rect()).contains( e->pos() );
|
|
|
|
bool hit = rect().contains( e->pos() );
|
|
|
|
if ( hit ) { // mouse press on button
|
|
|
|
if ( hit ) { // mouse press on button
|
|
|
|
m_mlbDown = TRUE; // left mouse button down
|
|
|
|
m_mlbDown = TRUE; // left mouse button down
|
|
|
|
emit pressed();
|
|
|
|
emit pressed();
|
|
|
@ -186,7 +186,7 @@ void KMyMoneyAccountCombo::mouseReleaseEvent(TQMouseEvent *e)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
m_mlbDown = FALSE; // left mouse button up
|
|
|
|
m_mlbDown = FALSE; // left mouse button up
|
|
|
|
emit released();
|
|
|
|
emit released();
|
|
|
|
if ( TQT_TQRECT_OBJECT(rect()).contains( e->pos() ) ) { // mouse release on button
|
|
|
|
if ( rect().contains( e->pos() ) ) { // mouse release on button
|
|
|
|
emit clicked();
|
|
|
|
emit clicked();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|