Use Widget::layout() instead of Widget::setBounds(getBounds).

This commit is contained in:
David Capello 2011-03-08 23:23:13 -03:00
parent f36a0f22b1
commit e0edf5625f
2 changed files with 2 additions and 2 deletions

View File

@ -627,7 +627,7 @@ void PaletteEntryEditor::selectColorType(Color::Type type)
case Color::HsvType: m_hsvButton.setSelected(true); break;
}
m_vbox.setBounds(m_vbox.getBounds()); // TODO add Widget::relayout member function
m_vbox.layout();
m_vbox.invalidate();
}

View File

@ -191,6 +191,6 @@ void ColorSelector::selectColorType(Color::Type type)
case Color::MaskType: m_maskButton.setSelected(true); break;
}
m_vbox.setBounds(m_vbox.getBounds()); // TODO add Widget::relayout member function
m_vbox.layout();
m_vbox.invalidate();
}