494 Private method to check, if a file name is contained in a tree widget. |
494 Private method to check, if a file name is contained in a tree widget. |
495 |
495 |
496 @param filename name of the file to check |
496 @param filename name of the file to check |
497 @type str |
497 @type str |
498 @param treeWidget reference to the tree widget to be checked against |
498 @param treeWidget reference to the tree widget to be checked against |
|
499 @type QTreeWidget |
499 @return flag indicating that the file name is present |
500 @return flag indicating that the file name is present |
500 @rtype bool |
501 @rtype bool |
501 """ |
502 """ |
502 itemCount = treeWidget.topLevelItemCount() |
503 itemCount = treeWidget.topLevelItemCount() |
503 return itemCount > 0 and any( |
504 return itemCount > 0 and any( |