Change from isLegalSize to isValidSize.

This commit is contained in:
Chantara Tith 2016-07-18 01:22:42 +07:00 committed by Andrius Štikonas
parent e437c46d45
commit 7f50dbaf4d
2 changed files with 5 additions and 5 deletions

View File

@ -104,7 +104,7 @@ void VolumeDialog::setupConstraints()
void VolumeDialog::updateOkButtonStatus()
{
bool enable = isLegeSize();
bool enable = isValidSize();
if (dialogWidget().vgName().text().isEmpty()) {
enable = false;
@ -154,7 +154,7 @@ void VolumeDialog::updateSizeInfos()
dialogWidget().totalLV().setText(QString::number(totalLV));
//Probably a bad design for updating state here; the state should be changed inside the update button function.
m_IsLegalSize = totalSize > totalUsedSize;
m_IsValidSize = totalSize > totalUsedSize;
updateOkButtonStatus();
}

View File

@ -75,8 +75,8 @@ protected:
return m_TargetPVList;
}
bool isLegeSize() const {
return m_IsLegalSize;
bool isValidSize() const {
return m_IsValidSize;
}
protected:
@ -86,7 +86,7 @@ protected:
VolumeWidget* m_DialogWidget;
QString& m_TargetName;
QStringList& m_TargetPVList;
bool m_IsLegalSize;
bool m_IsValidSize;
QDialogButtonBox* dialogButtonBox;
QPushButton* okButton;