3
/***************************************************************************
4
copyright : (C) 2008 by Carsten Niehaus
5
email : cniehaus@kde.org
6
***************************************************************************/
7
/***************************************************************************
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
14
***************************************************************************/
16
#include <Plasma/Applet>
19
#include <plasma/dataengine.h>
21
#include <QGraphicsTextItem>
23
#include <KRandomSequence>
27
class KalziumDidyouknow : public Plasma::Applet
32
KalziumDidyouknow(QObject *parent, const QVariantList &args);
36
void paintInterface(QPainter *painter,
37
const QStyleOptionGraphicsItem *option,
38
const QRect& contentsRect);
39
void constraintsUpdated(Plasma::Constraints constraints);
42
void dataUpdated(const QString &name, const Plasma::DataEngine::Data &data);
46
QGraphicsTextItem *m_label1;
47
Plasma::DataEngine* m_engine;
49
KRandomSequence * m_random;
54
K_EXPORT_PLASMA_APPLET(didyouknow_kalzium, KalziumDidyouknow)
56
#endif // DIDYOUKNOW_H