adding a real ui for the tile viewer

This commit is contained in:
Clément Le Bihan
2021-05-26 00:44:37 +02:00
parent 19ca618857
commit 85ac1422e2
4 changed files with 114 additions and 47 deletions

View File

@@ -23,14 +23,15 @@ namespace ComSquare::Debugger
: _window(new ClosableWindow<TileViewer>(*this, &TileViewer::disableViewer)),
_snes(snes),
_ui(),
_ppu(ppu)
_ppu(ppu),
_tileRenderer()
{
this->_window->setContextMenuPolicy(Qt::NoContextMenu);
this->_window->setAttribute(Qt::WA_QuitOnClose, false);
this->_window->setAttribute(Qt::WA_DeleteOnClose);
this->_ui.setupUi(this->_window);
this->_sfWidget = std::make_unique<Renderer::QtSFML>(this->_ui.tab);
//this->_sfWidget = std::make_unique<Renderer::QtSFML>(this->_ui.tab);
this->_window->show();
QEvent::registerEventType();
}