changeset 160:5b9eef133263

Added test code for the system locale recognition. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@363 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Fri, 01 Jun 2007 14:37:21 +0000
parents ad3424c9868d
children 3a74ecbaa072
files src/aboutdialog.cpp src/aboutdialog.h
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/aboutdialog.cpp	Fri Jun 01 14:04:13 2007 +0000
+++ b/src/aboutdialog.cpp	Fri Jun 01 14:37:21 2007 +0000
@@ -48,7 +48,7 @@
     textEdit->setHtml(gplText);
 	*/
 	textEdit->hide();
-	label_2->hide();
+    label_2->setText( "The System Locale is : " + QLocale::system().name() );
     connect( textBrowser, SIGNAL(anchorClicked (const QUrl)), this, SLOT(linkClicked(const QUrl)) );
     textBrowserSavedContent = textBrowser->toHtml();
 
@@ -79,6 +79,7 @@
 		
 		//TODO: Setting the whole GPL here slows down the program too much. Should write something else.
         //textEdit->setHtml(gplText);
+        label_2->setText( "The System Locale is : " + QLocale::system().name() );
 
         QString versionString = textBrowser_2->toHtml();
         versionString = versionString.arg(version).arg(revision).arg(buildDate);
--- a/src/aboutdialog.h	Fri Jun 01 14:04:13 2007 +0000
+++ b/src/aboutdialog.h	Fri Jun 01 14:37:21 2007 +0000
@@ -25,6 +25,9 @@
 #include <QDesktopServices>
 #include "ui_aboutdialog.h"
 
+#include <QLocale>
+
+
 class AboutDialog : public QDialog, private Ui::AboutDialog
 {
     Q_OBJECT