You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
Copyright (C) 2007 Eike Hein <hein@kde.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "terminal_focus_watcher.h"
|
|
|
|
#include "terminal_focus_watcher.moc"
|
|
|
|
|
|
|
|
|
|
|
|
TerminalFocusWatcher::TerminalFocusWatcher(TQObject* tqparent, const char* name)
|
|
|
|
: TQObject(tqparent, name)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
TerminalFocusWatcher::~TerminalFocusWatcher()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool TerminalFocusWatcher::eventFilter (TQObject* /* watched */, TQEvent* e)
|
|
|
|
{
|
|
|
|
if (e->type() == TQEvent::FocusIn)
|
|
|
|
emit focusChanged();
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|