From e147b87d1bc49c3eb5b27f46300b92827ae5e12b Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 14 May 2020 19:30:34 -0400 Subject: [PATCH] Remove superfluous HTileDelegate, use HTile --- src/gui/Base/HTile/HTileDelegate.qml | 24 ------------------- src/gui/MainPane/Room.qml | 2 +- .../Pages/Chat/RoomPane/MemberDelegate.qml | 2 +- 3 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 src/gui/Base/HTile/HTileDelegate.qml diff --git a/src/gui/Base/HTile/HTileDelegate.qml b/src/gui/Base/HTile/HTileDelegate.qml deleted file mode 100644 index 6857b126..00000000 --- a/src/gui/Base/HTile/HTileDelegate.qml +++ /dev/null @@ -1,24 +0,0 @@ -// SPDX-License-Identifier: LGPL-3.0-or-later - -import QtQuick 2.12 -import QtQuick.Layouts 1.12 -import ".." - -HTile { - id: tile - topPadding: padded ? spacing / (compact ? 4 : 2) : 0 - bottomPadding: topPadding - - // onLeftClicked: { - // view.highlightRangeMode = ListView.NoHighlightRange - // view.highlightMoveDuration = 0 - // activated() - // view.highlightRangeMode = ListView.ApplyRange - // view.highlightMoveDuration = theme.animationDuration - // } - - - signal activated() - - property HListView view: ListView.view -} diff --git a/src/gui/MainPane/Room.qml b/src/gui/MainPane/Room.qml index ad5c8c8f..a6eff71b 100644 --- a/src/gui/MainPane/Room.qml +++ b/src/gui/MainPane/Room.qml @@ -7,7 +7,7 @@ import ".." import "../Base" import "../Base/HTile" -HTileDelegate { +HTile { id: room backgroundColor: theme.mainPane.listView.room.background leftPadding: theme.spacing * 2 diff --git a/src/gui/Pages/Chat/RoomPane/MemberDelegate.qml b/src/gui/Pages/Chat/RoomPane/MemberDelegate.qml index d3cd3733..351c572d 100644 --- a/src/gui/Pages/Chat/RoomPane/MemberDelegate.qml +++ b/src/gui/Pages/Chat/RoomPane/MemberDelegate.qml @@ -6,7 +6,7 @@ import "../../../Base" import "../../../Base/HTile" import "../../../Popups" -HTileDelegate { +HTile { id: member backgroundColor: theme.chat.roomPane.listView.member.background contentOpacity: