r17575 by craig - #10569: Set Prefs list widget width a little larger if GUI is in Japanese

scribus-commit scribus-commit at lists.scribus.net
Sun Jun 17 11:08:28 UTC 2012


Author: craig
Date: Sun Jun 17 11:08:28 2012
New Revision: 17575

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17575
Log:
#10569: Set Prefs list widget width a little larger if GUI is in Japanese

Modified:
    branches/Version14x/Scribus/scribus/prefsdialogbase.cpp

Modified: branches/Version14x/Scribus/scribus/prefsdialogbase.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17575&path=/branches/Version14x/Scribus/scribus/prefsdialogbase.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/prefsdialogbase.cpp (original)
+++ branches/Version14x/Scribus/scribus/prefsdialogbase.cpp Sun Jun 17 11:08:28 2012
@@ -22,8 +22,10 @@
 
 #include "commonstrings.h"
 #include "prefsmanager.h"
-
+#include "scribusapp.h"
 #include "util_icon.h"
+
+extern ScribusQApp* ScQApp;
 
 OptionListWidget::OptionListWidget(QWidget* parent) : QListWidget(parent)
 {
@@ -49,6 +51,8 @@
 void OptionListWidget::arrangeIcons()
 {
 	int maxWidth = 0;
+	if (ScQApp->currGUILanguage()=="ja")
+		maxWidth=200;
 	setWrapping(false);
 	QListWidgetItem* ic;
 	int startY = 5;




More information about the scribus-commit mailing list