Correction for the property panel controls. The repaint() call.
Test case: Activate sketch operation, activate line creation, select first point, move it. The property control spin boxes should be updated immediatelly by the mouse move. Without repaint, the controls are updated with a delay.
void Events_Error::send(std::string theDescription, const void* theSender)
{
- Events_Error::send(theDescription.c_str(), theSender);
+ Events_Error::send((char*)theDescription.c_str(), theSender);
}
foreach(ModuleBase_ModelWidget* eachWidget, myWidgets) {
eachWidget->restoreValue(theFeature);
}
+ // the repaint is used here to immediatelly react in GUI to the values change.
+ repaint();
}
#ifndef XGUI_PROPERTYPANEL_H_
#define XGUI_PROPERTYPANEL_H_
+#include "XGUI.h"
+
#include <ModuleBase_ModelWidget.h>
#include <QDockWidget>
#include <QList>
-class XGUI_PropertyPanel: public QDockWidget
+class XGUI_EXPORT XGUI_PropertyPanel: public QDockWidget
{
Q_OBJECT
public: