Repaint immediately when the display channel is changed.

This commit is contained in:
dfighter1985 2014-08-05 16:01:45 +02:00
parent 7c0ea3b9a0
commit 8d7d85d440

View file

@ -848,7 +848,15 @@ void TileEditorMainWindow::onTileBankLoaded()
void TileEditorMainWindow::updateTab()
{
m_ui->tileViewTabWidget->currentWidget()->repaint();
int idx = m_ui->tileViewTabWidget->currentIndex();
switch( idx )
{
case 0: m_ui->listView128->viewport()->repaint(); break;
case 1: m_ui->listView256->viewport()->repaint(); break;
case 2: m_ui->listViewTransition->viewport()->repaint(); break;
case 3: m_ui->listViewDisplacement->viewport()->repaint(); break;
}
}
TileModel* TileEditorMainWindow::createTileModel()