Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F222
modification_propertyDelegates.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
fritzsck
Oct 12 2009, 9:18 AM
2009-10-12 09:18:51 (UTC+2)
Size
983 B
Referenced Files
None
Subscribers
None
modification_propertyDelegates.diff
View Options
Index: QmitkPropertyDelegate.cpp
===================================================================
--- QmitkPropertyDelegate.cpp (revision 19441)
+++ QmitkPropertyDelegate.cpp (working copy)
@@ -94,6 +94,7 @@
{
QSpinBox* spinBox = new QSpinBox(parent);
spinBox->setSingleStep(1);
+ spinBox->setRange(-100000,100000);
return spinBox;
}
// see qt documentation. cast is correct, it would be obsolete if we
@@ -101,13 +102,17 @@
else if(static_cast<QMetaType::Type>(data.type()) == QMetaType::Float)
{
QDoubleSpinBox* spinBox = new QDoubleSpinBox(parent);
- spinBox->setDecimals(2);
- spinBox->setSingleStep(0.1);
if(name == "opacity")
{
+ spinBox->setDecimals(2);
+ spinBox->setSingleStep(0.1);
spinBox->setMinimum(0.0);
spinBox->setMaximum(1.0);
}
+ else
+ {
+ spinBox->setMaximum(100000);
+ }
return spinBox;
}
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
213
Default Alt Text
modification_propertyDelegates.diff (983 B)
Attached To
Mode
T2107: Public Diffusion Module
Attached
Detach File
Event Timeline
fritzsck
added a comment.
Oct 12 2009, 9:18 AM
2009-10-12 09:18:51 (UTC+2)
Comment Actions
modification of property delegates
Log In to Comment