#include "SUPERVGUI_Information.h"
#include "SUPERVGUI_Library.h"
-#include "LightApp_NameDlg.h"
#include "SUIT_MessageBox.h"
#include "LogWindow.h"
#include "SUIT_Session.h"
+#include <qinputdialog.h>
+
SUPERVGUI_CanvasNode::SUPERVGUI_CanvasNode( SUIT_ResourceMgr* mgr, QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode, bool theIsCell):
QObject(theParent),
}
void SUPERVGUI_CanvasNode::rename() {
- QString aName = LightApp_NameDlg::getName( SUIT_Session::session()->activeApplication()->desktop(), myNode->Name() );
+ bool ok;
+ QString aName = QInputDialog::getText( tr( "Rename" ), tr( "Enter new name:" ), QLineEdit::Normal,
+ myNode->Name(), &ok, SUIT_Session::session()->activeApplication()->desktop() );
+
//mkr : modifications for fixing bug IPAL9972
- if (!aName.isEmpty() && aName.compare( myNode->Name() ) != 0) {
+ if( ok && !aName.isEmpty() && aName.compare( myNode->Name() ) != 0) {
setNodeName(aName);
}
}