From: isn Date: Thu, 9 Nov 2017 14:24:18 +0000 (+0300) Subject: lost icon for dummy3d X-Git-Tag: v2.1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb5f46443914de2b37fc8577d13fdf7a016f4ad7;p=modules%2Fhydro.git lost icon for dummy3d --- diff --git a/src/HYDROGUI/HYDROGUI_DataObject.cxx b/src/HYDROGUI/HYDROGUI_DataObject.cxx index 116afcc2..a616edec 100644 --- a/src/HYDROGUI/HYDROGUI_DataObject.cxx +++ b/src/HYDROGUI/HYDROGUI_DataObject.cxx @@ -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() ) { diff --git a/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx b/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx index c20841a2..92559c7b 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileDlg.cxx @@ -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