377 self.dirMenu.addSeparator() |
377 self.dirMenu.addSeparator() |
378 self.dirMenu.addAction(self.trUtf8('Configure...'), self._configure) |
378 self.dirMenu.addAction(self.trUtf8('Configure...'), self._configure) |
379 |
379 |
380 self.dirMultiMenu = None |
380 self.dirMultiMenu = None |
381 |
381 |
382 self.connect(self.menu, SIGNAL('aboutToShow()'), |
382 self.menu.aboutToShow.connect(self.__showContextMenu) |
383 self.__showContextMenu) |
383 self.multiMenu.aboutToShow.connect(self.__showContextMenuMulti) |
384 self.connect(self.multiMenu, SIGNAL('aboutToShow()'), |
384 self.dirMenu.aboutToShow.connect(self.__showContextMenuDir) |
385 self.__showContextMenuMulti) |
385 self.backMenu.aboutToShow.connect(self.__showContextMenuBack) |
386 self.connect(self.dirMenu, SIGNAL('aboutToShow()'), |
|
387 self.__showContextMenuDir) |
|
388 self.connect(self.backMenu, SIGNAL('aboutToShow()'), |
|
389 self.__showContextMenuBack) |
|
390 self.mainMenu = self.menu |
386 self.mainMenu = self.menu |
391 |
387 |
392 def _contextMenuRequested(self, coord): |
388 def _contextMenuRequested(self, coord): |
393 """ |
389 """ |
394 Protected slot to show the context menu. |
390 Protected slot to show the context menu. |