mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-29 23:25:59 +00:00
Update indentation of tiles_model::data to match coding standard use of tabs.
This commit is contained in:
parent
f0977f7d12
commit
7face10cc4
1 changed files with 6 additions and 7 deletions
|
@ -53,10 +53,10 @@ tiles_model::tiles_model(QObject *parent)
|
|||
|
||||
QVariant tiles_model::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (!index.isValid())
|
||||
return QVariant();
|
||||
if (!index.isValid())
|
||||
return QVariant();
|
||||
|
||||
if (role == Qt::DecorationRole || role == Qt::UserRole)
|
||||
if (role == Qt::DecorationRole || role == Qt::UserRole)
|
||||
{
|
||||
CTile_Widget wiwi;
|
||||
wiwi.initWidget(tiles.value(index.row()).getPixmap(), tiles.value(index.row()).getPixmapSide(), tiles.value(index.row()).getTileLabel());
|
||||
|
@ -67,18 +67,17 @@ QVariant tiles_model::data(const QModelIndex &index, int role) const
|
|||
#endif
|
||||
return pixpix;
|
||||
}
|
||||
else if (role == Qt::UserRole + 1)
|
||||
else if (role == Qt::UserRole + 1)
|
||||
{
|
||||
return tiles.value(index.row()).getIndex();
|
||||
return tiles.value(index.row()).getIndex();
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
void tiles_model::sort ( int column, Qt::SortOrder order)
|
||||
{
|
||||
qSort(tiles.begin(), tiles.end(), caseInsensitiveLessThan);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue