Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.2, 1.9.3, and 2.0

mq: use built-in qsci context menu

Changeset c634a870dc41

Parent 80def0153b78

by Steve Borho

Changes to one file · Browse files at c634a870dc41 Showing diff from parent 80def0153b78 Diff from another changeset...

 
125
126
127
 
 
128
129
130
 
190
191
192
 
 
 
 
193
194
195
 
645
646
647
 
648
649
650
 
652
653
654
 
655
656
657
 
125
126
127
128
129
130
131
132
 
192
193
194
195
196
197
198
199
200
201
 
651
652
653
654
655
656
657
 
659
660
661
662
663
664
665
@@ -125,6 +125,8 @@
    self.messageEditor = commit.MessageEntry(self)   self.messageEditor.installEventFilter(qscilib.KeyPressInterceptor(self)) + self.messageEditor.setContextMenuPolicy(Qt.CustomContextMenu) + self.messageEditor.customContextMenuRequested.connect(self.menuRequested)   self.messageEditor.refresh(repo)   layout.addWidget(self.messageEditor, 1)   @@ -190,6 +192,10 @@
  self.loadConfigs()   QTimer.singleShot(0, self.reload)   + def menuRequested(self, point): + point = self.messageEditor.mapToGlobal(point) + return self.messageEditor.createStandardContextMenu().exec_(point) +   def getUserOptions(self, *optionlist):   out = []   for opt in optionlist: @@ -645,6 +651,7 @@
  self.splitter.restoreState(s.value('mq/splitter').toByteArray())   userhist = s.value('commit/userhist').toStringList()   self.opts['userhist'] = [hglib.fromunicode(u) for u in userhist if u] + self.messageEditor.loadSettings(s, 'mq/editor')   if not self.parent():   self.restoreGeometry(s.value('mq/geom').toByteArray())   @@ -652,6 +659,7 @@
  'Save history, etc, in QSettings instance'   s = QSettings()   s.setValue('mq/splitter', self.splitter.saveState()) + self.messageEditor.saveSettings(s, 'mq/editor')   if not self.parent():   s.setValue('mq/geom', self.saveGeometry())