summaryrefslogtreecommitdiffstats
path: root/resizeuihelper.cpp
diff options
context:
space:
mode:
authorRoopesh Chander <roop@forwardbias.in>2009-10-29 19:24:59 +0530
committerRoopesh Chander <roop@forwardbias.in>2009-10-29 19:24:59 +0530
commitbeab27f6a906d6556b9b229e1565dd0b47a4186d (patch)
tree6c7efbffb53c0a5d46344ae54087336c0c4ce227 /resizeuihelper.cpp
parent3cc54f83ff44e0ffd17713ab8c9c2c458dc2fb1e (diff)
resizing of a scrap after it's added
Diffstat (limited to 'resizeuihelper.cpp')
-rw-r--r--resizeuihelper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/resizeuihelper.cpp b/resizeuihelper.cpp
index 0c8d0f7..5719098 100644
--- a/resizeuihelper.cpp
+++ b/resizeuihelper.cpp
@@ -66,6 +66,11 @@ bool ResizeUiHelper::resizeGripEnabled(GripId grip) const {
return m_gripsEnabled[int(grip)];
}
+void ResizeUiHelper::setAllResizeGripsEnabled(bool enabled) {
+ for (int i = int(ResizeUiHelper::TopLeft); i <= int(ResizeUiHelper::Left); i++)
+ setResizeGripEnabled(GripId(i), enabled);
+}
+
void ResizeUiHelper::setGripSize(QSizeF sz) {
m_gripSize = sz;
}