Skip to content
Browse files

Rename SnowshoeWebView visibility to closeButtonVisibility

Reviewed-by: Alexis Menard
  • Loading branch information...
1 parent f1fef74 commit 0edf0f357d05cdd9fa2ab7e2a4c132653a4705ac Caio Marcelo de Oliveira Filho committed
Showing with 5 additions and 4 deletions.
  1. +3 −2 src/mobile/qml/SnowshoeWebView.qml
  2. +2 −2 src/mobile/qml/tabmanager.js
View
5 src/mobile/qml/SnowshoeWebView.qml
@@ -29,7 +29,8 @@ Item {
property alias canGoForward: webView.canGoForward
property variant statusIndicator
property bool active: true
- property bool visibility: false
+ property bool closeButtonVisible: false
+
signal tabSelected(int tabNumber)
signal closeTabRequested()
@@ -69,7 +70,7 @@ Item {
anchors.top: parent.top
anchors.right: parent.right
source: ":/mobile/nav/btn_close"
- visible: webViewItem.visibility
+ visible: webViewItem.closeButtonVisible
MouseArea {
anchors.centerIn: parent
View
4 src/mobile/qml/tabmanager.js
@@ -146,7 +146,7 @@ function doTabOverviewLayout()
tab.width = size[0];
tab.height = size[1];
col++;
- tab.visibility = currentTabLayout === OVERVIEW_LAYOUT && overviewGridSize === 1;
+ tab.closeButtonVisible = currentTabLayout === OVERVIEW_LAYOUT && overviewGridSize === 1;
}
}
@@ -161,6 +161,6 @@ function doTabFullScreenLayout()
tab.y = 0;
tab.visible = tab.x === 0;
tab.active = tab.x === 0;
- tab.visibility = false;
+ tab.closeButtonVisible = false;
}
}

0 comments on commit 0edf0f3

Please sign in to comment.
Something went wrong with that request. Please try again.