Permalink
Browse files

fix regression when converted to qwidget

  • Loading branch information...
1 parent 9e30687 commit 47c66116ccec417835e2510338bd6dc37790ff4c @etiennesky committed Mar 16, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −0 loopvisiblelayers.py
  2. +1 −2 loopvisiblelayerswidget.py
  3. +1 −1 ui_loopvisiblelayerswidget.py
View
@@ -58,6 +58,7 @@ def initGui(self):
self.dockWidget.setObjectName('Loop Visible Layers')
self.dockWidget.setWidget(self.loopWidget)
QObject.connect(self.dockWidget, SIGNAL('topLevelChanged ( bool )'), self.resizeDock)
+ QObject.connect(self.dockWidget, SIGNAL('visibilityChanged ( bool )'), self.loopWidget.onVisibilityChanged)
self.iface.addDockWidget(Qt.LeftDockWidgetArea, self.dockWidget)
def showHideDock(self):
@@ -78,7 +78,6 @@ def __init__(self, iface):
QObject.connect(self.btnForward, SIGNAL('clicked()'), self.actionForward)
QObject.connect(self.btnBack, SIGNAL('clicked()'), self.actionBack)
QObject.connect(self.btnStop, SIGNAL('clicked()'), self.actionStop)
- QObject.connect(self, SIGNAL('visibilityChanged ( bool )'), self.onVisibilityChanged)
# signals mapped to checkGroupsChanged (btnRefresh, layers changed)
#QObject.connect( self.btnRefresh, SIGNAL( 'clicked()' ), self.checkGroupsChanged )
@@ -154,7 +153,7 @@ def actionStart(self):
self.checkGroupsChanged()
QtGui.QMessageBox.warning(self, 'Warning', 'Loop Visible Layers Plugin \n\nSelection has been updated, verify and start again')
return
-
+
# save visible layers
self.bakLayerIds = list()
for layer in self.iface.mapCanvas().layers():
@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui_loopvisiblelayerswidget.ui'
#
-# Created: Fri Mar 16 18:58:04 2012
+# Created: Fri Mar 16 20:25:42 2012
# by: PyQt4 UI code generator 4.8.5
#
# WARNING! All changes made in this file will be lost!

0 comments on commit 47c6611

Please sign in to comment.