GUI: Renamed private variable minsizes

This commit is contained in:
Daniel Marjamäki 2018-06-18 14:15:13 +02:00
parent dbc19d6503
commit bae36bddd2
2 changed files with 8 additions and 8 deletions

View File

@ -4,7 +4,7 @@
LibraryEditArgDialog::LibraryEditArgDialog(QWidget *parent, const CppcheckLibraryData::Function::Arg &arg) : LibraryEditArgDialog::LibraryEditArgDialog(QWidget *parent, const CppcheckLibraryData::Function::Arg &arg) :
QDialog(parent), QDialog(parent),
mUi(new Ui::LibraryEditArgDialog), mUi(new Ui::LibraryEditArgDialog),
minsizes(arg.minsizes) mMinSizes(arg.minsizes)
{ {
mUi->setupUi(this); mUi->setupUi(this);
mUi->notbool->setChecked(arg.notbool); mUi->notbool->setChecked(arg.notbool);
@ -27,10 +27,10 @@ LibraryEditArgDialog::LibraryEditArgDialog(QWidget *parent, const CppcheckLibrar
mUi->minsize1type->clear(); mUi->minsize1type->clear();
mUi->minsize1type->addItems(items); mUi->minsize1type->addItems(items);
if (arg.minsizes.count() >= 1) { if (arg.minsizes.count() >= 1) {
mUi->minsize1type->setCurrentIndex(items.indexOf(minsizes[0].type)); mUi->minsize1type->setCurrentIndex(items.indexOf(mMinSizes[0].type));
mUi->minsize1arg->setValue(minsizes[0].arg.toInt()); mUi->minsize1arg->setValue(mMinSizes[0].arg.toInt());
if (arg.minsizes[0].type == "mul") if (arg.minsizes[0].type == "mul")
mUi->minsize1arg2->setValue(minsizes[0].arg2.toInt()); mUi->minsize1arg2->setValue(mMinSizes[0].arg2.toInt());
else else
mUi->minsize1arg2->setValue(0); mUi->minsize1arg2->setValue(0);
} else { } else {
@ -42,10 +42,10 @@ LibraryEditArgDialog::LibraryEditArgDialog(QWidget *parent, const CppcheckLibrar
mUi->minsize2type->clear(); mUi->minsize2type->clear();
mUi->minsize2type->addItems(items); mUi->minsize2type->addItems(items);
if (arg.minsizes.count() >= 2) { if (arg.minsizes.count() >= 2) {
mUi->minsize2type->setCurrentIndex(items.indexOf(minsizes[1].type)); mUi->minsize2type->setCurrentIndex(items.indexOf(mMinSizes[1].type));
mUi->minsize2arg->setValue(minsizes[1].arg.toInt()); mUi->minsize2arg->setValue(mMinSizes[1].arg.toInt());
if (arg.minsizes[1].type == "mul") if (arg.minsizes[1].type == "mul")
mUi->minsize2arg2->setValue(minsizes[1].arg2.toInt()); mUi->minsize2arg2->setValue(mMinSizes[1].arg2.toInt());
else else
mUi->minsize2arg2->setValue(0); mUi->minsize2arg2->setValue(0);
} else { } else {

View File

@ -25,7 +25,7 @@ private slots:
private: private:
Ui::LibraryEditArgDialog *mUi; Ui::LibraryEditArgDialog *mUi;
QList<CppcheckLibraryData::Function::Arg::MinSize> minsizes; QList<CppcheckLibraryData::Function::Arg::MinSize> mMinSizes;
}; };
#endif // LIBRARYEDITARGDIALOG_H #endif // LIBRARYEDITARGDIALOG_H