X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetEditor.h;h=43d9c099b8421527768fa40848fba5a599d4ad7c;hb=ced1c42d80f02b1efa749ecdf35e620dcca4d9cc;hp=8f494b366decf324104319c0fbc82f85658b219c;hpb=868158fe6d39b25e60ac528295b1c908821e4af5;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetEditor.h b/src/ModuleBase/ModuleBase_WidgetEditor.h index 8f494b366..43d9c099b 100644 --- a/src/ModuleBase/ModuleBase_WidgetEditor.h +++ b/src/ModuleBase/ModuleBase_WidgetEditor.h @@ -43,11 +43,12 @@ Q_OBJECT /// \return the state whether the widget can accept the focus virtual bool focusTo(); - /// Shous popup window under cursor for data editing - void showPopupEditor(); + /// Shous popup window under cursor for data editing + /// \param theSendSignals a flag whether the signals should be sent or the value + /// is to be applyed directly + void showPopupEditor(const bool theSendSignals = true); -protected slots: - void onKeyReleased(QKeyEvent* theEvent); + void setCursorPosition(const int theX, const int theY); private: void editedValue(double& outValue, QString& outText); @@ -59,7 +60,7 @@ private: ///< the kinds of possible features QStringList myFeatureKinds; - bool myIsKeyReleasedEmitted; + int myXPosition, myYPosition; }; #endif