Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/abstractwindowtasksmodel.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 42 | connect(screen, &QScreen::geometryChanged, this, | |||
---|---|---|---|---|---|
43 | [this]() { | 43 | [this]() { | ||
44 | dataChanged(index(0, 0), index(rowCount() - 1, 0), QVector<int>{ScreenGeometry}); | 44 | dataChanged(index(0, 0), index(rowCount() - 1, 0), QVector<int>{ScreenGeometry}); | ||
45 | } | 45 | } | ||
46 | ); | 46 | ); | ||
47 | }; | 47 | }; | ||
48 | 48 | | |||
49 | connect(qGuiApp, &QGuiApplication::screenAdded, this, screenAdded); | 49 | connect(qGuiApp, &QGuiApplication::screenAdded, this, screenAdded); | ||
50 | 50 | | |||
51 | foreach(const QScreen *screen, QGuiApplication::screens()) { | 51 | const auto screens = QGuiApplication::screens(); | ||
52 | for (const QScreen *screen : screens) { | ||||
52 | screenAdded(screen); | 53 | screenAdded(screen); | ||
53 | } | 54 | } | ||
54 | } | 55 | } | ||
55 | 56 | | |||
56 | AbstractWindowTasksModel::~AbstractWindowTasksModel() | 57 | AbstractWindowTasksModel::~AbstractWindowTasksModel() | ||
57 | { | 58 | { | ||
58 | } | 59 | } | ||
59 | 60 | | |||
60 | } | 61 | } |