mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 12:50:53 +00:00
Changed: #1409 Fixed some things for a sane compiler (Linux/gcc)
This commit is contained in:
parent
ceb8f7997d
commit
c9bf8088b4
2 changed files with 102 additions and 102 deletions
|
@ -247,10 +247,10 @@ void TileEditorMainWindow::onActionAddTile(int tabId)
|
||||||
|
|
||||||
void TileEditorMainWindow::changeActiveTileSet(const QModelIndex &newIndex, const QModelIndex &oldIndex)
|
void TileEditorMainWindow::changeActiveTileSet(const QModelIndex &newIndex, const QModelIndex &oldIndex)
|
||||||
{
|
{
|
||||||
QModelIndex &tile128Idx = newIndex.child(0,0);
|
const QModelIndex &tile128Idx = newIndex.child(0,0);
|
||||||
QModelIndex &tile256Idx = newIndex.child(1,0);
|
const QModelIndex &tile256Idx = newIndex.child(1,0);
|
||||||
QModelIndex &tileTransIdx = newIndex.child(2,0);
|
const QModelIndex &tileTransIdx = newIndex.child(2,0);
|
||||||
QModelIndex &tileDispIdx = newIndex.child(3,0);
|
const QModelIndex &tileDispIdx = newIndex.child(3,0);
|
||||||
|
|
||||||
m_ui->listView128->setRootIndex(tile128Idx);
|
m_ui->listView128->setRootIndex(tile128Idx);
|
||||||
m_ui->listView256->setRootIndex(tile256Idx);
|
m_ui->listView256->setRootIndex(tile256Idx);
|
||||||
|
|
|
@ -28,7 +28,7 @@ class TileModel : public QAbstractItemModel
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TileModel::TileModel(const QStringList &headers, QObject *parent);
|
TileModel(const QStringList &headers, QObject *parent);
|
||||||
~TileModel();
|
~TileModel();
|
||||||
|
|
||||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||||
|
|
Loading…
Reference in a new issue