Changeset 28569a2965d3…
Parent f901d4a3aaec…
by
Changes to one file · Browse files at 28569a2965d3 Showing diff from parent f901d4a3aaec Diff from another changeset...
@@ -26,15 +26,19 @@ self.setWindowIcon(qtlib.geticon('hg-merge'))
self.repo = repo
- s = QSettings()
- self.restoreGeometry(s.value('resolve/geom').toByteArray())
+ self.setLayout(QVBoxLayout())
+ self.layout().setSpacing(5)
- box = QVBoxLayout()
- box.setSpacing(5)
- self.setLayout(box)
+ hbox = QHBoxLayout()
+ self.layout().addLayout(hbox)
+ self.refreshButton = tb = QToolButton(self)
+ tb.setIcon(qtlib.geticon('view-refresh'))
+ tb.setShortcut(QKeySequence.Refresh)
+ tb.clicked.connect(self.refresh)
self.stlabel = QLabel()
- box.addWidget(self.stlabel)
+ hbox.addWidget(tb)
+ hbox.addWidget(self.stlabel)
unres = qtlib.LabeledSeparator(_('Unresolved conflicts'))
self.layout().addWidget(unres)
@@ -129,13 +133,14 @@ self.layout().addWidget(self.cmd)
BB = QDialogButtonBox
- bbox = QDialogButtonBox(BB.Ok|BB.Close)
- bbox.button(BB.Ok).setText('Refresh')
- bbox.accepted.connect(self.refresh)
+ bbox = QDialogButtonBox(BB.Close)
bbox.rejected.connect(self.reject)
self.layout().addWidget(bbox)
self.bbox = bbox
+ s = QSettings()
+ self.restoreGeometry(s.value('resolve/geom').toByteArray())
+
self.refresh()
self.utree.selectAll()
self.utree.setFocus()
|
Loading...