Remove double blank lines from QML files
This commit is contained in:
@@ -64,7 +64,6 @@ HFlickableColumnPage {
|
||||
fileDialog.file = ""
|
||||
}
|
||||
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
ApplyButton {
|
||||
id: saveButton
|
||||
|
@@ -12,7 +12,6 @@ HPage {
|
||||
|
||||
property string userId
|
||||
|
||||
|
||||
HTabbedBox {
|
||||
anchors.centerIn: parent
|
||||
width: Math.min(implicitWidth, page.availableWidth)
|
||||
|
@@ -18,7 +18,6 @@ HTile {
|
||||
signal renameRequest(string name)
|
||||
signal deleteRequest()
|
||||
|
||||
|
||||
backgroundColor: "transparent"
|
||||
compact: false
|
||||
|
||||
|
@@ -16,7 +16,6 @@ HRowLayout {
|
||||
readonly property int sectionTotalCount:
|
||||
deviceList.sectionItemCounts[section] || 0
|
||||
|
||||
|
||||
HCheckBox {
|
||||
id: checkBox
|
||||
padding: theme.spacing
|
||||
|
@@ -13,7 +13,6 @@ HFlickableColumnPage {
|
||||
|
||||
function takeFocus() { exportButton.forceActiveFocus() }
|
||||
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
GroupButton {
|
||||
id: exportButton
|
||||
|
@@ -89,7 +89,6 @@ HColumnPage {
|
||||
return counts
|
||||
}
|
||||
|
||||
|
||||
enabled: ModelStore.get("accounts").find(userId).presence !== "offline"
|
||||
contentHeight: Math.min(
|
||||
window.height,
|
||||
|
@@ -9,7 +9,6 @@ import "../../Base/Buttons"
|
||||
HFlickableColumnPage {
|
||||
function takeFocus() { registerButton.forceActiveFocus() }
|
||||
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
ApplyButton {
|
||||
id: registerButton
|
||||
|
@@ -9,7 +9,6 @@ import "../../Base/Buttons"
|
||||
HFlickableColumnPage {
|
||||
function takeFocus() { resetButton.forceActiveFocus() }
|
||||
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
ApplyButton {
|
||||
id: resetButton
|
||||
|
@@ -91,7 +91,6 @@ HBox {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
padding: 0
|
||||
implicitWidth: theme.controls.box.defaultWidth * 1.25
|
||||
contentHeight: window.height
|
||||
|
@@ -11,7 +11,6 @@ HTile {
|
||||
|
||||
property string loadingIconStep
|
||||
|
||||
|
||||
backgroundColor: "transparent"
|
||||
contentOpacity: model.status === "Failed" ? 0.3 : 1 // XXX
|
||||
rightPadding: 0
|
||||
|
@@ -62,7 +62,6 @@ HFlickableColumnPage {
|
||||
page.loginFutureId = ""
|
||||
}
|
||||
|
||||
|
||||
flickable.topMargin: theme.spacing * 1.5
|
||||
flickable.bottomMargin: flickable.topMargin
|
||||
|
||||
|
@@ -41,7 +41,6 @@ SignInBase {
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
applyButton.enabled: idField.item.text.trim() && passField.item.text
|
||||
applyButton.onClicked: page.signIn()
|
||||
|
||||
|
@@ -36,7 +36,6 @@ SignInBase {
|
||||
page.exitRequested()
|
||||
}
|
||||
|
||||
|
||||
implicitWidth: theme.controls.box.defaultWidth * 1.25
|
||||
applyButton.text: qsTr("Waiting")
|
||||
applyButton.loading: true
|
||||
|
@@ -10,7 +10,6 @@ HPage {
|
||||
|
||||
property string userId
|
||||
|
||||
|
||||
HTabbedBox {
|
||||
anchors.centerIn: parent
|
||||
width: Math.min(implicitWidth, page.availableWidth)
|
||||
|
@@ -50,7 +50,6 @@ HFlickableColumnPage {
|
||||
pageLoader.showPrevious()
|
||||
}
|
||||
|
||||
|
||||
enabled: account && account.presence !== "offline"
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
|
@@ -8,7 +8,6 @@ import "../../Base"
|
||||
HUserAvatar {
|
||||
property QtObject account
|
||||
|
||||
|
||||
clientUserId: userId
|
||||
displayName: account ? account.display_name : ""
|
||||
mxc: account ? account.avatar_url : ""
|
||||
|
@@ -61,7 +61,6 @@ HFlickableColumnPage {
|
||||
pageLoader.showPrevious()
|
||||
}
|
||||
|
||||
|
||||
enabled: account && account.presence !== "offline"
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
|
@@ -54,7 +54,6 @@ HFlickableColumnPage {
|
||||
pageLoader.showPrevious()
|
||||
}
|
||||
|
||||
|
||||
enabled: account && account.presence !== "offline"
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
|
@@ -85,7 +85,6 @@ HListView {
|
||||
open = false
|
||||
}
|
||||
|
||||
|
||||
visible: opacity > 0
|
||||
opacity: open && count ? 1 : 0
|
||||
bottomMargin: theme.spacing / 2
|
||||
|
@@ -14,7 +14,6 @@ Rectangle {
|
||||
property alias buttonModel: bannerRepeater.model
|
||||
property var buttonCallbacks: []
|
||||
|
||||
|
||||
implicitHeight: childrenRect.height
|
||||
color: theme.controls.box.background
|
||||
|
||||
|
@@ -9,7 +9,6 @@ Banner {
|
||||
property string inviterName: chat.roomInfo.inviter_name
|
||||
property string inviterAvatar: chat.roomInfo.inviter_avatar
|
||||
|
||||
|
||||
color: theme.chat.inviteBanner.background
|
||||
|
||||
avatar.userId: inviterId
|
||||
|
@@ -46,7 +46,6 @@ Item {
|
||||
replyToDisplayName = ""
|
||||
}
|
||||
|
||||
|
||||
onFocusChanged: if (focus && loader.item) loader.item.composer.takeFocus()
|
||||
onReadyChanged: longLoading = false
|
||||
|
||||
|
@@ -30,7 +30,6 @@ HColumnPage {
|
||||
anchors.fill: parent
|
||||
}
|
||||
|
||||
|
||||
padding: 0
|
||||
column.spacing: 0
|
||||
|
||||
|
@@ -16,7 +16,6 @@ Rectangle {
|
||||
|
||||
function takeFocus() { messageArea.forceActiveFocus() }
|
||||
|
||||
|
||||
implicitHeight: Math.max(theme.baseElementsHeight, row.implicitHeight)
|
||||
color: theme.chat.composer.background
|
||||
|
||||
|
@@ -125,7 +125,6 @@ HTextArea {
|
||||
clearReplyTo()
|
||||
}
|
||||
|
||||
|
||||
saveName: "composer"
|
||||
saveId: [chat.roomId, chat.userId]
|
||||
|
||||
|
@@ -30,7 +30,6 @@ HColumnLayout {
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Behavior on height { HNumberAnimation {} }
|
||||
|
||||
DelegateTransitionFixer {}
|
||||
|
@@ -13,7 +13,6 @@ Rectangle {
|
||||
|
||||
readonly property alias transferCount: transferList.count
|
||||
|
||||
|
||||
implicitWidth: 800
|
||||
implicitHeight: firstDelegate ? firstDelegate.height : 0
|
||||
color: theme.chat.fileTransfer.background
|
||||
|
@@ -11,7 +11,6 @@ Rectangle {
|
||||
readonly property alias icon: icon
|
||||
readonly property alias label: label
|
||||
|
||||
|
||||
implicitHeight: label.text ? rowLayout.height : 0
|
||||
opacity: implicitHeight ? 1 : 0
|
||||
|
||||
|
@@ -12,7 +12,6 @@ InfoBar {
|
||||
|
||||
signal cancel()
|
||||
|
||||
|
||||
color: theme.chat.replyBar.background
|
||||
icon.svgName: "reply-to"
|
||||
label.textFormat: Text.StyledText
|
||||
|
@@ -16,7 +16,6 @@ Rectangle {
|
||||
readonly property bool center:
|
||||
showLeftButton || window.settings.Chat.always_center_header
|
||||
|
||||
|
||||
implicitHeight: theme.baseElementsHeight
|
||||
color: theme.chat.roomHeader.background
|
||||
|
||||
|
@@ -25,7 +25,6 @@ HFlickableColumnPage {
|
||||
stackView.pop()
|
||||
}
|
||||
|
||||
|
||||
footer: AutoDirectionLayout {
|
||||
PositiveButton {
|
||||
text: qsTr("They're the same")
|
||||
|
@@ -10,7 +10,6 @@ import "../../../../Base/HTile"
|
||||
HTile {
|
||||
id: deviceTile
|
||||
|
||||
|
||||
property string userId
|
||||
property string deviceOwner
|
||||
property string deviceOwnerDisplayName
|
||||
@@ -18,7 +17,6 @@ HTile {
|
||||
|
||||
signal trustSet(bool trust)
|
||||
|
||||
|
||||
backgroundColor: "transparent"
|
||||
rightPadding: theme.spacing / 2
|
||||
compact: false
|
||||
|
@@ -37,7 +37,6 @@ HListView {
|
||||
focusOnExit.forceActiveFocus()
|
||||
}
|
||||
|
||||
|
||||
clip: true
|
||||
bottomMargin: theme.spacing
|
||||
model: ListModel {}
|
||||
|
@@ -14,7 +14,6 @@ HColumnLayout {
|
||||
readonly property alias viewDepth: stackView.depth
|
||||
readonly property alias filterField: filterField
|
||||
|
||||
|
||||
Connections {
|
||||
target: pageLoader
|
||||
onAboutToRecycle: {
|
||||
@@ -130,7 +129,6 @@ HColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Keys.forwardTo: [stackView.currentItem]
|
||||
Keys.priority: Keys.AfterItem
|
||||
|
||||
|
@@ -24,7 +24,6 @@ MultiviewPane {
|
||||
swipeView.currentItem.keybindFocusItem.forceActiveFocus()
|
||||
}
|
||||
|
||||
|
||||
saveName: "roomPane"
|
||||
edge: Qt.RightEdge
|
||||
|
||||
@@ -42,7 +41,6 @@ MultiviewPane {
|
||||
buttonsBackgroundColor: theme.chat.roomPane.topBar.background
|
||||
background: Rectangle { color: theme.chat.roomPane.background }
|
||||
|
||||
|
||||
buttonRepeater.model: [
|
||||
"back", "members", "files", "notifications", "history", "settings"
|
||||
]
|
||||
|
@@ -55,7 +55,6 @@ HFlickableColumnPage {
|
||||
forbidGuestsCheckBox.reset()
|
||||
}
|
||||
|
||||
|
||||
enableFlickShortcuts: ! chat.composerHasFocus
|
||||
|
||||
background: Rectangle {
|
||||
|
@@ -84,7 +84,6 @@ HRowLayout {
|
||||
|
||||
readonly property alias selectedText: contentLabel.selectedPlainText
|
||||
|
||||
|
||||
spacing: theme.chat.message.horizontalSpacing
|
||||
layoutDirection: onRight ? Qt.RightToLeft: Qt.LeftToRight
|
||||
|
||||
|
@@ -33,7 +33,6 @@ HMenu {
|
||||
menu.popup()
|
||||
}
|
||||
|
||||
|
||||
onClosed: {
|
||||
hoveredLink = ""
|
||||
eventIndex = -1
|
||||
|
@@ -45,7 +45,6 @@ HColumnLayout {
|
||||
|
||||
readonly property alias eventContent: eventContent
|
||||
|
||||
|
||||
function dict() {
|
||||
let event = eventList.model.get(model.index)
|
||||
event = JSON.parse(JSON.stringify(event))
|
||||
@@ -63,7 +62,6 @@ HColumnLayout {
|
||||
eventList.toggleCheck(model.index)
|
||||
}
|
||||
|
||||
|
||||
width: eventList.width - eventList.leftMargin - eventList.rightMargin
|
||||
|
||||
// Needed because of eventList's MouseArea which steals the
|
||||
|
@@ -13,7 +13,6 @@ HTile {
|
||||
|
||||
property EventMediaLoader loader
|
||||
|
||||
|
||||
width: Math.min(
|
||||
eventDelegate.width,
|
||||
eventContent.maxMessageWidth,
|
||||
|
@@ -67,7 +67,6 @@ HMxcImage {
|
||||
Qt.openUrlExternally(loader.mediaUrl)
|
||||
}
|
||||
|
||||
|
||||
width: fitSize.width
|
||||
height: fitSize.height
|
||||
horizontalAlignment: Image.AlignLeft
|
||||
@@ -86,7 +85,6 @@ HMxcImage {
|
||||
loader.singleMediaInfo.media_crypt_dict
|
||||
)
|
||||
|
||||
|
||||
onCachedPathChanged:
|
||||
eventList.thumbnailCachedPaths[loader.singleMediaInfo.id] = cachedPath
|
||||
|
||||
|
@@ -17,7 +17,6 @@ Rectangle {
|
||||
readonly property alias eventList: eventList
|
||||
readonly property alias contextMenu: contextMenu
|
||||
|
||||
|
||||
color: theme.chat.eventList.background
|
||||
|
||||
HShortcut {
|
||||
@@ -222,7 +221,6 @@ Rectangle {
|
||||
flickable: eventList
|
||||
}
|
||||
|
||||
|
||||
HListView {
|
||||
id: eventList
|
||||
|
||||
@@ -501,7 +499,6 @@ Rectangle {
|
||||
eventList.getLocalOrDownloadMedia(event, Qt.openUrlExternally)
|
||||
}
|
||||
|
||||
|
||||
anchors.fill: parent
|
||||
enabled: ! window.anyPopup
|
||||
clip: true
|
||||
|
@@ -33,7 +33,6 @@ HLoader {
|
||||
|
||||
readonly property bool hovered: item ? item.hovered : false
|
||||
|
||||
|
||||
visible: Boolean(item)
|
||||
x: eventContent.spacing
|
||||
|
||||
|
@@ -8,7 +8,6 @@ import "../../Base"
|
||||
InfoBar {
|
||||
property var typingMembers: []
|
||||
|
||||
|
||||
color: theme.chat.typingMembers.background
|
||||
icon.svgName: "typing" // TODO: animate
|
||||
label.textFormat: Text.StyledText
|
||||
|
Reference in New Issue
Block a user