Remove double blank lines from QML files

This commit is contained in:
miruka 2020-11-15 11:54:30 -04:00
parent 58257c0930
commit eed2cc4818
139 changed files with 0 additions and 162 deletions

View File

@ -10,7 +10,6 @@ HGridLayout {
readonly property bool vertical: flow === HGridLayout.TopToBottom
flow:
width >= summedImplicitWidth ?
HGridLayout.LeftToRight :

View File

@ -8,7 +8,6 @@ import ".."
HButton {
property Item textControl // HTextField or HTextArea
icon.name: "copy-text"
iconItem.small: true

View File

@ -24,7 +24,6 @@ Timer {
to: 1
}
interval: theme.animationDuration * 2
running: true
onTriggered: {

View File

@ -23,7 +23,6 @@ Rectangle {
readonly property alias hovered: hoverHandler.hovered
readonly property alias circleRadius: avatarImage.circleRadius
implicitWidth: implicitHeight
implicitHeight:
compact ?

View File

@ -3,13 +3,11 @@
import QtQuick 2.12
HRectangleBottomBorder {
id: line
property bool show: false
transform: Scale {
origin.x: line.width / 2
origin.y: line.height / 2

View File

@ -29,7 +29,6 @@ Button {
visible: text && hovered
}
enabled: ! button.loading
spacing: theme.spacing
topPadding: padded ? spacing * (circle ? 1 : 0.5) : 0

View File

@ -9,7 +9,6 @@ Rectangle {
property QtObject buttonTheme
property bool useFocusLine: true
color: buttonTheme.background
opacity:
button.loading ? theme.loadingElementsOpacity :

View File

@ -14,7 +14,6 @@ HRowLayout {
readonly property alias icon: icon
readonly property alias label: label
spacing: button.spacing
opacity: button.loading ? theme.loadingElementsOpacity :
enabled ? 1 : theme.disabledElementsOpacity

View File

@ -17,7 +17,6 @@ CheckBox {
function reset() { checked = defaultChecked }
checked: defaultChecked
spacing: contentItem.visible ? theme.spacing : 0
padding: 0

View File

@ -4,7 +4,6 @@
import QtQuick 2.12
import QtQuick.Shapes 1.12
Item {
property real progress: 0 // 0-1
@ -12,7 +11,6 @@ Item {
readonly property alias progressCircle: progressCircle
readonly property alias label: label
implicitWidth: 96 * (theme ? theme.uiScale : 1)
implicitHeight: implicitWidth

View File

@ -6,6 +6,5 @@ import QtQuick 2.12
ColorAnimation {
property real factor: 1.0
duration: theme.animationDuration * factor
}

View File

@ -10,7 +10,6 @@ HPage {
property alias column: column
implicitWidth: theme.controls.box.defaultWidth
contentHeight: column.childrenRect.height

View File

@ -67,7 +67,6 @@ Drawer {
readonly property bool vertical: ! horizontal
implicitWidth: horizontal ? calculatedSize : parent.width
implicitHeight: vertical ? calculatedSize : parent.height

View File

@ -17,7 +17,6 @@ HPage {
property bool enableFlickShortcuts:
SwipeView ? SwipeView.isCurrentItem : true
implicitWidth: theme.controls.box.defaultWidth
implicitHeight: contentHeight + implicitHeaderHeight + implicitFooterHeight
contentHeight:

View File

@ -16,7 +16,6 @@ GridView {
property int lastCheckedDelegateIndex: 0
property int selectedCount: Object.keys(checked).length
function check(...indices) {
for (const i of indices) {
const model = gridView.model.get(i)
@ -71,7 +70,6 @@ GridView {
)
}
currentIndex: defaultCurrentIndex
keyNavigationWraps: true
highlightMoveDuration: theme.animationDuration
@ -84,7 +82,6 @@ GridView {
maximumFlickVelocity: window.settings.Scrolling.kinetic_max_speed
flickDeceleration: window.settings.Scrolling.kinetic_deceleration
highlight: Rectangle {
color: theme.controls.gridView.highlight
}

View File

@ -18,7 +18,6 @@ Image {
property color colorize: theme.icons.colorize
property string iconPack: theme ? theme.icons.preferredPack : "thin"
cache: true
asynchronous: true
fillMode: Image.PreserveAspectFit

View File

@ -44,7 +44,6 @@ Image {
source = oldSource
}
autoTransform: true
asynchronous: true
fillMode: Image.PreserveAspectFit

View File

@ -63,7 +63,6 @@ MouseArea {
}
}
enabled: ! window.settings.Scrolling.kinetic
propagateComposedEvents: true
acceptedButtons: Qt.NoButton

View File

@ -14,7 +14,6 @@ HColumnLayout {
readonly property alias label: label
readonly property alias errorLabel: errorLabel
spacing: theme.spacing / 2
HRowLayout {

View File

@ -78,7 +78,6 @@ ListView {
)
}
currentIndex: defaultCurrentIndex
keyNavigationWraps: true
highlightMoveDuration: theme.animationDuration

View File

@ -17,7 +17,6 @@ Menu {
readonly property string uuid: CppUtils.uuid()
modal: true
dim: false
padding: theme.controls.menu.borderWidth

View File

@ -10,7 +10,6 @@ MenuItem {
readonly property alias iconItem: contentItem.icon
readonly property alias label: contentItem.label
spacing: theme.spacing
leftPadding: spacing
rightPadding: leftPadding

View File

@ -9,7 +9,6 @@ HMenuItem {
property bool autoDestruct: true
property var properties: ({})
onTriggered: {
menu.focusOnClosed = null

View File

@ -59,7 +59,6 @@ HImage {
)
}
source: sourceOverride || (show ? cachedPath : "")
showProgressBar:
(isMxc && status === Image.Null) || status === Image.Loading

View File

@ -12,7 +12,6 @@ HRowLayout {
property alias backgroundColor: noticeLabelBackground.color
property alias radius: noticeLabelBackground.radius
HLabel {
id: noticeLabel
horizontalAlignment: Text.AlignHCenter

View File

@ -7,7 +7,6 @@ NumberAnimation {
property real factor: 1.0
property real overshoot: 0.0
duration:
theme.animationDuration *
Math.max((1 + Math.abs(overshoot)) / 1.7, 1.0) * factor

View File

@ -19,7 +19,6 @@ Page {
signal keyboardAccept()
signal keyboardCancel()
padding: currentSpacing < theme.spacing ? 0 : currentSpacing
background: null

View File

@ -19,7 +19,6 @@ Popup {
readonly property string uuid: CppUtils.uuid()
modal: true
focus: true
padding: 0

View File

@ -10,7 +10,6 @@ ProgressBar {
property color backgroundColor: theme.controls.progressBar.background
property color foregroundColor: theme.controls.progressBar.foreground
background: Rectangle {
implicitWidth: 200
implicitHeight: theme.controls.progressBar.height

View File

@ -7,7 +7,6 @@ Item {
property alias borderHeight: clipArea.height
property alias color: borderRectangle.color
implicitWidth: rectangle.width
implicitHeight: rectangle.height

View File

@ -4,7 +4,6 @@
import QtQuick.Controls 2.12
import QtQuick 2.12
Repeater {
id: repeater

View File

@ -7,7 +7,6 @@ HAvatar {
property string roomId
property string displayName
name: displayName[0] === "#" && displayName.length > 1 ?
displayName.substring(1) :
displayName

View File

@ -23,7 +23,6 @@ TextEdit {
label.selectAll()
}
font.family: theme.fontFamily.sans
font.pixelSize: theme.fontSize.normal
color: theme.colors.text

View File

@ -7,7 +7,6 @@ Shortcut {
// TODO: use enabled + a Binding with restoreValue when switch to Qt 5.15
property bool active: true
enabled: ! window.anyPopupOrMenu && active
context: Qt.ApplicationShortcut
}

View File

@ -15,7 +15,6 @@ Slider {
property alias toolTip: toolTip
property alias mouseArea: mouseArea
leftPadding: 0
rightPadding: leftPadding
topPadding: 0

View File

@ -22,7 +22,6 @@ SwipeView {
property int lastMove: HSwipeView.Move.ToNext
property bool changed: currentIndex !== defaultIndex
function reset() { setCurrentIndex(defaultIndex) }
function incrementWrapIndex() {
@ -37,7 +36,6 @@ SwipeView {
decrementCurrentIndex()
}
Component.onCompleted: if (! changed) {
setCurrentIndex(window.getState(this, "currentIndex", defaultIndex))
saveEnabled = true

View File

@ -27,7 +27,6 @@ TabButton {
visible: text && hovered
}
spacing: theme.spacing
topPadding: spacing / 1.5
bottomPadding: topPadding

View File

@ -8,7 +8,6 @@ import QtQuick.Layouts 1.12
HPage {
default property alias swipeViewData: swipeView.contentData
contentWidth:
Math.max(swipeView.contentWidth, theme.controls.box.defaultWidth)

View File

@ -60,7 +60,6 @@ TextArea {
return cursorPosition === 0 ? null : getWordAt(cursorPosition - 1)
}
text: defaultText || ""
opacity: enabled ? 1 : theme.disabledElementsOpacity
selectByMouse: true
@ -146,7 +145,6 @@ TextArea {
KeyNavigation.priority: KeyNavigation.BeforeItem
KeyNavigation.tab: focusItemOnTab
Binding on color {
value: "transparent"
when: disabledText !== null && ! textArea.enabled

View File

@ -26,7 +26,6 @@ HMenu {
)
}
onClosed: control.persistentSelection = hadPersistentSelection
Component.onDestruction:
control.persistentSelection = hadPersistentSelection

View File

@ -48,7 +48,6 @@ TextField {
insert(cursorPosition, text)
}
text: defaultText || ""
opacity: enabled ? 1 : theme.disabledElementsOpacity
selectByMouse: true
@ -117,7 +116,6 @@ TextField {
Keys.onRightPressed:
event.accepted = cursorPosition === length && ! selectedText
Binding on color {
value: "transparent"
when: disabledText !== null && ! field.enabled
@ -133,7 +131,6 @@ TextField {
when: disabledText !== null && ! field.enabled
}
Behavior on opacity { HNumberAnimation {} }
Behavior on color { HColorAnimation {} }
Behavior on placeholderTextColor { HColorAnimation {} }

View File

@ -7,7 +7,6 @@ import ".."
HRowLayout {
property HTile tile
spacing: tile.spacing
opacity: tile.contentOpacity
}

View File

@ -38,7 +38,6 @@ HButton {
openMenu(menuAtCursor)
}
topPadding: padded ? spacing / (compact ? 4 : 2) : 0
bottomPadding: topPadding
@ -47,7 +46,6 @@ HButton {
Keys.onSpacePressed: leftClicked()
Keys.onMenuPressed: doRightClick(false)
Behavior on topPadding { HNumberAnimation {} }
Behavior on bottomPadding { HNumberAnimation {} }

View File

@ -8,7 +8,6 @@ import ".."
HLabel {
property HTile tile
textFormat: Text.StyledText
font.pixelSize: theme.fontSize.small
verticalAlignment: Qt.AlignVCenter

View File

@ -9,7 +9,6 @@ HLabel {
property HTile tile
property int hideUnderWidth: 200
font.pixelSize: theme.fontSize.small
verticalAlignment: Qt.AlignVCenter
color: theme.colors.halfDimText

View File

@ -13,7 +13,6 @@ ToolTip {
property alias label: label
property alias backgroundColor: background.color
function instantShow(timeout=-1) {
if (visible) return
instant = true
@ -25,7 +24,6 @@ ToolTip {
visible ? hide() : instantShow(timeout)
}
delay: instant ? 0 : window.settings.General.tooltips_delay * 1000
padding: background.border.width

View File

@ -16,7 +16,6 @@ HAvatar {
readonly property bool admin: powerLevel >= 100
readonly property bool moderator: powerLevel >= 50 && ! admin
name: displayName || userId.substring(1) // no leading @
title: "user_" + userId + ".avatar"

View File

@ -9,7 +9,6 @@ OSD {
property alias source: audioPlayer.source
audioOnly: true
media: audioPlayer

View File

@ -32,7 +32,6 @@ HColumnLayout {
if (media.seekable) media.seek(pos * (savedDuration || boundPosition))
}
visible: osdScaleTransform.yScale > 0
transform: Scale {

View File

@ -14,14 +14,12 @@ Video {
implicitWidth: fullScreen ? window.width : 640
implicitHeight: fullScreen ? window.height : (width / osd.savedAspectRatio)
property bool hovered: false
property alias fullScreen: osd.fullScreen
property int oldVisibility: Window.Windowed
property QtObject oldParent: video.parent
onFullScreenChanged: {
if (fullScreen) {
oldVisibility = window.visibility
@ -40,7 +38,6 @@ Video {
}
}
Connections {
target: mainUI.fullScreenPopup
onClosed: fullScreen = false

View File

@ -19,7 +19,6 @@ HDrawer {
readonly property alias buttonRepeater: buttonRepeater
readonly property alias swipeView: swipeView
defaultSize: buttonRepeater.count * buttonWidth
minimumSize: buttonWidth

View File

@ -25,7 +25,6 @@ AutoDirectionLayout {
function reset() { field.reset() }
rowSpacing: theme.spacing
onActiveFocusChanged: if (activeFocus) field.forceActiveFocus()

View File

@ -6,7 +6,6 @@ import QtQuick 2.12
Rectangle {
property string presence
implicitWidth:
window.settings.General.compact ?
theme.controls.presence.radius * 2 :

View File

@ -110,7 +110,6 @@ HDrawer {
outputList.model.insert(0, { input, output, error })
}
objectName: "debugConsole"
edge: Qt.TopEdge
x: horizontal ? 0 : referenceSizeParent.width / 2 - width / 2

View File

@ -24,7 +24,6 @@ HFileDialogOpener {
})
}
fill: false
dialog.title: qsTr("Save decryption keys file as...")
dialog.fileMode: FileDialog.SaveFile

View File

@ -26,7 +26,6 @@ Item {
signal filesPicked(var files)
signal cancelled()
anchors.fill: fill ? parent : undefined
TapHandler { enabled: opener.enabled && fill; onTapped: fileDialog.open() }

View File

@ -10,7 +10,6 @@ HFileDialogOpener {
property string userId: ""
property string importFutureId: ""
fill: false
dialog.title: qsTr("Select a decryption keys file to import")
onFilePicked: {

View File

@ -12,7 +12,6 @@ HFileDialogOpener {
signal replied()
fill: false
dialog.title: qsTr("Select a file to send")
dialog.fileMode: FileDialog.OpenFiles

View File

@ -13,7 +13,6 @@ Timer {
py.callClientCoro(userId, "set_presence", [presence, undefined, false])
}
interval: 1000
repeat: true
running:

View File

@ -11,7 +11,6 @@ Rectangle {
property RoomList roomList
readonly property alias accountList: accountList
color: theme.mainPane.accountBar.background
implicitHeight:
accountList.count >= 2 ?
@ -79,7 +78,6 @@ Rectangle {
}
}
HShortcut {
sequences: window.settings.Keys.Accounts.previous
onActivated: {

View File

@ -20,7 +20,6 @@ HMenu {
py.callClientCoro(userId, "set_presence", [presence, statusMsg])
}
onOpened: statusText.forceActiveFocus()
HLabeledItem {

View File

@ -40,7 +40,6 @@ HTile {
py.callClientCoro(model.id, "set_presence", [presence])
}
backgroundColor: theme.mainPane.listView.account.background
contentItem: ContentRow {

View File

@ -10,7 +10,6 @@ Rectangle {
readonly property alias addAccountButton: addAccountButton
readonly property alias filterField: filterField
// Hide filter field overflowing for a sec on size changes
clip: true
implicitHeight: theme.baseElementsHeight
@ -69,7 +68,6 @@ Rectangle {
if (window.settings.RoomList.escape_clears_filter) text = ""
}
Behavior on opacity { HNumberAnimation {} }
HShortcut {

View File

@ -22,7 +22,6 @@ HDrawer {
bottomBar.filterField.forceActiveFocus()
}
saveName: "mainPane"
background: Rectangle { color: theme.mainPane.background }
requireDefaultSize: bottomBar.filterField.activeFocus

View File

@ -11,7 +11,6 @@ HLabel {
property bool localUnreads: false
property bool localHighlights: false
text:
unreads >= 1000000 ? Math.floor(unreads / 1000000) + "M" :
unreads >= 1000 ? Math.floor(unreads / 1000) + "K" :

View File

@ -29,7 +29,6 @@ HTile {
readonly property QtObject lastEvent:
eventModel.count > 0 ? eventModel.get(0) : null
backgroundColor: theme.mainPane.listView.room.background
leftPadding: theme.spacing * 2
rightPadding: theme.spacing

View File

@ -148,7 +148,6 @@ HListView {
return false
}
highlightRangeMode:
keepListCentered ? ListView.ApplyRange : ListView.NoHighlightRange

View File

@ -38,7 +38,6 @@ QtObject {
py.callCoro("models.ensure_exists_from_qml", [modelId])
}
function get(...modelId) {
if (modelId.length === 1) modelId = modelId[0]

View File

@ -66,7 +66,6 @@ HLoader {
if (mainPane.collapse) mainPane.close()
}
clip: appearAnimation.running
onLoaded: { takeFocus(); appearAnimation.restart() }

View File

@ -64,7 +64,6 @@ HFlickableColumnPage {
fileDialog.file = ""
}
footer: AutoDirectionLayout {
ApplyButton {
id: saveButton

View File

@ -12,7 +12,6 @@ HPage {
property string userId
HTabbedBox {
anchors.centerIn: parent
width: Math.min(implicitWidth, page.availableWidth)

View File

@ -18,7 +18,6 @@ HTile {
signal renameRequest(string name)
signal deleteRequest()
backgroundColor: "transparent"
compact: false

View File

@ -16,7 +16,6 @@ HRowLayout {
readonly property int sectionTotalCount:
deviceList.sectionItemCounts[section] || 0
HCheckBox {
id: checkBox
padding: theme.spacing

View File

@ -13,7 +13,6 @@ HFlickableColumnPage {
function takeFocus() { exportButton.forceActiveFocus() }
footer: AutoDirectionLayout {
GroupButton {
id: exportButton

View File

@ -89,7 +89,6 @@ HColumnPage {
return counts
}
enabled: ModelStore.get("accounts").find(userId).presence !== "offline"
contentHeight: Math.min(
window.height,

View File

@ -9,7 +9,6 @@ import "../../Base/Buttons"
HFlickableColumnPage {
function takeFocus() { registerButton.forceActiveFocus() }
footer: AutoDirectionLayout {
ApplyButton {
id: registerButton

View File

@ -9,7 +9,6 @@ import "../../Base/Buttons"
HFlickableColumnPage {
function takeFocus() { resetButton.forceActiveFocus() }
footer: AutoDirectionLayout {
ApplyButton {
id: resetButton

View File

@ -91,7 +91,6 @@ HBox {
})
}
padding: 0
implicitWidth: theme.controls.box.defaultWidth * 1.25
contentHeight: window.height

View File

@ -11,7 +11,6 @@ HTile {
property string loadingIconStep
backgroundColor: "transparent"
contentOpacity: model.status === "Failed" ? 0.3 : 1 // XXX
rightPadding: 0

View File

@ -62,7 +62,6 @@ HFlickableColumnPage {
page.loginFutureId = ""
}
flickable.topMargin: theme.spacing * 1.5
flickable.bottomMargin: flickable.topMargin

View File

@ -41,7 +41,6 @@ SignInBase {
)
}
applyButton.enabled: idField.item.text.trim() && passField.item.text
applyButton.onClicked: page.signIn()

View File

@ -36,7 +36,6 @@ SignInBase {
page.exitRequested()
}
implicitWidth: theme.controls.box.defaultWidth * 1.25
applyButton.text: qsTr("Waiting")
applyButton.loading: true

View File

@ -10,7 +10,6 @@ HPage {
property string userId
HTabbedBox {
anchors.centerIn: parent
width: Math.min(implicitWidth, page.availableWidth)

View File

@ -50,7 +50,6 @@ HFlickableColumnPage {
pageLoader.showPrevious()
}
enabled: account && account.presence !== "offline"
footer: AutoDirectionLayout {

View File

@ -8,7 +8,6 @@ import "../../Base"
HUserAvatar {
property QtObject account
clientUserId: userId
displayName: account ? account.display_name : ""
mxc: account ? account.avatar_url : ""

View File

@ -61,7 +61,6 @@ HFlickableColumnPage {
pageLoader.showPrevious()
}
enabled: account && account.presence !== "offline"
footer: AutoDirectionLayout {

View File

@ -54,7 +54,6 @@ HFlickableColumnPage {
pageLoader.showPrevious()
}
enabled: account && account.presence !== "offline"
footer: AutoDirectionLayout {

View File

@ -85,7 +85,6 @@ HListView {
open = false
}
visible: opacity > 0
opacity: open && count ? 1 : 0
bottomMargin: theme.spacing / 2

View File

@ -14,7 +14,6 @@ Rectangle {
property alias buttonModel: bannerRepeater.model
property var buttonCallbacks: []
implicitHeight: childrenRect.height
color: theme.controls.box.background

View File

@ -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

View File

@ -46,7 +46,6 @@ Item {
replyToDisplayName = ""
}
onFocusChanged: if (focus && loader.item) loader.item.composer.takeFocus()
onReadyChanged: longLoading = false

View File

@ -30,7 +30,6 @@ HColumnPage {
anchors.fill: parent
}
padding: 0
column.spacing: 0

View File

@ -16,7 +16,6 @@ Rectangle {
function takeFocus() { messageArea.forceActiveFocus() }
implicitHeight: Math.max(theme.baseElementsHeight, row.implicitHeight)
color: theme.chat.composer.background

View File

@ -125,7 +125,6 @@ HTextArea {
clearReplyTo()
}
saveName: "composer"
saveId: [chat.roomId, chat.userId]

View File

@ -30,7 +30,6 @@ HColumnLayout {
)
}
Behavior on height { HNumberAnimation {} }
DelegateTransitionFixer {}

View File

@ -13,7 +13,6 @@ Rectangle {
readonly property alias transferCount: transferList.count
implicitWidth: 800
implicitHeight: firstDelegate ? firstDelegate.height : 0
color: theme.chat.fileTransfer.background

View File

@ -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

View File

@ -12,7 +12,6 @@ InfoBar {
signal cancel()
color: theme.chat.replyBar.background
icon.svgName: "reply-to"
label.textFormat: Text.StyledText

View File

@ -16,7 +16,6 @@ Rectangle {
readonly property bool center:
showLeftButton || window.settings.Chat.always_center_header
implicitHeight: theme.baseElementsHeight
color: theme.chat.roomHeader.background

View File

@ -25,7 +25,6 @@ HFlickableColumnPage {
stackView.pop()
}
footer: AutoDirectionLayout {
PositiveButton {
text: qsTr("They're the same")

Some files were not shown because too many files have changed in this diff Show More