Forgotten destructors...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
45721b3fc5
commit
187739f913
8 changed files with 24 additions and 0 deletions
|
@ -16,6 +16,11 @@ Emulator::Emulator(QWidget *parent) :
|
|||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
Emulator::~Emulator()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void Emulator::updateVideo()
|
||||
{
|
||||
ui->video->update();
|
||||
|
|
|
@ -15,6 +15,7 @@ class Emulator : public QFrame
|
|||
|
||||
public:
|
||||
explicit Emulator(QWidget *parent = nullptr);
|
||||
~Emulator();
|
||||
|
||||
void updateVideo();
|
||||
void redrawScreen(); // regenerate image and repaint
|
||||
|
|
|
@ -78,3 +78,8 @@ MemoryContainer::MemoryContainer(QWidget *parent) :
|
|||
setComment(auxMetadata, 0x2000, 0x4000, Qt::blue, Qt::yellow, "HiRes Video Page 1");
|
||||
setComment(auxMetadata, 0x4000, 0x6000, Qt::black, Qt::yellow, "HiRes Video Page 2");
|
||||
}
|
||||
|
||||
MemoryContainer::~MemoryContainer()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ class MemoryContainer : public QTabWidget
|
|||
|
||||
public:
|
||||
explicit MemoryContainer(QWidget *parent = nullptr);
|
||||
~MemoryContainer();
|
||||
|
||||
private:
|
||||
Ui::MemoryContainer *ui;
|
||||
|
|
|
@ -133,6 +133,11 @@ Preferences::Preferences(QWidget *parent) :
|
|||
myHDs.push_back(ui->hd2);
|
||||
}
|
||||
|
||||
Preferences::~Preferences()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void Preferences::setup(const PreferenceData & data, QSettings & settings)
|
||||
{
|
||||
populateJoysticks();
|
||||
|
|
|
@ -20,6 +20,7 @@ class Preferences : public QDialog
|
|||
public:
|
||||
|
||||
explicit Preferences(QWidget *parent);
|
||||
~Preferences();
|
||||
|
||||
void setup(const PreferenceData & data, QSettings & settings);
|
||||
PreferenceData getData() const;
|
||||
|
|
|
@ -221,6 +221,11 @@ QApple::QApple(QWidget *parent) :
|
|||
startEmulator(myEmulatorWindow, myEmulator, myOptions);
|
||||
}
|
||||
|
||||
QApple::~QApple()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void QApple::closeEvent(QCloseEvent *)
|
||||
{
|
||||
stopTimer();
|
||||
|
|
|
@ -25,6 +25,7 @@ class QApple : public QMainWindow
|
|||
|
||||
public:
|
||||
explicit QApple(QWidget *parent = nullptr);
|
||||
~QApple();
|
||||
|
||||
signals:
|
||||
void endEmulator();
|
||||
|
|
Loading…
Add table
Reference in a new issue