Salome HOME
updated copyright message
[modules/gui.git] / src / Qtx / QtxWorkstackAction.cxx
index 92205bc947312e5fdb1453055dd87173fd16d56c..a2edb6bb48cd4d6a3d21fad8b1e1dbc907f2befc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -203,7 +203,7 @@ int QtxWorkstackAction::accel( const int id ) const
 {
   int a = 0;
   if ( action( id ) )
-    a = action( id )->shortcut();
+    a = action( id )->shortcut()[0];
   return a;
 }
 
@@ -297,7 +297,7 @@ void QtxWorkstackAction::setStatusTip( const int id, const QString& txt )
   \brief Process action activated by the user.
   \param type action ID
 */
-void QtxWorkstackAction::perform( const int type )
+void QtxWorkstackAction::perform( const int /*type*/ )
 {
   /*
   switch ( type )
@@ -524,12 +524,12 @@ QtxSplitDlg::QtxSplitDlg( QWidget* parent, QtxWorkstack* workstack, QtxSplitDlgM
 
   // Buttons for possibility of switching the variants of split
   myButtonPrevious = new QPushButton( this );
-  myButtonPrevious->setIcon( QIcon( prev_xpm ) );
+  myButtonPrevious->setIcon( QPixmap( prev_xpm ) );
   myButtonPrevious->setAutoDefault(true);
   myButtonPrevious->setEnabled( false );
 
   myButtonNext = new QPushButton( this );
-  myButtonNext->setIcon( QIcon( next_xpm ) );
+  myButtonNext->setIcon( QPixmap( next_xpm ) );
   myButtonNext->setAutoDefault(true);
   myButtonNext->setEnabled( false );
 
@@ -853,7 +853,7 @@ void QtxSplitDlg::onComboBoxChanged( int theItem )
   }
   for( int i = 0; i < 4; i++ ) {
     if( myComboBox[i] != aSender ) {
-      ViewMode aNewMode;
+      ViewMode aNewMode = XYZ;
       if( myMapComboBoxMode[myComboBox[i]] == (ViewMode)(theItem) ) {
         for( int j = 0; j < 4; j++ )
           if( !aModeEnabledMap[(ViewMode)j] )