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>
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,
35 KPassivePopup::show( icon
->geometry().bottomRight() );
36 moveNear( icon
->geometry() );
39 void PassivePopup::mouseReleaseEvent( QMouseEvent
* event
)