2 * Copyright (C) 2015 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17#include "SessionsModel.h"
18#include "SessionsModelPrivate.h"
23SessionsModelPrivate::SessionsModelPrivate(SessionsModel* parent)
24 : testScenario("singleSession")
30void SessionsModelPrivate::resetEntries()
35 if (testScenario == "multipleSessions") {
36 resetEntries_multipleSessions();
37 } else if (testScenario == "noSessions") {
38 resetEntries_noSessions();
40 resetEntries_singleSession();
45void SessionsModelPrivate::resetEntries_multipleSessions()
49 {"ubuntu", "", "Ubuntu", ""},
50 {"ubuntu-2d", "", "Ubuntu 2D", ""},
51 {"gnome", "", "GNOME", ""},
52 {"gnome-classic", "", "GNOME Classic", ""},
53 {"gnome-flashback-compiz", "", "GNOME Flashback (Compiz)", ""},
54 {"gnome-flashback-metacity", "", "GNOME Flashback (Metacity)", ""},
55 {"gnome-wayland", "", "GNOME on Wayland", ""},
56 {"plasma", "", "Plasma", ""},
57 {"kde", "", "KDE" , ""},
58 {"xterm", "", "Recovery Console", ""},
59 {"", "", "Unknown?", ""}
63void SessionsModelPrivate::resetEntries_noSessions()
68void SessionsModelPrivate::resetEntries_singleSession()
70 sessionItems = {{"ubuntu", "", "Ubuntu", ""}};
73} // namespace QLightDM
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list