Replace 'Event' #define strings

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/15/head
Michele Calgaro 5 months ago
parent 24425224ab
commit ee2d174543
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -439,7 +439,7 @@ bool ChatWindow::eventFilter(TQObject* watched, TQEvent* e)
{
if(e->type() == TQEvent::KeyPress)
{
TQKeyEvent* ke = TQT_TQKEYEVENT(e);
TQKeyEvent* ke = static_cast<TQKeyEvent*>(e);
bool scrollMod = (Preferences::useMultiRowInputBox() ? false : (ke->state() == TQt::ShiftButton));

@ -199,7 +199,7 @@ bool IRCInput::eventFilter(TQObject *object,TQEvent *event)
{
if (event->type() == TQEvent::KeyPress)
{
TQKeyEvent* ke = TQT_TQKEYEVENT(event);
TQKeyEvent* ke = static_cast<TQKeyEvent*>(event);
// Allow tab to be handled naturally by the widget.
// Once it runs out of links it goes to the next control.

@ -82,7 +82,7 @@ bool LogfileReader::eventFilter(TQObject* /* watched */, TQEvent* e)
{
if (e->type() == TQEvent::KeyPress)
{
TQKeyEvent* ke = TQT_TQKEYEVENT(e);
TQKeyEvent* ke = static_cast<TQKeyEvent*>(e);
if (ke->key() == TQt::Key_Return || ke->key() == TQt::Key_Enter)
{

Loading…
Cancel
Save