summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Filebrowser.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-08-21 13:40:16 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-08-21 14:54:50 +0200
commit0e23f7776fd104d8713cb705438c21559addc1d9 (patch)
treefb3303d6f6a0c86ac92febca1dd827c2218c60c7 /nephilim/plugins/Filebrowser.py
parent4636982682d69c0fc5fea724344f02c94c6cb741 (diff)
switch to new-style PyQt4 signals.
Diffstat (limited to 'nephilim/plugins/Filebrowser.py')
-rw-r--r--nephilim/plugins/Filebrowser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nephilim/plugins/Filebrowser.py b/nephilim/plugins/Filebrowser.py
index a566489..925468a 100644
--- a/nephilim/plugins/Filebrowser.py
+++ b/nephilim/plugins/Filebrowser.py
@@ -63,7 +63,7 @@ class wgFilebrowser(QtGui.QWidget):
self.menu.addAction('***EXPERIMENTAL DON\'T USE*** &Copy to collection.', self.selection_copy_to_collection)
self.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
- self.connect(self, QtCore.SIGNAL('customContextMenuRequested(const QPoint &)'), self.show_context_menu)
+ self.customContextMenuRequested.connect(self.show_context_menu)
def show_context_menu(self, pos):
if not self.indexAt(pos).isValid():
@@ -112,10 +112,10 @@ class wgFilebrowser(QtGui.QWidget):
self.model.setSorting(QtCore.QDir.DirsFirst)
self.view = self.FileView(self.model, self.plugin)
- self.connect(self.view, QtCore.SIGNAL('activated(const QModelIndex&)'), self.item_activated)
+ self.view.activated.connect(self.item_activated)
self.path = QtGui.QLineEdit(self.model.filePath(self.view.rootIndex()))
- self.connect(self.path, QtCore.SIGNAL('returnPressed()'), self.path_changed)
+ self.path.returnPressed.connect(self.path_changed)
self.setLayout(QtGui.QVBoxLayout())
self.layout().setSpacing(0)