2
This file is part of LightDM-KDE.
4
Copyright 2012 David Edmundson <kde@davidedmundson.co.uk>
6
LightDM-KDE is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
11
LightDM-KDE is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with LightDM-KDE. If not, see <http://www.gnu.org/licenses/>.
20
#ifndef SCREENSMODEL_H
21
#define SCREENSMODEL_H
23
#include <QAbstractListModel>
27
class ScreensModel : public QAbstractListModel
31
explicit ScreensModel(QObject *parent = 0);
32
int rowCount(const QModelIndex &parent=QModelIndex()) const;
33
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const;
36
void onScreenResized(int screen);
37
void onScreenCountChanged(int newCount);
41
QList<QRect> m_screens;
44
#endif // SCREENSMODEL_H