~dyams/unity-2d/remove-glow

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/unity2ddeclarativeview.h

  • Committer: Tarmac
  • Author(s): Michał Sawicz, Albert Astals
  • Date: 2012-02-07 11:29:36 UTC
  • mfrom: (879.11.17 refactor-screeninfo)
  • Revision ID: tarmac-20120207112936-r1iya0418z3d7evn
This, in itself, will not change anything in unity-2d, but will later allow for easier multi-monitor implementation.. Fixes: . Approved by Gerry Boland.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include <QDeclarativeView>
21
21
 
 
22
class ScreenInfo;
 
23
 
22
24
class Unity2DDeclarativeView : public QDeclarativeView
23
25
{
24
26
    Q_OBJECT
26
28
    Q_PROPERTY(bool useOpenGL READ useOpenGL WRITE setUseOpenGL NOTIFY useOpenGLChanged)
27
29
    Q_PROPERTY(bool transparentBackground READ transparentBackground WRITE setTransparentBackground NOTIFY transparentBackgroundChanged)
28
30
    Q_PROPERTY(QPoint globalPosition READ globalPosition NOTIFY globalPositionChanged)
 
31
    Q_PROPERTY(ScreenInfo* screen READ screen NOTIFY screenChanged)
29
32
    Q_PROPERTY(bool visible READ isVisible NOTIFY visibleChanged)
30
33
 
31
34
public:
36
39
    bool useOpenGL() const;
37
40
    bool transparentBackground() const;
38
41
    QPoint globalPosition() const;
 
42
    ScreenInfo* screen() const;
39
43
 
40
44
    // setters
41
45
    void setUseOpenGL(bool);
45
49
    void useOpenGLChanged(bool);
46
50
    void transparentBackgroundChanged(bool);
47
51
    void globalPositionChanged(QPoint);
 
52
    void screenChanged(ScreenInfo*);
48
53
    void visibleChanged(bool);
49
54
    void activeWorkspaceChanged();
50
55
 
54
59
    virtual void showEvent(QShowEvent *event);
55
60
    virtual void hideEvent(QHideEvent* event);
56
61
 
 
62
    ScreenInfo* m_screenInfo;
 
63
 
57
64
protected Q_SLOTS:
58
65
    void forceActivateWindow();
59
66
    void forceDeactivateWindow();