Skip to content

Commit

Permalink
views/mainwindow.py: Use newstyle connect, because Windows PyQt4.8 do…
Browse files Browse the repository at this point in the history
…esn't support the old style
  • Loading branch information
giselher committed Mar 28, 2012
1 parent 86c7df6 commit f87f819
Showing 1 changed file with 12 additions and 26 deletions.
38 changes: 12 additions & 26 deletions src/views/mainwindow.py
Expand Up @@ -148,33 +148,19 @@ def __initActions(self):


def __connectActions(self): def __connectActions(self):
# file menu # file menu
self.connect(self.act.actions[Actions.Open], SIGNAL('activated()'), \ self.act.actions[Actions.Open].triggered.connect(self.showOpenExecutableDialog)
self.showOpenExecutableDialog) self.act.actions[Actions.Exit].triggered.connect(self.close)
self.connect(self.act.actions[Actions.Exit], SIGNAL('activated()'), \ self.act.actions[Actions.SaveFile].triggered.connect(self.signalproxy.emitSaveCurrentFile)
self.close)
self.connect(self.act.actions[Actions.SaveFile], SIGNAL('activated()'),\
self.signalproxy.emitSaveCurrentFile)

# debug menu # debug menu
self.connect(self.act.actions[Actions.Run], SIGNAL('activated()'), \ self.act.actions[Actions.Run].triggered.connect(self.debugController.run)
self.debugController.run) self.act.actions[Actions.Next].triggered.connnect( self.debugController.next_)
self.connect(self.act.actions[Actions.Next], SIGNAL('activated()'), \ self.act.actions[Actions.ReverseNext].triggered.connnect(self.debugController.reverse_next)
self.debugController.next_) self.act.actions[Actions.Step].triggered.connnect(self.debugController.step)
self.connect(self.act.actions[Actions.ReverseNext], \ self.act.actions[Actions.ReverseStep].triggered.connect(self.debugController.reverse_step)
SIGNAL('activated()'), self.debugController.reverse_next) self.act.actions[Actions.Continue].triggered.connect( self.debugController.cont)
self.connect(self.act.actions[Actions.Step], SIGNAL('activated()'), \ self.act.actions[Actions.Interrupt].triggered.connect(self.debugController.interrupt)
self.debugController.step) self.act.actions[Actions.Finish].triggered.connect( self.debugController.finish)
self.connect(self.act.actions[Actions.ReverseStep], \ self.act.actions[Actions.RunToCursor].triggered.connect(self.debugController.inferiorUntil)
SIGNAL('activated()'), self.debugController.reverse_step)
self.connect(self.act.actions[Actions.Continue], SIGNAL('activated()'),\
self.debugController.cont)
self.connect(self.act.actions[Actions.Interrupt], SIGNAL('activated()')\
, self.debugController.interrupt)
self.connect(self.act.actions[Actions.Finish], SIGNAL('activated()'), \
self.debugController.finish)
self.connect(self.act.actions[Actions.RunToCursor], \
SIGNAL('activated()'), self.debugController.inferiorUntil)

QObject.connect(self.ui.actionRestoreSession, SIGNAL('activated()'), \ QObject.connect(self.ui.actionRestoreSession, SIGNAL('activated()'), \
self.distributedObjects.sessionManager.showRestoreSessionDialog) self.distributedObjects.sessionManager.showRestoreSessionDialog)
QObject.connect(self.ui.actionSaveSession, SIGNAL('activated()'), \ QObject.connect(self.ui.actionSaveSession, SIGNAL('activated()'), \
Expand Down

1 comment on commit f87f819

@rainerf
Copy link

@rainerf rainerf commented on f87f819 Apr 4, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good -- it just needs to be changed all over the place ;).

Please sign in to comment.