on xenial help sign in
remove application exposure
commit2112416758ce7b939c9358033a3d2af876194bce authorNick Dedekind <nicholas.dedekind@gmail.com> dateThu 14 Aug 2014, 10:30 (12 years ago) parentfcca2b6
3 files changed+5−5
qml/Stages/SpreadDelegate.qml+1−1 tests/mocks/Unity/Application/ApplicationManager.cpp+3−3 tests/mocks/Unity/Application/ApplicationManager.h+1−1
qml/Stages/SpreadDelegate.qml+1−1
@@ -40,7 +40,7 @@ Item {
4040 objectName: "surfaceContainer"
4141 anchors.fill: parent
4242 surface: model.surface
43− promptSurfaces: model.application.promptSurfaces
43+ promptSurfaces: model.promptSurfaces
4444
4545 Binding {
4646 target: surfaceContainer.surface
tests/mocks/Unity/Application/ApplicationManager.cpp+3−3
@@ -47,7 +47,7 @@ ApplicationManager::ApplicationManager(QObject *parent)
4747{
4848 m_roleNames.insert(RoleSurface, "surface");
4949 m_roleNames.insert(RoleFullscreen, "fullscreen");
50− m_roleNames.insert(RoleApplication, "application");
50+ m_roleNames.insert(RolePromptSurfaces, "promptSurfaces");
5151
5252 buildListOfAvailableApplications();
5353
@@ -89,8 +89,8 @@ QVariant ApplicationManager::data(const QModelIndex& index, int role) const {
8989 return QVariant::fromValue(app->surface());
9090 case RoleFullscreen:
9191 return app->fullscreen();
92− case RoleApplication:
93− return QVariant::fromValue(app);
92+ case RolePromptSurfaces:
93+ return QVariant::fromValue(app->promptSurfaces());
9494 default:
9595 return QVariant();
9696 }
tests/mocks/Unity/Application/ApplicationManager.h+1−1
@@ -53,7 +53,7 @@ class ApplicationManager : public ApplicationManagerInterface {
5353 enum MoreRoles {
5454 RoleSurface = RoleScreenshot+1,
5555 RoleFullscreen,
56− RoleApplication,
56+ RolePromptSurfaces,
5757 };
5858 enum Role {
5959 Dash, Default, Indicators, Notifications, Greeter, Launcher, OnScreenKeyboard,