mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
Replace some binding loops with others
This commit is contained in:
parent
04c9eec8a4
commit
04cbbd2837
5 changed files with 7 additions and 6 deletions
|
@ -164,6 +164,7 @@ Item {
|
||||||
userId: wrapper.userId
|
userId: wrapper.userId
|
||||||
userName: wrapper.userName
|
userName: wrapper.userName
|
||||||
y: section.visible && section.active ? section.y + section.height : 0
|
y: section.visible && section.active ? section.y + section.height : 0
|
||||||
|
width: wrapper.width
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
id: scrollHighlight
|
id: scrollHighlight
|
||||||
|
|
|
@ -50,7 +50,6 @@ AbstractButton {
|
||||||
|
|
||||||
height: row.height + (reactionRow.height > 0 ? reactionRow.height - 2 : 0) + unreadRow.height
|
height: row.height + (reactionRow.height > 0 ? reactionRow.height - 2 : 0) + unreadRow.height
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
width: parent.width
|
|
||||||
|
|
||||||
states: State {
|
states: State {
|
||||||
name: "dragging"
|
name: "dragging"
|
||||||
|
|
|
@ -11,14 +11,13 @@ Item {
|
||||||
required property string filename
|
required property string filename
|
||||||
required property string filesize
|
required property string filesize
|
||||||
|
|
||||||
height: row.height + (Settings.bubbles? 16: 24)
|
height: rowa.height + (Settings.bubbles? 16: 24)
|
||||||
width: parent.width
|
implicitWidth: rowa.implicitWidth + metadataWidth
|
||||||
implicitWidth: row.implicitWidth+metadataWidth
|
|
||||||
property int metadataWidth
|
property int metadataWidth
|
||||||
property bool fitsMetadata: true
|
property bool fitsMetadata: true
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: row
|
id: rowa
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: parent.width - (Settings.bubbles? 16 : 24)
|
width: parent.width - (Settings.bubbles? 16 : 24)
|
||||||
|
|
|
@ -39,6 +39,8 @@ Item {
|
||||||
property bool fitsMetadata: (chooser.child && chooser.child.fitsMetadata) ? chooser.child.fitsMetadata : false
|
property bool fitsMetadata: (chooser.child && chooser.child.fitsMetadata) ? chooser.child.fitsMetadata : false
|
||||||
property int metadataWidth
|
property int metadataWidth
|
||||||
|
|
||||||
|
implicitWidth: chooser.child?.implicitWidth
|
||||||
|
|
||||||
height: chooser.child ? chooser.child.height : Nheko.paddingLarge
|
height: chooser.child ? chooser.child.height : Nheko.paddingLarge
|
||||||
|
|
||||||
DelegateChooser {
|
DelegateChooser {
|
||||||
|
|
|
@ -14,7 +14,7 @@ MatrixText {
|
||||||
required property string formatted
|
required property string formatted
|
||||||
property string copyText: selectedText ? getText(selectionStart, selectionEnd) : body
|
property string copyText: selectedText ? getText(selectionStart, selectionEnd) : body
|
||||||
property int metadataWidth
|
property int metadataWidth
|
||||||
property bool fitsMetadata: positionAt(width,height-4) == positionAt(width-metadataWidth-10, height-4)
|
property bool fitsMetadata: false //positionAt(width,height-4) == positionAt(width-metadataWidth-10, height-4)
|
||||||
|
|
||||||
// table border-collapse doesn't seem to work
|
// table border-collapse doesn't seem to work
|
||||||
text: "
|
text: "
|
||||||
|
|
Loading…
Reference in a new issue