]> SALOME platform Git repositories - tools/hxx2salome.git/commitdiff
Salome HOME
Migrate to Qt 4 BR_QT4 V5_1_0
authorvsr <vsr@opencascade.com>
Tue, 16 Dec 2008 12:43:39 +0000 (12:43 +0000)
committervsr <vsr@opencascade.com>
Tue, 16 Dec 2008 12:43:39 +0000 (12:43 +0000)
src/hxx2salome.cpp

index 480a687edabb72c12f3450ebec38e0aa3bcbceb1..1640666118b1c109fb8e38ab38a7a250eda18d2b 100644 (file)
@@ -187,6 +187,7 @@ void HXX2Salome::on_GenerateButton_clicked()
                           tr( "Component C++ include file is specified in directory other than\n%1!" ).arg( CppDir ) );
     return;
   }
+  CppInc = QFileInfo( CppInc ).fileName();
 
   QString CppLib = LibraryText->text().trimmed();
   if ( CppLib.isEmpty() ) {
@@ -202,6 +203,7 @@ void HXX2Salome::on_GenerateButton_clicked()
                           tr( "Component shared library is specified in directory other than\n%1!" ).arg( CppDir ) );
     return;
   }
+  CppLib = QFileInfo( CppLib ).fileName();
 
   QString SalomeDir = OutputTreeText->text().trimmed();
   QFileInfo fis( SalomeDir.isEmpty() ? QString( "." ) : SalomeDir );