summaryrefslogtreecommitdiffstats
path: root/yakuake/src/terminal_focus_watcher.cpp
blob: e8d2030cbc2471c7a77164093835533d4c20015f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
    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* parent, const char* name)
    : TQObject(parent, name)
{
}

TerminalFocusWatcher::~TerminalFocusWatcher()
{
}

bool TerminalFocusWatcher::eventFilter (TQObject* /* watched */, TQEvent* e)
{
    if (e->type() == TQEvent::FocusIn)
        emit focusChanged();

    return false;
}