Forgotten destructors...

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2019-12-06 20:00:16 +00:00
parent 45721b3fc5
commit 187739f913
8 changed files with 24 additions and 0 deletions

View file

@ -16,6 +16,11 @@ Emulator::Emulator(QWidget *parent) :
ui->setupUi(this);
}
Emulator::~Emulator()
{
delete ui;
}
void Emulator::updateVideo()
{
ui->video->update();

View file

@ -15,6 +15,7 @@ class Emulator : public QFrame
public:
explicit Emulator(QWidget *parent = nullptr);
~Emulator();
void updateVideo();
void redrawScreen(); // regenerate image and repaint

View file

@ -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;
}

View file

@ -13,6 +13,7 @@ class MemoryContainer : public QTabWidget
public:
explicit MemoryContainer(QWidget *parent = nullptr);
~MemoryContainer();
private:
Ui::MemoryContainer *ui;

View file

@ -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();

View file

@ -20,6 +20,7 @@ class Preferences : public QDialog
public:
explicit Preferences(QWidget *parent);
~Preferences();
void setup(const PreferenceData & data, QSettings & settings);
PreferenceData getData() const;

View file

@ -221,6 +221,11 @@ QApple::QApple(QWidget *parent) :
startEmulator(myEmulatorWindow, myEmulator, myOptions);
}
QApple::~QApple()
{
delete ui;
}
void QApple::closeEvent(QCloseEvent *)
{
stopTimer();

View file

@ -25,6 +25,7 @@ class QApple : public QMainWindow
public:
explicit QApple(QWidget *parent = nullptr);
~QApple();
signals:
void endEmulator();