[Uml-devel] branches/work/soc-umbrello/umbrello
Ralf Habacker
Ralf.Habacker at freenet.de
Sat Jul 12 17:54:02 UTC 2008
SVN commit 831435 by habacker:
fixed win32 msvc error C2864: only static const integral data members can be initialized within a class
M +3 -0 floatingtextwidget.cpp
M +2 -2 floatingtextwidget.h
--- branches/work/soc-umbrello/umbrello/floatingtextwidget.cpp #831434:831435
@@ -38,7 +38,10 @@
#include "cmds.h"
#include "umlscene.h"
+qreal FloatingTextWidget::restrictPositionMin = 0;
+qreal FloatingTextWidget::restrictPositionMax = 3000;
+
FloatingTextWidget::FloatingTextWidget(UMLScene * scene, Uml::Text_Role role,
const QString& text, Uml::IDType id)
: NewUMLRectWidget(scene, id)//, new FloatingTextWidgetController(this))
--- branches/work/soc-umbrello/umbrello/floatingtextwidget.h #831434:831435
@@ -48,8 +48,8 @@
=> if x or y is outside of interval, the position is reset
( e.g. by AssociationWidget::resetTextPositions() )
*/
- static const qreal restrictPositionMin = 0;
- static const qreal restrictPositionMax = 3000;
+ static const qreal restrictPositionMin;
+ static const qreal restrictPositionMax;
/**
More information about the umbrello-devel
mailing list