~ubuntu-branches/ubuntu/wily/kscreen/wily

« back to all changes in this revision

Viewing changes to kcm/src/declarative/qmloutput.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-15 01:30:43 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20150115013043-l2q6wmndvl19yduk
Tags: 4:5.1.95-0ubuntu1
* New upstream snapshot
* New upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
class ModesProxyModel;
30
30
class QMLScreen;
31
31
 
32
 
namespace KScreen {
33
 
class Output;
34
 
}
35
32
 
36
33
class QMLOutput : public QQuickItem
37
34
{
39
36
 
40
37
    Q_PROPERTY(KScreen::Output* output
41
38
               READ output
42
 
               WRITE setOutput
 
39
               NOTIFY outputChanged)
 
40
 
 
41
    Q_PROPERTY(KScreen::OutputPtr outputPtr
 
42
               READ outputPtr
 
43
               WRITE setOutputPtr
43
44
               NOTIFY outputChanged)
44
45
 
45
46
    Q_PROPERTY(bool isCloneMode
112
113
    explicit QMLOutput(QQuickItem *parent = 0);
113
114
    virtual ~QMLOutput();
114
115
 
115
 
    KScreen::Output* output() const;
116
 
    void setOutput(KScreen::Output *output);
 
116
    KScreen::Output* output() const; // For QML
 
117
 
 
118
    KScreen::OutputPtr outputPtr() const;
 
119
    void setOutputPtr(const KScreen::OutputPtr &output);
117
120
 
118
121
    QMLScreen* screen() const;
119
122
    void setScreen(QMLScreen *screen);
184
187
    /**
185
188
     * Returns the biggest resolution available assuming it's the preferred one
186
189
     */
187
 
    KScreen::Mode* bestMode() const;
 
190
    KScreen::ModePtr bestMode() const;
188
191
 
189
 
    KScreen::Output *m_output;
 
192
    KScreen::OutputPtr m_output;
190
193
    QMLScreen *m_screen;
191
194
 
192
195
    QMLOutput *m_cloneOf;