Fix invisible room categories still taking space
This commit is contained in:
@@ -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")
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user