Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/33/head
Michele Calgaro 6 months ago
parent 30ea27ebf3
commit 1309372657
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1609,7 +1609,7 @@ bool KBabelDictBox::eventFilter(TQObject *o, TQEvent *e)
{ {
if(e->type() == TQEvent::Wheel) if(e->type() == TQEvent::Wheel)
{ {
TQWheelEvent *we = TQT_TQWHEELEVENT(e); TQWheelEvent *we = static_cast<TQWheelEvent*>(e);
if(we) if(we)
{ {
wheelEvent(we); wheelEvent(we);

@ -2701,7 +2701,7 @@ bool StyleCheckStyle::objectEventHandler( const TQStyleControlElementData &ceDat
if ( event->type() == TQEvent::Paint && object->inherits("TQGroupBox") ) if ( event->type() == TQEvent::Paint && object->inherits("TQGroupBox") )
{ {
TQPaintEvent * pevent = TQT_TQPAINTEVENT(event); TQPaintEvent * pevent = static_cast<TQPaintEvent*>(event);
TQGroupBox* gb = static_cast<TQGroupBox*>(TQT_TQWIDGET(object)); TQGroupBox* gb = static_cast<TQGroupBox*>(TQT_TQWIDGET(object));
bool nestedGroupBox = false; bool nestedGroupBox = false;
TQString stripped_title = removedXX(stripAccelViolations(gb->title())); TQString stripped_title = removedXX(stripAccelViolations(gb->title()));

@ -144,7 +144,7 @@ UMLListView::~UMLListView() {}
bool UMLListView::eventFilter(TQObject *o, TQEvent *e) { bool UMLListView::eventFilter(TQObject *o, TQEvent *e) {
if (e->type() != TQEvent::MouseButtonPress || !o->isA("TQHeader")) if (e->type() != TQEvent::MouseButtonPress || !o->isA("TQHeader"))
return TQListView::eventFilter(o, e); return TQListView::eventFilter(o, e);
TQMouseEvent *me = TQT_TQMOUSEEVENT(e); TQMouseEvent *me = static_cast<TQMouseEvent*>(e);
if (me->button() == TQt::RightButton) { if (me->button() == TQt::RightButton) {
if (m_pMenu) { if (m_pMenu) {
m_pMenu->hide(); m_pMenu->hide();

Loading…
Cancel
Save