40 self.__menu.addAction(self.trUtf8('Select All'), self.selectAll) |
40 self.__menu.addAction(self.trUtf8('Select All'), self.selectAll) |
41 self.__menu.addSeparator() |
41 self.__menu.addSeparator() |
42 self.__menu.addAction(self.trUtf8("Configure..."), self.__configure) |
42 self.__menu.addAction(self.trUtf8("Configure..."), self.__configure) |
43 |
43 |
44 self.setContextMenuPolicy(Qt.CustomContextMenu) |
44 self.setContextMenuPolicy(Qt.CustomContextMenu) |
45 self.connect(self, SIGNAL("customContextMenuRequested(const QPoint &)"), |
45 self.customContextMenuRequested.connect(self.__handleShowContextMenu) |
46 self.__handleShowContextMenu) |
|
47 |
46 |
48 self.cNormalFormat = self.currentCharFormat() |
47 self.cNormalFormat = self.currentCharFormat() |
49 self.cErrorFormat = self.currentCharFormat() |
48 self.cErrorFormat = self.currentCharFormat() |
50 self.cErrorFormat.setForeground(QBrush(Preferences.getUI("LogStdErrColour"))) |
49 self.cErrorFormat.setForeground(QBrush(Preferences.getUI("LogStdErrColour"))) |
51 |
50 |