~blue-shell/kdebase-workspace/tasks-qml

« back to all changes in this revision

Viewing changes to plasma/desktop/applets/tasks/support/tooltip.h

  • Committer: Eike Hein
  • Date: 2013-04-10 14:13:37 UTC
  • Revision ID: git-v1:36c75f2e191de7e252877da097581582a9a7d413
Window highlights on preview hover.

Taking a short break with an easy one off the todo list while
fighting the big fight on launcher layouts :).

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
     */
76
76
    Q_PROPERTY(QVariant windowsToPreview READ windowsToPreview WRITE setWindowsToPreview NOTIFY windowsToPreviewChanged)
77
77
 
 
78
    /**
 
79
     * Whether to highlight windows on window preview thumbnail hover.
 
80
     */
 
81
    Q_PROPERTY(bool highlightWindows READ highlightWindows WRITE setHighlightWindows NOTIFY highlightWindowsChanged)
 
82
 
78
83
public:
79
84
    ToolTipProxy(QObject *parent = 0);
80
85
    ~ToolTipProxy();
94
99
    QVariant windowsToPreview() const;
95
100
    void setWindowsToPreview(QVariant windows);
96
101
 
 
102
    bool highlightWindows() const;
 
103
    void setHighlightWindows(bool highlight);
 
104
 
97
105
    Q_INVOKABLE void hide() const;
98
106
 
99
107
Q_SIGNALS:
102
110
    void subTextChanged();
103
111
    void imageChanged();
104
112
    void windowsToPreviewChanged();
 
113
    void highlightWindowsChanged();
105
114
 
106
115
protected Q_SLOTS:
107
116
    void syncTarget();
116
125
    QWeakPointer<DeclarativeItemContainer> m_declarativeItemContainer;
117
126
    QWeakPointer<QGraphicsObject> m_target;
118
127
    QList<WId> m_windowsToPreview;
 
128
    bool m_highlightWindows;
119
129
};
120
130
 
121
131
#endif