2
KSysGuard, the KDE System Guard
4
Copyright (c) 1999, 2000, 2001 Chris Schlaeger <cs@kde.org>
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of version 2 of the GNU General Public
8
License as published by the Free Software Foundation.
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
13
GNU 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.
22
#include <ksgrd/SensorManager.h>
23
#include <QMouseEvent>
25
#include "DummyDisplay.h"
27
DummyDisplay::DummyDisplay( QWidget* parent, SharedSettings *workSheetSettings )
28
: KSGRD::SensorDisplay( parent, i18n( "Drop Sensor Here" ), workSheetSettings )
30
setMinimumSize( 16, 16 );
32
setWhatsThis(i18n("This is an empty space in a worksheet. Drag a sensor from "
33
"the Sensor Browser and drop it here. A sensor display will "
34
"appear that allows you to monitor the values of the sensor "
38
bool DummyDisplay::eventFilter( QObject* object, QEvent* event )
40
if ( event->type() == QEvent::MouseButtonRelease &&
41
( (QMouseEvent*)event)->button() == Qt::LeftButton )
44
return QWidget::eventFilter( object, event );
47
#include "DummyDisplay.moc"