Remove unnecessary QObject inheritance
This commit is contained in:
parent
6ebf1b54a8
commit
d5270df3b6
4 changed files with 4 additions and 9 deletions
|
@ -15,7 +15,7 @@ enum MapSortOrder {
|
|||
Layout = 2,
|
||||
};
|
||||
|
||||
class KeyValueConfigBase : public QObject
|
||||
class KeyValueConfigBase
|
||||
{
|
||||
public:
|
||||
void save();
|
||||
|
|
|
@ -79,15 +79,11 @@ public:
|
|||
QString city_map_name;
|
||||
};
|
||||
|
||||
class RegionMap : public QObject
|
||||
class RegionMap
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RegionMap() = default;
|
||||
|
||||
~RegionMap() {};
|
||||
|
||||
Project *project = nullptr;
|
||||
|
||||
QVector<RegionMapSquare> map_squares;
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
#include "metatileselector.h"
|
||||
#include <QGraphicsPixmapItem>
|
||||
|
||||
class CurrentSelectedMetatilesPixmapItem : public QObject, public QGraphicsPixmapItem {
|
||||
Q_OBJECT
|
||||
class CurrentSelectedMetatilesPixmapItem : public QGraphicsPixmapItem {
|
||||
public:
|
||||
CurrentSelectedMetatilesPixmapItem(Map *map, MetatileSelector *metatileSelector) {
|
||||
this->map = map;
|
||||
|
|
|
@ -575,7 +575,7 @@ void ProjectConfig::onNewConfigFileCreated() {
|
|||
form.addRow(new QLabel("Game Version"), baseGameVersionComboBox);
|
||||
|
||||
QDialogButtonBox buttonBox(QDialogButtonBox::Ok, Qt::Horizontal, &dialog);
|
||||
connect(&buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept);
|
||||
QObject::connect(&buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept);
|
||||
form.addRow(&buttonBox);
|
||||
|
||||
if (dialog.exec() == QDialog::Accepted) {
|
||||
|
|
Loading…
Reference in a new issue