[utilities/konsole] src/settings: Add ability to put tabbar on the sides of the view (left/right)

Kurt Hindenburg null at kde.org
Mon Apr 8 18:56:30 BST 2024


Git commit c1149f4201200c8d3315ff4766b6306207541389 by Kurt Hindenburg, on behalf of Tomaz Canabrava.
Committed on 08/04/2024 at 17:56.
Pushed by hindenburg into branch 'master'.

Add ability to put tabbar on the sides of the view  (left/right)

FEATURE:
GUI:

M  +66   -14   src/settings/TabBarSettings.ui
M  +2    -0    src/settings/konsole.kcfg

https://invent.kde.org/utilities/konsole/-/commit/c1149f4201200c8d3315ff4766b6306207541389

diff --git a/src/settings/TabBarSettings.ui b/src/settings/TabBarSettings.ui
index fb3649c97..2d48b614a 100644
--- a/src/settings/TabBarSettings.ui
+++ b/src/settings/TabBarSettings.ui
@@ -134,6 +134,26 @@
           </widget>
          </item>
          <item row="6" column="1" colspan="2">
+          <widget class="QRadioButton" name="Left">
+           <property name="text">
+            <string>To the left of terminal area</string>
+           </property>
+           <attribute name="buttonGroup">
+            <string notr="true">kcfg_TabBarPosition</string>
+           </attribute>
+          </widget>
+         </item>
+         <item row="7" column="1" colspan="2">
+          <widget class="QRadioButton" name="Right">
+           <property name="text">
+            <string>To the &right of terminal area</string>
+           </property>
+           <attribute name="buttonGroup">
+            <string notr="true">kcfg_TabBarPosition</string>
+           </attribute>
+          </widget>
+         </item>
+         <item row="8" column="1" colspan="2">
           <spacer>
            <property name="orientation">
             <enum>Qt::Vertical</enum>
@@ -149,7 +169,7 @@
            </property>
           </spacer>
          </item>
-         <item row="7" column="0" alignment="Qt::AlignRight">
+         <item row="9" column="0" alignment="Qt::AlignRight">
           <widget class="QLabel" name="showCloseTabButtonLabel">
            <property name="text">
             <string>Show Close Tab button:</string>
@@ -159,17 +179,17 @@
            </property>
           </widget>
          </item>
-         <item row="7" column="1" colspan="2">
+         <item row="10" column="1" colspan="2">
           <widget class="QRadioButton" name="OnEachTab">
            <property name="text">
-            <string>&On each tab</string>
+            <string>On ea&ch tab</string>
            </property>
            <attribute name="buttonGroup">
             <string notr="true">kcfg_CloseTabButton</string>
            </attribute>
           </widget>
          </item>
-         <item row="8" column="1" colspan="2">
+         <item row="11" column="1" colspan="2">
           <widget class="QRadioButton" name="OnTabBar">
            <property name="text">
             <string>On &the tab bar</string>
@@ -179,7 +199,7 @@
            </attribute>
           </widget>
          </item>
-         <item row="9" column="1" colspan="2">
+         <item row="12" column="1" colspan="2">
           <widget class="QRadioButton" name="None">
            <property name="text">
             <string comment="Do not show a close button">None</string>
@@ -189,7 +209,7 @@
            </attribute>
           </widget>
          </item>
-         <item row="10" column="1" colspan="2">
+         <item row="13" column="1" colspan="2">
           <spacer>
            <property name="orientation">
             <enum>Qt::Vertical</enum>
@@ -205,7 +225,7 @@
            </property>
           </spacer>
          </item>
-         <item row="11" column="0">
+         <item row="14" column="0">
           <widget class="QLabel" name="miscellaneousAppearanceLabel">
            <property name="text">
             <string comment="@item:intext Miscellaneous Options">Miscellaneous:</string>
@@ -215,28 +235,28 @@
            </property>
           </widget>
          </item>
-         <item row="11" column="1" colspan="2">
+         <item row="15" column="1" colspan="2">
           <widget class="QCheckBox" name="kcfg_NewTabButton">
            <property name="text">
             <string>Show 'New Tab' button</string>
            </property>
           </widget>
          </item>
-         <item row="12" column="1" colspan="2">
+         <item row="16" column="1" colspan="2">
           <widget class="QCheckBox" name="kcfg_ExpandTabWidth">
            <property name="text">
             <string>Expand individual tab widths to full window</string>
            </property>
           </widget>
          </item>
-         <item row="13" column="1" colspan="2">
+         <item row="17" column="1" colspan="2">
           <widget class="QCheckBox" name="kcfg_TabBarUseUserStyleSheet">
            <property name="text">
             <string>Use user-defined stylesheet:</string>
            </property>
           </widget>
          </item>
-         <item row="14" column="1">
+         <item row="18" column="1">
           <spacer>
            <property name="orientation">
             <enum>Qt::Horizontal</enum>
@@ -252,7 +272,7 @@
            </property>
           </spacer>
          </item>
-         <item row="14" column="2">
+         <item row="19" column="2">
           <widget class="KUrlRequester" name="kcfg_TabBarUserStyleSheetFile">
            <property name="enabled">
             <bool>false</bool>
@@ -643,6 +663,38 @@
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>AlwaysHideTabBar</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>Left</receiver>
+   <slot>setDisabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>20</x>
+     <y>20</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>20</x>
+     <y>20</y>
+    </hint>
+   </hints>
+  </connection>
+  <connection>
+   <sender>AlwaysHideTabBar</sender>
+   <signal>toggled(bool)</signal>
+   <receiver>Right</receiver>
+   <slot>setDisabled(bool)</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>20</x>
+     <y>20</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>20</x>
+     <y>20</y>
+    </hint>
+   </hints>
+  </connection>
   <connection>
    <sender>AlwaysHideTabBar</sender>
    <signal>toggled(bool)</signal>
@@ -726,10 +778,10 @@
  </connections>
  <buttongroups>
   <buttongroup name="kcfg_SplitDragHandleSize"/>
-  <buttongroup name="kcfg_TabBarVisibility"/>
   <buttongroup name="kcfg_TabBarPosition"/>
+  <buttongroup name="kcfg_SplitViewVisibility"/>
   <buttongroup name="kcfg_CloseTabButton"/>
+  <buttongroup name="kcfg_TabBarVisibility"/>
   <buttongroup name="kcfg_NewTabBehavior"/>
-  <buttongroup name="kcfg_SplitViewVisibility"/>
  </buttongroups>
 </ui>
diff --git a/src/settings/konsole.kcfg b/src/settings/konsole.kcfg
index 00773635f..e1c82aa60 100644
--- a/src/settings/konsole.kcfg
+++ b/src/settings/konsole.kcfg
@@ -125,6 +125,8 @@
       <choices>
         <choice name="Top" />
         <choice name="Bottom" />
+        <choice name="Left" />
+        <choice name="Right" />
       </choices>
       <default>Top</default>
     </entry>


More information about the kde-doc-english mailing list