silence deprecation warnings

This commit is contained in:
garakmon
2020-08-26 20:42:42 -04:00
parent 3ac1fce840
commit 68098b8220
12 changed files with 33 additions and 36 deletions

View File

@@ -26,12 +26,12 @@ public:
int mapHeight = 0;
QVector<uint8_t> tiles;
QString cityMap;
RegionMapHistoryItem(int type, QVector<uint8_t> tiles, QString cityMap) {
RegionMapHistoryItem(int which, QVector<uint8_t> tiles, QString cityMap) {
this->which = which;
this->tiles = tiles;
this->cityMap = cityMap;
}
RegionMapHistoryItem(int type, QVector<uint8_t> tiles, int width, int height) {
RegionMapHistoryItem(int which, QVector<uint8_t> tiles, int width, int height) {
this->which = which;
this->tiles = tiles;
this->mapWidth = width;

View File

@@ -9,7 +9,7 @@ class NoScrollSpinBox : public QSpinBox
public:
explicit NoScrollSpinBox(QWidget *parent = nullptr);
void wheelEvent(QWheelEvent *event);
void wheelEvent(QWheelEvent *event) override;
void focusOutEvent(QFocusEvent *event) override;
unsigned getActionId();

View File

@@ -10,7 +10,7 @@ class OverlayItem {
public:
OverlayItem() {}
virtual ~OverlayItem() {};
virtual void render(QPainter *painter) {};
virtual void render(QPainter *) {};
};
class OverlayText : public OverlayItem {