Skip to content

Commit

Permalink
Remove AuthenticationView from standalone apps
Browse files Browse the repository at this point in the history
- comment out AuthenticationView from samples when running with sample viewer
- uncomment AuthenticationView from samples when running as standalone app
- AuthenticationView was added to sample viewer in issue https://devtopia.esri.com/runtime/qt-sdk/issues/4037
  • Loading branch information
dian9181 committed Sep 1, 2017
1 parent 3e90ac2 commit 7e8fd8f
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,11 @@ AddItemsToPortalSample {
}
}

/* Uncomment this section when running as standalone application
AuthenticationView {
authenticationManager: authManager
}
*/

BusyIndicator {
anchors.centerIn: parent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ PortalUserInfoSample {
}
}

/* Uncomment this section when running as standalone application
AuthenticationView {
id: authView
authenticationManager: authManager
}
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@ SearchForWebmapSample {
}
}

/* Uncomment this section when running as standalone application
AuthenticationView {
authenticationManager: authManager
}
*/

MessageDialog {
id: webMapMsg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ ShowOrgBasemapsSample {
}
}

/* Uncomment this section when running as standalone application
AuthenticationView {
authenticationManager: authManager
}
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ TokenAuthenticationSample {
}

// Declare an AuthenticationView
/* Uncomment this section when running as standalone application
AuthenticationView {
anchors.fill: parent
authenticationManager: authSample.authenticationManager // set the authenticationManager property (this needs to be registered)
}
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,11 @@ Rectangle {
}
}

/* Uncomment this section when running as standalone application
AuthenticationView {
authenticationManager: AuthenticationManager
}
*/

BusyIndicator {
anchors.centerIn: parent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,11 @@ Rectangle {
}
}

/* Uncomment this section when running as standalone application
AuthenticationView {
id: authView
authenticationManager: AuthenticationManager
}
*/
//! [PortalUserInfo create portal]
}
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,11 @@ Rectangle {
anchors {top: searchBox.bottom; bottom: parent.bottom; left: parent.left; right: parent.right; margins: 10 * scaleFactor}
}

/* Uncomment this section when running as standalone application
AuthenticationView {
authenticationManager: AuthenticationManager
}
*/

MessageDialog {
id: webMapMsg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ Rectangle {
}
}

/* Uncomment this section when running as standalone application
AuthenticationView {
authenticationManager: AuthenticationManager
}
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ Rectangle {
}

// Declare an AuthenticationView
/* Uncomment this section when running as standalone application
AuthenticationView {
anchors.fill: parent
authenticationManager: AuthenticationManager // set the authenticationManager property
}
*/
}

0 comments on commit 7e8fd8f

Please sign in to comment.