~ubuntu-branches/ubuntu/oneiric/kdeplasma-addons/oneiric

« back to all changes in this revision

Viewing changes to applets/showdesktop/showdesktop.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-11-26 13:35:18 UTC
  • mfrom: (1.1.37 upstream)
  • Revision ID: james.westby@ubuntu.com-20101126133518-oxz33xjsoi02ty9f
Tags: 4:4.5.80-0ubuntu1
* New upstream beta release
* Disable kubuntu_02_microblog_default_configuration.diff does not apply
* New package plasma-containments-addons

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
//#define MINIMIZE_ONLY
22
22
 
23
23
#include <Plasma/Applet>
 
24
#include <QTimer>
 
25
#include <QGraphicsSceneDragDropEvent>
24
26
 
25
27
class ShowDesktop : public Plasma::Applet
26
28
{
32
34
        virtual void init();
33
35
 
34
36
    public slots:
35
 
        void pressed();
 
37
        void minimizeAll();
36
38
#ifndef MINIMIZE_ONLY
37
39
        void reset();
38
40
        void delay();
39
41
#endif
40
42
 
 
43
    protected:
 
44
        void dragEnterEvent(QGraphicsSceneDragDropEvent *event);
 
45
        void dragLeaveEvent(QGraphicsSceneDragDropEvent *event);
 
46
        QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint = QSizeF()) const;
 
47
        
 
48
    private slots:
 
49
        void iconSizeChanged(int group);
 
50
 
41
51
    private:
42
52
        bool m_wm2ShowingDesktop;
 
53
 
43
54
#ifndef MINIMIZE_ONLY
44
55
        bool m_down;
45
56
        bool m_goingDown;
46
57
#endif
 
58
        QTimer m_timer;
47
59
};
48
60
 
49
61
K_EXPORT_PLASMA_APPLET(showdesktop, ShowDesktop)