46 self.process.finished.connect(self.__procFinished) |
46 self.process.finished.connect(self.__procFinished) |
47 self.process.readyReadStandardOutput.connect(self.__readStdout) |
47 self.process.readyReadStandardOutput.connect(self.__readStdout) |
48 self.process.readyReadStandardError.connect(self.__readStderr) |
48 self.process.readyReadStandardError.connect(self.__readStderr) |
49 |
49 |
50 self.rx_path = QRegExp(r"Properties on '([^']+)':\s*") |
50 self.rx_path = QRegExp(r"Properties on '([^']+)':\s*") |
51 self.rx_prop = QRegExp(r" (.*) : (.*)[\r\n]") |
51 self.rx_prop = QRegExp(r" (.*) *: *(.*)[\r\n]") |
52 self.lastPath = None |
52 self.lastPath = None |
53 self.lastProp = None |
53 self.lastProp = None |
54 self.propBuffer = "" |
54 self.propBuffer = "" |
55 |
55 |
56 def __resort(self): |
56 def __resort(self): |
73 |
73 |
74 @param path file/directory name the property applies to (string) |
74 @param path file/directory name the property applies to (string) |
75 @param propName name of the property (string) |
75 @param propName name of the property (string) |
76 @param propValue value of the property (string) |
76 @param propValue value of the property (string) |
77 """ |
77 """ |
78 QTreeWidgetItem(self.propsList, [path, propName, propValue]) |
78 QTreeWidgetItem(self.propsList, [path, propName, propValue.strip()]) |
79 |
79 |
80 def closeEvent(self, e): |
80 def closeEvent(self, e): |
81 """ |
81 """ |
82 Private slot implementing a close event handler. |
82 Private slot implementing a close event handler. |
83 |
83 |