Fix invisible room categories still taking space

This commit is contained in:
miruka
2019-05-06 14:20:20 -04:00
parent d6714141e0
commit 25bb082f5a
3 changed files with 2 additions and 5 deletions

View File

@@ -155,7 +155,6 @@ class ListModel(QAbstractListModel):
raise ValueError(f"No item in model data with "
f"property {prop!r} set to {is_value!r}.")
from PyQt5.QtCore import pyqtRemoveInputHook as PRI; import pdb; PRI(); pdb.set_trace()
@pyqtSlot(int, result="QVariant")

View File

@@ -5,8 +5,8 @@ import "../Base"
Column {
id: roomCategoryDelegate
width: roomCategoriesList.width
height: childrenRect.height
visible: roomList.contentHeight > 0
height: roomList.model.rowCount() > 0 ? childrenRect.height : 0
visible: roomList.model.rowCount() > 0
property string roomListUserId: userId
property bool expanded: true