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())
{
connect(VAbstractValApplication::VApp()->GetShortcutManager(), &VAbstractShortcutManager::ShortcutsUpdated,
this, &DialogFinalMeasurements::UpdateShortcuts);
connect(manager, &VAbstractShortcutManager::ShortcutsUpdated, this, &DialogFinalMeasurements::UpdateShortcuts);
UpdateShortcuts();
}
}

View File

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

View File

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

View File

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