Fix compiler warnings.

This commit is contained in:
Roman Telezhynskyi 2023-10-24 08:29:03 +03:00
parent b6ea17d506
commit 8527c5936c
4 changed files with 8 additions and 6 deletions

View File

@ -115,8 +115,7 @@ DialogFinalMeasurements::DialogFinalMeasurements(VPattern *doc, QWidget *parent)
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager()) if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{ {
connect(VAbstractValApplication::VApp()->GetShortcutManager(), &VAbstractShortcutManager::ShortcutsUpdated, connect(manager, &VAbstractShortcutManager::ShortcutsUpdated, this, &DialogFinalMeasurements::UpdateShortcuts);
this, &DialogFinalMeasurements::UpdateShortcuts);
UpdateShortcuts(); UpdateShortcuts();
} }
} }

View File

@ -99,8 +99,7 @@ DialogHistory::DialogHistory(VContainer *data, VPattern *doc, QWidget *parent)
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager()) if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{ {
connect(VAbstractValApplication::VApp()->GetShortcutManager(), &VAbstractShortcutManager::ShortcutsUpdated, connect(manager, &VAbstractShortcutManager::ShortcutsUpdated, this, &DialogHistory::UpdateShortcuts);
this, &DialogHistory::UpdateShortcuts);
UpdateShortcuts(); UpdateShortcuts();
} }
} }

View File

@ -204,8 +204,7 @@ DialogIncrements::DialogIncrements(VContainer *data, VPattern *doc, QWidget *par
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager()) if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{ {
connect(VAbstractValApplication::VApp()->GetShortcutManager(), &VAbstractShortcutManager::ShortcutsUpdated, connect(manager, &VAbstractShortcutManager::ShortcutsUpdated, this, &DialogIncrements::UpdateShortcuts);
this, &DialogIncrements::UpdateShortcuts);
UpdateShortcuts(); UpdateShortcuts();
} }
} }

View File

@ -29,6 +29,11 @@
#define VASPECTRATIOPIXMAPLABEL_H #define VASPECTRATIOPIXMAPLABEL_H
#include <QLabel> #include <QLabel>
#include <QPixmap>
#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0)
#include "../vmisc/defglobal.h"
#endif
class VAspectRatioPixmapLabel : public QLabel class VAspectRatioPixmapLabel : public QLabel
{ {