#include "OB_ListItem.h"
#include "SalomeApp_Application.h"
#include "SalomeApp_ImportOperation.h"
-#include "LightApp_NameDlg.h"
#include "LightApp_SelectionMgr.h"
#include "SalomeApp_Study.h"
#include "SUIT_Desktop.h"
#include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
+#include <qinputdialog.h>
#include <qmenubar.h>
int SUPERVGUI::factory = 0;
if ( obj->FindAttribute(anAttr, "AttributeName") ) {
_PTR(AttributeName) aName ( anAttr );
QString nm = QString( aName->Value().c_str() );
- nm = LightApp_NameDlg::getName( application()->desktop(), nm );
- if ( !nm.isEmpty() ) {
+ bool ok;
+ nm = QInputDialog::getText( tr( "Rename" ), tr( "Enter new name:" ), QLineEdit::Normal,
+ nm, &ok, application()->desktop() );
+ if ( ok && !nm.isEmpty() ) {
// sak : 24.11.04 : fix for PAL6898 : if rename fails (study locked),
// a message box is displayed, and cursor is "wait cursor". We think that "wait cursor"
// is not neccessary here, because the rename operation is fast.