Qt4 fix.
This commit is contained in:
+1
-1
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -423,7 +423,7 @@ bool lcQPreferencesDialog::eventFilter(QObject *object, QEvent *event)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return QDialog::eventFilter(object, event);
|
||||
}
|
||||
|
||||
void lcQPreferencesDialog::updateCommandList()
|
||||
|
||||
Reference in New Issue
Block a user