Here two patch:
- mainwindow_cpp.diff: Try to make reload/stop button size fixed when text 
along 
size icons in toolbar.

It's not perfect, as you can see, i hard code "     " string to this to work, 
don't know how to get extra space in QAction widget :(

-rekonq_fr_po.diff: Fix translation to be coherent with other Kde apps.

Cédric
--- mainwindow.cpp.orig	2010-03-13 16:26:15.475749145 +0100
+++ mainwindow.cpp	2010-03-13 16:22:57.709158702 +0100
@@ -202,6 +202,23 @@
         
         ReKonfig::setFirstExecution(false);
     }
+    else if (m_mainBar->toolButtonStyle() == Qt::ToolButtonTextBesideIcon)
+    {
+        QFont font = m_stopReloadAction->font();
+        QFontMetrics fm(font);
+        float stop_reloadWidth;
+        float iconWidth = m_mainBar->iconSize().width();
+        if (fm.width(i18n("Reload")) > fm.width(i18n("Stop")))
+        {
+            stop_reloadWidth = fm.width("    "+ i18n("Reload")) + iconWidth;
+        }
+        else
+        {
+            stop_reloadWidth = fm.width("    " + i18n("Stop")) + iconWidth;
+        }
+        QWidget *widget =  m_mainBar->widgetForAction(m_stopReloadAction);
+        widget->setFixedWidth(stop_reloadWidth);
+    }
 }
 
 
--- rekonq_fr.po.orig	2010-03-13 16:27:17.453209120 +0100
+++ rekonq_fr.po	2010-03-13 16:25:04.962386051 +0100
@@ -228,7 +228,7 @@
 
 #: mainwindow.cpp:293 mainwindow.cpp:981
 msgid "Reload"
-msgstr "Rechargement"
+msgstr "Recharger"
 
 #: mainwindow.cpp:298
 msgid "&Stop"
@@ -416,7 +416,7 @@
 
 #: mainwindow.cpp:980
 msgid "Reload the current page"
-msgstr "Rechargement la page actuelle"
+msgstr "Recharger la page actuelle"
 
 #: protocolhandler.cpp:208
 #, kde-format
_______________________________________________
rekonq mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/rekonq

Reply via email to