[qet] [1539] Title block template editor: percentage are now bound within 1-100 range |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 1539
Author: xavier
Date: 2012-02-27 19:31:47 +0100 (Mon, 27 Feb 2012)
Log Message:
-----------
Title block template editor: percentage are now bound within 1-100 range
Modified Paths:
--------------
branches/0.3/sources/titleblock/dimensionwidget.cpp
Modified: branches/0.3/sources/titleblock/dimensionwidget.cpp
===================================================================
--- branches/0.3/sources/titleblock/dimensionwidget.cpp 2012-02-27 18:20:33 UTC (rev 1538)
+++ branches/0.3/sources/titleblock/dimensionwidget.cpp 2012-02-27 18:31:47 UTC (rev 1539)
@@ -118,8 +118,6 @@
spinbox_label_ = new QLabel(tr("Largeur :", "default dialog label"));
spinbox_ = new QSpinBox();
- spinbox_ -> setMinimum(5);
- spinbox_ -> setMaximum(10000);
spinbox_ -> setValue(50);
// extra widgets, for the user to specify whether the value is absolute, relative, etc.
@@ -167,8 +165,12 @@
void TitleBlockDimensionWidget::updateSpinBoxSuffix() {
if (complete_ && dimension_type_ -> checkedId() != QET::Absolute) {
spinbox_ -> setSuffix(tr("%", "spinbox suffix when changing the dimension of a row/column"));
+ spinbox_ -> setMinimum(1);
+ spinbox_ -> setMaximum(100);
} else {
spinbox_ -> setSuffix(tr("px", "spinbox suffix when changing the dimension of a row/column"));
+ spinbox_ -> setMinimum(5);
+ spinbox_ -> setMaximum(10000);
}
spinbox_ -> selectAll();
}