save/restore collapsed state
git-svn-id: svn://db.shs.com.ru/libs@16 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -1044,10 +1044,10 @@ void Graphic::setRectToLines() {
|
||||
line_x_min.is_auto = line_x_max.is_auto = line_y_min.is_auto = line_y_max.is_auto = true;
|
||||
//qDebug() << "set to lines" << selrect;
|
||||
line_x_min.is_reset = line_x_max.is_reset = line_y_min.is_reset = line_y_max.is_reset = isFit;
|
||||
line_x_min.setValue(selrect.left());
|
||||
line_x_max.setValue(selrect.right());
|
||||
line_y_min.setValue(selrect.bottom());
|
||||
line_y_max.setValue(selrect.top());
|
||||
if (!line_x_min.hasFocus()) line_x_min.setValue(selrect.left());
|
||||
if (!line_x_max.hasFocus()) line_x_max.setValue(selrect.right());
|
||||
if (!line_y_min.hasFocus()) line_y_min.setValue(selrect.bottom());
|
||||
if (!line_y_max.hasFocus()) line_y_max.setValue(selrect.top());
|
||||
if (!isFit) {
|
||||
line_x_min.setDefaultText(QString::number(grect.left()).toUpper());
|
||||
line_x_max.setDefaultText(QString::number(grect.right()).toUpper());
|
||||
|
||||
Reference in New Issue
Block a user