Change from isLegalSize to isValidSize.
This commit is contained in:
parent
e437c46d45
commit
7f50dbaf4d
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue