Skip to content

Commit

Permalink
Merge pull request #3134 from MerginMaps/remove-commented-out-code
Browse files Browse the repository at this point in the history
Remove commented out code
  • Loading branch information
tomasMizera authored Mar 12, 2024
2 parents ff932b0 + 23cb10b commit f57e0ca
Showing 1 changed file with 0 additions and 213 deletions.
213 changes: 0 additions & 213 deletions app/qml/project/components/MMProjectDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -287,217 +287,4 @@ Control {
}
}
}

// Column {
// id: mainColumn

// width: parent.width
// padding: 20 * __dp
// spacing: 15 * __dp

// Row {
// id: row

// spacing: 6 * __dp

// Column {
// id: column

// Text {
// width: mainColumn.width - 2 * mainColumn.padding - icon.width - row.spacing
// height: 26 * __dp

// text: root.projectDisplayName
// verticalAlignment: Text.AlignVCenter
// font: __style.t3
// color: root.projectIsOpened ? __style.whiteColor : __style.nightColor
// elide: Text.ElideRight
//// opacity: root.projectIsValid ? 1.0 : 0.4
// }

// Row {
// width: mainColumn.width - 2 * mainColumn.padding - icon.width - row.spacing
// spacing: 4 * __dp

// MMIcon {
// id: errorIcon

// source: visible ? __style.errorCircleIcon : ""
// color: __style.negativeColor
//// visible: !root.projectIsValid
// }

// Text {
// width: parent.width - errorIcon.width
// height: 24 * __dp

// text: root.projectDescription
// verticalAlignment: Text.AlignVCenter
// font: __style.p6
// elide: Text.ElideRight
// color: {
//// if(root.projectIsValid) {
// if(root.projectIsOpened) {
// return __style.whiteColor
// }
// return __style.nightColor
//// }
//// return __style.grapeColor
// }
// }
// }
// }

// MMRoundButton {
// id: icon

// bgndColor: __style.lightGreenColor
// iconSource: __style.moreVerticalIcon

// onClicked: {
// root.fillMoreMenu()
// listDrawer.visible = true
// }
// }
// }

// Item {
// height: root.projectIsInSync ? syncColumn.height : 0
// width: parent.width
// clip: true

// Behavior on height {
// NumberAnimation { duration: 250 }
// }

// Column {
// id: syncColumn

// spacing: mainColumn.spacing

// MMProgressBar {
// position: root.projectSyncProgress
// width: mainColumn.width - 2 * mainColumn.padding
// }

// Row {
// id: syncRow

// spacing: 6 * __dp

// Text {
// width: mainColumn.width - 2 * mainColumn.padding - stopIcon.width - syncRow.spacing * 2 - stopText.width
// anchors.verticalCenter: parent.verticalCenter

// text: qsTr("Synchronising...")
// font: __style.p6
// color: root.projectIsOpened ? __style.whiteColor : __style.nightColor
// elide: Text.ElideRight
// verticalAlignment: Text.AlignVCenter
// }

// MMIcon {
// id: stopIcon

// anchors.verticalCenter: parent.verticalCenter

// source: __style.stopIcon
// color: root.projectIsOpened ? __style.whiteColor : __style.forestColor

// MouseArea {
// anchors.fill: parent
// onClicked: root.stopSyncRequested()
// }
// }

// Text {
// id: stopText

// anchors.verticalCenter: parent.verticalCenter

// text: qsTr("Stop")
// font: __style.t4
// color: root.projectIsOpened ? __style.whiteColor : __style.nightColor
// verticalAlignment: Text.AlignVCenter

// MouseArea {
// anchors.fill: parent
// onClicked: root.stopSyncRequested()
// }
// }
// }
// }
// }
// }

// TODO: either drawer or icon

// MMListDrawer {
// id: listDrawer

// drawerHeader.title: qsTr("More options")
// listModel: ListModel { id: menuModel }

// onClicked: function(type) {
// if ( projectRemoteError ) {
// __notificationModel.addError( qsTr( "Notification: Could not synchronize project, please make sure you are logged in and have sufficient rights." ) )
// return
// }
// switch(type) {
// case "download": root.syncRequested(); break
// case "sync": root.syncRequested(); break
// case "changes": root.showChangesRequested(); break
// case "remove": root.removeRequested(); break
// case "upload": root.migrateRequested(); break
// }
// }
// }

// function getMoreMenuItems() {
// if ( projectIsMergin && projectIsLocal )
// {
// if ( ( projectStatus === MM.ProjectStatus.NeedsSync ) ) {
// return "sync,changes,remove"
// }
// return "changes,remove"
// }
// else if ( !projectIsMergin && projectIsLocal ) {
// return "upload,remove"
// }
// return "download"
// }

// function fillMoreMenu() {
// // fill more menu with corresponding items
// let itemsMap = {
// "download": {
// "name": qsTr("Download"),
// "iconSource": __style.downloadIcon
// },
// "sync": {
// "name": qsTr("Synchronize project"),
// "iconSource": __style.syncGreenIcon
// },
// "changes": {
// "name": qsTr("Local changes"),
// "iconSource": __style.infoIcon
// },
// "remove": {
// "name": qsTr("Remove from device"),
// "iconSource": __style.deleteIcon
// },
// "upload": {
// "name": qsTr("Upload"),
// "iconSource": __style.uploadIcon
// }
// }

// let items = getMoreMenuItems().split(',')
// menuModel.clear()
// items.forEach( function(item) {
// var json = itemsMap[item]
// json.type = item
// menuModel.append( json )
// } )
// }
}

0 comments on commit f57e0ca

Please sign in to comment.