Commits

kiilerix committed 30fdc10

qt: set window titles for file views

Comments (0)

Files changed (6)

hgviewlib/qt4/filediffviewer.ui

    </rect>
   </property>
   <property name="windowTitle" >
-   <string>MainWindow</string>
+   <string>hgview diff</string>
   </property>
   <widget class="QWidget" name="centralwidget" >
    <property name="geometry" >

hgviewlib/qt4/fileviewer.ui

    </rect>
   </property>
   <property name="windowTitle" >
-   <string>hg FileViewer</string>
+   <string>hgview filelog</string>
   </property>
   <widget class="QWidget" name="centralwidget" >
    <property name="geometry" >

hgviewlib/qt4/hgfiledialog.py

 
     def setupViews(self):
         self.textView.setFont(self._font)
+        self.setWindowTitle('hgview filelog: %s' % os.path.abspath(self.filename))
         connect(self.textView, SIGNAL('showMessage'),
                 self.statusBar().showMessage)
 
 
         self.setTabOrder(table, self.viewers['left'])
         self.setTabOrder(self.viewers['left'], self.viewers['right'])
+        self.setWindowTitle('hgview diff: %s' % os.path.abspath(self.filename))
 
         # timer used to fill viewers with diff block markers during GUI idle time
         self.timer = QtCore.QTimer()

hgviewlib/qt4/hgmanifestdialog.py

         self.repo = repo
         QtGui.QMainWindow.__init__(self)
         HgDialogMixin.__init__(self)
-        self.setWindowTitle('Hg manifest viewer - %s:%s' % (repo.root, noderev))
+        self.setWindowTitle('hgview manifest: %s revision %s' % (repo.root, noderev))
 
         # hg repo
         self.repo = repo

hgviewlib/qt4/hgqv.ui

    </rect>
   </property>
   <property name="windowTitle">
-   <string>MainWindow</string>
+   <string>hgview</string>
   </property>
   <widget class="QWidget" name="centralwidget">
    <layout class="QVBoxLayout" name="verticalLayout_3">

hgviewlib/qt4/manifestviewer.ui

    </rect>
   </property>
   <property name="windowTitle" >
-   <string>Dialog</string>
+   <string>hgview manifest</string>
   </property>
   <widget class="QWidget" name="centralwidget" >
    <property name="geometry" >