Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8d0c572
)
It is recommended to use standard Qt QInputDialog instead QtxNameDlg
author
asl
<asl@opencascade.com>
Mon, 28 Nov 2005 09:22:22 +0000
(09:22 +0000)
committer
asl
<asl@opencascade.com>
Mon, 28 Nov 2005 09:22:22 +0000
(09:22 +0000)
src/SMESHGUI/SMESHGUI.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI.cxx
b/src/SMESHGUI/SMESHGUI.cxx
index e13acafd339df6d027b1ba45db26e146ea4ca8fc..922b55bc7f1fd8f556858395b4dde6292adc96c4 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI.cxx
+++ b/
src/SMESHGUI/SMESHGUI.cxx
@@
-81,7
+81,6
@@
#include "SalomeApp_Tools.h"
#include "SalomeApp_Study.h"
#include "SalomeApp_Tools.h"
#include "SalomeApp_Study.h"
-#include "LightApp_NameDlg.h"
#include "LightApp_DataOwner.h"
#include "SalomeApp_Application.h"
#include "LightApp_Preferences.h"
#include "LightApp_DataOwner.h"
#include "SalomeApp_Application.h"
#include "LightApp_Preferences.h"
@@
-126,6
+125,7
@@
#include <qstring.h>
#include <qwidget.h>
#include <qaction.h>
#include <qstring.h>
#include <qwidget.h>
#include <qaction.h>
+#include <qinputdialog.h>
// BOOST Includes
#include <boost/shared_ptr.hpp>
// BOOST Includes
#include <boost/shared_ptr.hpp>
@@
-1783,8
+1783,10
@@
bool SMESHGUI::OnGUIEvent( int theCommandID )
{
aName = anAttr;
QString newName = QString(aName->Value().c_str());
{
aName = anAttr;
QString newName = QString(aName->Value().c_str());
- newName = LightApp_NameDlg::getName( desktop(), newName );
- if ( !newName.isEmpty() )
+ bool ok;
+ newName = QInputDialog::getText( tr( "Rename" ), tr( "Enter new name:" ), QLineEdit::Normal,
+ newName, &ok, desktop() );
+ if ( ok && !newName.isEmpty() )
{
//old source: aStudy->renameIObject( IObject, newName );
aName->SetValue( newName.latin1() );
{
//old source: aStudy->renameIObject( IObject, newName );
aName->SetValue( newName.latin1() );