mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-01 17:55:30 +00:00
compil issues recursive include + weird error (orcerride doesn't override)
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#include <QtWidgets/QStyledItemDelegate>
|
#include <QtWidgets/QStyledItemDelegate>
|
||||||
#include "../../CPU/CPU.hpp"
|
#include "../../CPU/CPU.hpp"
|
||||||
#include "../../Renderer/SFRenderer.hpp"
|
|
||||||
#include "../../SNES.hpp"
|
#include "../../SNES.hpp"
|
||||||
#include "../../../ui/ui_cpuView.h"
|
#include "../../../ui/ui_cpuView.h"
|
||||||
#include "../ClosableWindow.hpp"
|
#include "../ClosableWindow.hpp"
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ namespace ComSquare::Debugger
|
|||||||
this->_window->setContextMenuPolicy(Qt::NoContextMenu);
|
this->_window->setContextMenuPolicy(Qt::NoContextMenu);
|
||||||
this->_window->setAttribute(Qt::WA_QuitOnClose, false);
|
this->_window->setAttribute(Qt::WA_QuitOnClose, false);
|
||||||
this->_window->setAttribute(Qt::WA_DeleteOnClose);
|
this->_window->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
//this->_sfWidget = std::make_unique<Renderer::QtFullSFML>(snes, this->_ui.tab, QPoint(0, 0), QSize(this->_ui.tab->width(), this->_ui.tab->height()), 30);
|
|
||||||
|
|
||||||
this->_ui.setupUi(this->_window);
|
this->_ui.setupUi(this->_window);
|
||||||
|
this->_sfWidget(this->_ui.tab);
|
||||||
this->_window->show();
|
this->_window->show();
|
||||||
QEvent::registerEventType();
|
QEvent::registerEventType();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,14 +9,11 @@ namespace ComSquare::Renderer
|
|||||||
class QtSFML;
|
class QtSFML;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <QtWidgets/QMainWindow>
|
|
||||||
#include <QtCore/QSortFilterProxyModel>
|
#include <QtCore/QSortFilterProxyModel>
|
||||||
#include <QEvent>
|
#include <QEvent>
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QTableView>
|
|
||||||
#include "ClosableWindow.hpp"
|
#include "ClosableWindow.hpp"
|
||||||
//#include "../Renderer/QtRenderer/QtSFML.hpp"
|
#include "../Renderer/QtRenderer/QtSFML.hpp"
|
||||||
#include "../PPU/PPU.hpp"
|
|
||||||
#include "../../ui/ui_tileView.h"
|
#include "../../ui/ui_tileView.h"
|
||||||
|
|
||||||
namespace ComSquare::Debugger
|
namespace ComSquare::Debugger
|
||||||
@@ -33,7 +30,7 @@ namespace ComSquare::Debugger
|
|||||||
//! @brief A reference to the ppu
|
//! @brief A reference to the ppu
|
||||||
ComSquare::PPU::PPU &_ppu;
|
ComSquare::PPU::PPU &_ppu;
|
||||||
//! @brief the window
|
//! @brief the window
|
||||||
//Renderer::QtSFML _sfWidget;
|
Renderer::QtSFML _sfWidget;
|
||||||
public:
|
public:
|
||||||
//! @brief Called when the window is closed. Turn off the debugger.
|
//! @brief Called when the window is closed. Turn off the debugger.
|
||||||
void disableViewer();
|
void disableViewer();
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace ComSquare::Renderer
|
|||||||
QtFullSFML(SNES &snes, QWidget* parent, const QPoint& position, const QSize& size, int frameRate = 0);
|
QtFullSFML(SNES &snes, QWidget* parent, const QPoint& position, const QSize& size, int frameRate = 0);
|
||||||
QtFullSFML(const QtFullSFML &) = delete;
|
QtFullSFML(const QtFullSFML &) = delete;
|
||||||
QtFullSFML &operator=(const QtFullSFML &) = delete;
|
QtFullSFML &operator=(const QtFullSFML &) = delete;
|
||||||
~QtFullSFML() override = default;
|
~QtFullSFML() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
//! @brief A SFML renderer inside a QT widget.
|
//! @brief A SFML renderer inside a QT widget.
|
||||||
|
|||||||
Reference in New Issue
Block a user