1 // -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8; -*-
2 /* This file is part of the KDE project
4 Copyright (C) by Andrew Stanley-Jones
5 Copyright (C) 2000 by Carsten Pfeiffer <pfeiffer@kde.org>
6 Copyright (C) 2004 Esben Mose Hansen <kde@mosehansen.dk>
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; see the file COPYING. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA.
31 KlipperTray::KlipperTray()
32 : KSystemTrayIcon( "klipper" )
34 m_klipper
= new Klipper( this, KGlobal::config());
35 setToolTip( i18n("Klipper - clipboard tool"));
36 setContextMenu( NULL
);
38 connect( this, SIGNAL( activated( QSystemTrayIcon::ActivationReason
)), m_klipper
,
39 SLOT( slotPopupMenu()));