This commit is contained in:
leozide
2017-04-20 18:56:35 -07:00
parent 0381a0c74f
commit a219c281f2
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ void lcGroup::CreateName(const lcArray<lcGroup*>& Groups)
if (Name.startsWith(Prefix))
{
bool Ok = false;
int GroupNumber = Name.midRef(Length).toInt(&Ok);
int GroupNumber = Name.mid(Length).toInt(&Ok);
if (Ok && GroupNumber > Max)
Max = GroupNumber;
}
+1 -1
View File
@@ -1791,7 +1791,7 @@ QString lcModel::GetGroupName(const QString& Prefix)
if (Name.startsWith(Prefix))
{
bool Ok = false;
int GroupNumber = Name.midRef(Length).toInt(&Ok);
int GroupNumber = Name.mid(Length).toInt(&Ok);
if (Ok && GroupNumber > Max)
Max = GroupNumber;
}
+1 -1
View File
@@ -57,7 +57,7 @@ public:
virtual QVariant headerData(int Section, Qt::Orientation Orientation, int Role = Qt::DisplayRole) const;
virtual Qt::ItemFlags flags(const QModelIndex& Index) const;
PieceInfo* GetPieceInfo(QModelIndex Index) const
PieceInfo* GetPieceInfo(const QModelIndex& Index) const
{
return Index.isValid() ? mParts[Index.row()].first : nullptr;
}
+1 -1
View File
@@ -423,7 +423,7 @@ bool lcQPreferencesDialog::eventFilter(QObject *object, QEvent *event)
return true;
}
return false;
return QDialog::eventFilter(object, event);
}
void lcQPreferencesDialog::updateCommandList()