]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix the encoding of French translation files
authorgdd <gdd>
Wed, 11 May 2011 09:26:44 +0000 (09:26 +0000)
committergdd <gdd>
Wed, 11 May 2011 09:26:44 +0000 (09:26 +0000)
Fix compilation issue and warnings with gcc-4.6

src/Qtx/Qtx.cxx
src/SVTK/resources/SVTK_msg_fr.ts
src/SalomeApp/resources/SalomeApp_msg_fr.ts
src/Style/Style_Salome.cxx

index be27d4238ce9ca51495db2ccd15381970a2acc51..f88901df6bed119b1cdb74c742020eccbfe03eb0 100755 (executable)
@@ -45,6 +45,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#include <clocale>
 
 /*!
   \class Qtx
index 5a1ecfcd1103b8915c2958e3503d042551b734ee..c8c8d6bd89fce93ecd77cb9f3e8ae606d581a922 100755 (executable)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="iso-8859-1"?>
 <!DOCTYPE TS>
 <TS version="2.0" language="fr_FR">
 <context>
index bd32ec20880270f0259845058ce4b23e3d13fa6f..3f9cc9cf18bc5aa71b6a39146320e3a5f9ef0c34 100755 (executable)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="iso-8859-1"?>
 <!DOCTYPE TS>
 <TS version="2.0" language="fr_FR">
 <context>
index 7d25eb93e64ea2fb148342ee8c8274e36f07346f..80284fd0311c2283b39c66f25cc293f7cac2c840 100644 (file)
@@ -435,7 +435,6 @@ void Style_Salome::drawComplexControl( ComplexControl cc, const QStyleOptionComp
           Style_Tools::shadowRect( p, aBtnRect, aRad, 0.0, SHADOW, Style_Tools::Right,
                                   aBtnCol.light( BUT_PERCENT_COL ), aBtnCol.dark( BUT_PERCENT_COL ),
                                   aBrdTopCol, aBrdBotCol, antialized, true, aStateOn );
-        State flags = State_None;
         QStyleOptionSpinBox copy;
         PrimitiveElement pe;
         if (spin->subControls & SC_SpinBoxUp) {
@@ -1447,7 +1446,6 @@ void Style_Salome::drawControl( ControlElement ce, const QStyleOption* opt,
           QColor top =    aColor.light( BUT_PERCENT_ON ),
                  bottom = aColor.dark( BUT_PERCENT_ON );
           QColor aBrdTopCol = model()->color( Style_Model::BorderTop );    // Style_Model::border_top_clr
-          QColor aBrdBotCol = model()->color( Style_Model::BorderBottom ); // Style_Model::border_bot_clr
           QRect r = opt->rect;
           QPainterPath path = Style_Tools::roundRect( r, aRad,
                                                       Style_Tools::All );
@@ -1822,7 +1820,6 @@ void Style_Salome::drawPrimitive( PrimitiveElement pe, const QStyleOption* opt,
       gr.setColorAt( 0.0, aBgCol.light( BUT_PERCENT_ON ) );
       gr.setColorAt( 1.0, aBgCol );
       p->fillRect( r, gr );
-      QRect aRect = QRect( r.x(), r.y(), r.width(), r.height() );
       drawHandle( p, r, horiz, false );
       p->restore();
       break;
@@ -1853,8 +1850,6 @@ void Style_Salome::drawPrimitive( PrimitiveElement pe, const QStyleOption* opt,
         if ( tabBar )
           isLast = tabBar->currentIndex() == tabBar->count() -1;
         QColor aColor = opt->palette.color( QPalette::Window );
-        QColor aBrdTopCol = model()->color( Style_Model::TabBorderTop );    // Style_Model::border_tab_top_clr
-        QColor aBrdBotCol = model()->color( Style_Model::TabBorderBottom ); // Style_Model::border_tab_bot_clr
         bool isHover = hasHover() && (opt->state & State_Enabled) &&
                                      (opt->state & State_MouseOver);
         QPainterPath aSelPath = Style_Tools::tabRect( p, aSelRect, (int)tbb->shape,