Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

various: adjust context menu locations where appropriate

Many of these were only misplaced by a couple pixels (depending on the platform)
but the manifest and grep cmenus at least were noticeably off.

Changeset 7e2087c85e6a

Parent 0a2682c2a803

by Phil Currier

Changes to 8 files · Browse files at 7e2087c85e6a Showing diff from parent 0a2682c2a803 Diff from another changeset...

 
114
115
116
117
 
118
119
120
 
568
569
570
571
 
572
573
574
 
114
115
116
 
117
118
119
120
 
568
569
570
 
571
572
573
574
@@ -114,7 +114,7 @@
  for act in actionlist:   menu.addAction(self._actions[act])   self.contextmenu = menu - self.contextmenu.exec_(self.filelist.mapToGlobal(point)) + self.contextmenu.exec_(self.filelist.viewport().mapToGlobal(point))     def vdiff(self):   filenames = self.getSelectedFiles() @@ -568,7 +568,7 @@
  self.clearDisplay()     def menuRequested(self, point): - point = self.sci.mapToGlobal(point) + point = self.sci.viewport().mapToGlobal(point)   return self.sci.createStandardContextMenu().exec_(point)     def loadSettings(self, qs, prefix):
 
60
61
62
63
 
64
65
66
 
60
61
62
 
63
64
65
66
@@ -60,7 +60,7 @@
    def menuRequested(self, point):   line = self.lineAt(point) - point = self.mapToGlobal(point) + point = self.viewport().mapToGlobal(point)     def apply():   line = 0
 
546
547
548
549
 
550
551
552
 
546
547
548
 
549
550
551
552
@@ -546,7 +546,7 @@
  def menuRequest(self, point):   menu = self.sci.createStandardContextMenu()   line = self.sci.lineAt(point) - point = self.sci.mapToGlobal(point) + point = self.sci.viewport().mapToGlobal(point)     selection = self.sci.selectedText()   def sreq(**opts):
 
599
600
601
602
 
603
604
605
 
599
600
601
 
602
603
604
605
@@ -599,7 +599,7 @@
  def menuRequest(self, point):   if not self.selectionModel().selectedRows():   return - point = self.mapToGlobal(point) + point = self.viewport().mapToGlobal(point)   self.contextmenu.exec_(point)     def onSelectionChanged(self, selected, deselected):
 
140
141
142
143
 
144
145
146
 
140
141
142
 
143
144
145
146
@@ -140,7 +140,7 @@
    def menuRequest(self, point):   'context menu request for unknown list' - point = self.unknownlist.mapToGlobal(point) + point = self.unknownlist.viewport().mapToGlobal(point)   selected = [self.lclunknowns[i.row()]   for i in sorted(self.unknownlist.selectedIndexes())]   if len(selected) == 0:
 
330
331
332
333
 
334
335
336
 
330
331
332
 
333
334
335
336
@@ -330,7 +330,7 @@
  selmodel = self._treeview.selectionModel()   if not selmodel.selectedRows():   return - point = self.mapToGlobal(point) + point = self._treeview.viewport().mapToGlobal(point)     currentindex = self._treeview.currentIndex()   itemissubrepo = (self._treemodel.fileStatus(currentindex) == 'S')
 
136
137
138
139
 
140
141
142
 
253
254
255
256
 
257
258
259
 
136
137
138
 
139
140
141
142
 
253
254
255
 
256
257
258
259
@@ -136,7 +136,7 @@
  QTimer.singleShot(0, lambda: self.chunklist.setCurrentRow(0))     def menuRequested(self, point): - point = self.editor.mapToGlobal(point) + point = self.editor.viewport().mapToGlobal(point)   return self.editor.createStandardContextMenu().exec_(point)     def updateChunkList(self): @@ -253,7 +253,7 @@
  self.setLexer(lexer)     def menuRequested(self, point): - point = self.mapToGlobal(point) + point = self.viewport().mapToGlobal(point)   return self.createStandardContextMenu().exec_(point)     def showChunk(self, lines):
 
461
462
463
464
 
465
466
467
 
461
462
463
 
464
465
466
467
@@ -461,7 +461,7 @@
  self._actions['diffnavigate'].setEnabled(singlefileactions)     if actionlist: - contextmenu.exec_(self.filelist.mapToGlobal(point)) + contextmenu.exec_(self.filelist.viewport().mapToGlobal(point))     def saveSettings(self, s):   wb = "RevDetailsWidget/"