SVN_SILENT made messages (.desktop file)
[rsibreak.git] / src / passivepopup.cpp
blob5c2a50296c1a2122f1a4e4e9b72de0cd427f6218
1 /* This file is part of the KDE project
2 Copyright (C) 2005 Bram Schoenmakers <bramschoenmakers@kde.nl>
3 Copyright (C) 2005-2007 Tom Albers <tomalbers@kde.nl>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #include "passivepopup.h"
22 #include <QMouseEvent>
24 #include <KSystemTrayIcon>
25 #include <KDebug>
27 PassivePopup::PassivePopup( QWidget *parent )
28 : KPassivePopup( parent ) {}
30 void PassivePopup::show( const QSystemTrayIcon* icon )
32 /* To place it properly near the icon, first show it off-screen, then
33 move it to the correct position. If you know something better, please,
34 please let me know */
35 KPassivePopup::show( icon->geometry().bottomRight() );
36 moveNear( icon->geometry() );
39 void PassivePopup::mouseReleaseEvent( QMouseEvent * event )
41 kDebug() ;
42 event->accept();
43 /* eat this! */