[qt4] remove quit button from toolbar (closes #50416)

How to test

Start hgview, ensure that the "Window" toolbar is visible and does not contain the "quit" button.

authorAlain Leufroy <alain@leufroy.fr>
changesetc52c2c5cbded
branchdefault
phasepublic
hiddenno
parent revision#1631798f68b3 [qt4] enable Ctrl-Q even if the window toolbar is hidden (closes #109856)
child revision#f05fdb61e983 [qt] do not select revision on left click on revisions tree graph
files modified by this revision
hgviewlib/qt4/filediffviewer.ui
hgviewlib/qt4/fileviewer.ui
hgviewlib/qt4/hgqv.ui
hgviewlib/qt4/manifestviewer.ui
# HG changeset patch
# User Alain Leufroy <alain@leufroy.fr>
# Date 1371161230 -7200
# Fri Jun 14 00:07:10 2013 +0200
# Node ID c52c2c5cbdedd99b865999a5fa041ef7733682c2
# Parent 1631798f68b3758252d0718c912b530b09bda133
[qt4] remove quit button from toolbar (closes #50416)

.. admonition:: How to test

Start hgview, ensure that the "Window" toolbar is visible and
does not contain the "quit" button.

diff --git a/hgviewlib/qt4/filediffviewer.ui b/hgviewlib/qt4/filediffviewer.ui
@@ -106,11 +106,10 @@
1      <enum>TopToolBarArea</enum>
2     </attribute>
3     <attribute name="toolBarBreak" >
4      <bool>true</bool>
5     </attribute>
6 -   <addaction name="actionClose" />
7     <addaction name="actionReload" />
8    </widget>
9    <widget class="QToolBar" name="toolBar_edit" >
10     <property name="geometry" >
11      <rect>
diff --git a/hgviewlib/qt4/fileviewer.ui b/hgviewlib/qt4/fileviewer.ui
@@ -68,11 +68,10 @@
12      <enum>TopToolBarArea</enum>
13     </attribute>
14     <attribute name="toolBarBreak" >
15      <bool>false</bool>
16     </attribute>
17 -   <addaction name="actionClose" />
18     <addaction name="actionReload" />
19    </widget>
20    <action name="actionClose" >
21     <property name="text" >
22      <string>Close</string>
diff --git a/hgviewlib/qt4/hgqv.ui b/hgviewlib/qt4/hgqv.ui
@@ -126,11 +126,10 @@
23      <enum>TopToolBarArea</enum>
24     </attribute>
25     <attribute name="toolBarBreak">
26      <bool>false</bool>
27     </attribute>
28 -   <addaction name="actionQuit"/>
29     <addaction name="actionRefresh"/>
30    </widget>
31    <widget class="QToolBar" name="toolBar_quickopen">
32     <property name="enabled">
33      <bool>true</bool>
diff --git a/hgviewlib/qt4/manifestviewer.ui b/hgviewlib/qt4/manifestviewer.ui
@@ -72,11 +72,10 @@
34      <enum>TopToolBarArea</enum>
35     </attribute>
36     <attribute name="toolBarBreak" >
37      <bool>false</bool>
38     </attribute>
39 -   <addaction name="actionClose" />
40    </widget>
41    <action name="actionClose" >
42     <property name="text" >
43      <string>Close</string>
44     </property>