504 isdir = ( |
504 isdir = ( |
505 self.__remotefsInterface.isdir(fname) |
505 self.__remotefsInterface.isdir(fname) |
506 if FileSystemUtilities.isRemoteFileName(fname) |
506 if FileSystemUtilities.isRemoteFileName(fname) |
507 else os.path.isdir(fname) |
507 else os.path.isdir(fname) |
508 ) |
508 ) |
509 parentItem, dt = self.findParentItemByName( |
509 parentItem, _dt = self.findParentItemByName( |
510 self.__projectBrowser.getProjectBrowserFilter(fileCategory), fn |
510 self.__projectBrowser.getProjectBrowserFilter(fileCategory), fn |
511 ) |
511 ) |
512 itm = ( |
512 itm = ( |
513 ProjectBrowserDirectoryItem( |
513 ProjectBrowserDirectoryItem( |
514 parentItem, |
514 parentItem, |
633 # Show the entry in bold in the others browser to make it more |
633 # Show the entry in bold in the others browser to make it more |
634 # distinguishable |
634 # distinguishable |
635 bold = typeString == "OTHERS" |
635 bold = typeString == "OTHERS" |
636 |
636 |
637 fname = os.path.join(self.project.ppath, name) |
637 fname = os.path.join(self.project.ppath, name) |
638 parentItem, dt = self.findParentItemByName( |
638 parentItem, _dt = self.findParentItemByName( |
639 self.__projectBrowser.getProjectBrowserFilter(typeString), name |
639 self.__projectBrowser.getProjectBrowserFilter(typeString), name |
640 ) |
640 ) |
641 parentIndex = ( |
641 parentIndex = ( |
642 QModelIndex() |
642 QModelIndex() |
643 if parentItem == self.rootItem |
643 if parentItem == self.rootItem |
1002 index2 = self.createIndex( |
1002 index2 = self.createIndex( |
1003 itm.row(), self.rootItem.columnCount() - 1, itm |
1003 itm.row(), self.rootItem.columnCount() - 1, itm |
1004 ) |
1004 ) |
1005 self.dataChanged.emit(index1, index2) |
1005 self.dataChanged.emit(index1, index2) |
1006 |
1006 |
1007 head, tail = os.path.split(name) |
1007 head, _tail = os.path.split(name) |
1008 if head != lastHead: |
1008 if head != lastHead: |
1009 if lastHead: |
1009 if lastHead: |
1010 self.__changeParentsVCSState(lastHead, itemCache) |
1010 self.__changeParentsVCSState(lastHead, itemCache) |
1011 lastHead = head |
1011 lastHead = head |
1012 if lastHead: |
1012 if lastHead: |
1044 index1 = self.createIndex(itm.row(), 0, itm) |
1044 index1 = self.createIndex(itm.row(), 0, itm) |
1045 index2 = self.createIndex( |
1045 index2 = self.createIndex( |
1046 itm.row(), self.rootItem.columnCount() - 1, itm |
1046 itm.row(), self.rootItem.columnCount() - 1, itm |
1047 ) |
1047 ) |
1048 self.dataChanged.emit(index1, index2) |
1048 self.dataChanged.emit(index1, index2) |
1049 path, tail = os.path.split(path) |
1049 path, _tail = os.path.split(path) |
1050 |
1050 |
1051 def preferencesChanged(self): |
1051 def preferencesChanged(self): |
1052 """ |
1052 """ |
1053 Public method used to handle a change in preferences. |
1053 Public method used to handle a change in preferences. |
1054 """ |
1054 """ |