Salome HOME
lost icon for dummy3d
authorisn <isn@opencascade.com>
Thu, 9 Nov 2017 14:24:18 +0000 (17:24 +0300)
committerisn <isn@opencascade.com>
Thu, 9 Nov 2017 14:24:18 +0000 (17:24 +0300)
src/HYDROGUI/HYDROGUI_DataObject.cxx
src/HYDROGUI/HYDROGUI_ProfileDlg.cxx

index 116afcc2ee641cd2b2aa1a816ef9c668384788b3..a616edec298e9d015af926a8b781b1eea61e37f2 100644 (file)
@@ -175,6 +175,7 @@ QPixmap HYDROGUI_DataObject::icon( const int theId ) const
         Handle(HYDROData_Object) aFatherObj = anObject3D->GetObject();
         if ( !aFatherObj.IsNull() )
           anObjectKind = aFatherObj->GetKind();
+        anIcon = QObject::tr( QString("HYDRO_%1TYPE%2_ICO").arg( aNeedUpdate ).arg( anObjectKind ).toLatin1() );
       }
       else if ( !anObject.IsNull() )
       {
index c20841a241f0df0b6fa9f7c0025d592435bbfdde..92559c7b6397befb24b75a905286b711cedfce01 100644 (file)
@@ -80,8 +80,8 @@ HYDROGUI_ProfileDlg::HYDROGUI_ProfileDlg( HYDROGUI_Module* theModule, const QStr
     //myProfileNames->setInsertPolicy(QComboBox::InsertPolicy::NoInsert);
     name_layout->addWidget(myProfileNames);
     //
-    myAddProfBtn = new QPushButton("Add Profile(s)", this);    
-    myRemProfBtn = new QPushButton("Remove Profile(s)", this);
+    myAddProfBtn = new QPushButton(tr("ADD_PROFILES"), this);    
+    myRemProfBtn = new QPushButton(tr("REMOVE_PROFILE"), this);
     name_layout->addWidget(myAddProfBtn);
     name_layout->addWidget(myRemProfBtn);
   }
@@ -346,7 +346,7 @@ void HYDROGUI_ProfileDlg::onProfileNameChanged(QListWidgetItem* item)
     if (names.contains(curText))
     {
       QString mes = tr( "PROFILE_ALREADY_EXISTS" );
-      QString title = tr( "PROFILEOP_WARNING" );
+      QString title = tr( "PROFILEDLG_WARNING" );
 #ifndef TEST_MODE
       SUIT_MessageBox::warning( module()->getApp()->desktop(), title, mes );
 #endif