Rename the tab count function just to be safe
This commit is contained in:
@@ -168,7 +168,7 @@ class GuiDocViewerPanel(QWidget):
|
|||||||
def _updateTabVisibility(self) -> None:
|
def _updateTabVisibility(self) -> None:
|
||||||
"""Hide class tabs with no content."""
|
"""Hide class tabs with no content."""
|
||||||
for tClass, cTab in self.kwTabs.items():
|
for tClass, cTab in self.kwTabs.items():
|
||||||
self.mainTabs.setTabVisible(self.idTabs[tClass], cTab.count() > 0)
|
self.mainTabs.setTabVisible(self.idTabs[tClass], cTab.countEntries() > 0)
|
||||||
return
|
return
|
||||||
|
|
||||||
# END Class GuiDocViewerPanel
|
# END Class GuiDocViewerPanel
|
||||||
@@ -345,7 +345,7 @@ class _ViewPanelKeyWords(QTreeWidget):
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def count(self) -> int:
|
def countEntries(self) -> int:
|
||||||
"""Return the number of items in the list."""
|
"""Return the number of items in the list."""
|
||||||
return self.topLevelItemCount()
|
return self.topLevelItemCount()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user