OutputMode: use uint32_t for the refresh rate

This commit is contained in:
Xaver Hugl 2022-04-25 21:54:17 +02:00
parent c519f2d126
commit 945eef58fe
2 changed files with 5 additions and 5 deletions

View file

@ -38,7 +38,7 @@ QDebug operator<<(QDebug debug, const Output *output)
return debug;
}
OutputMode::OutputMode(const QSize &size, int refreshRate, Flags flags)
OutputMode::OutputMode(const QSize &size, uint32_t refreshRate, Flags flags)
: m_size(size)
, m_refreshRate(refreshRate)
, m_flags(flags)
@ -50,7 +50,7 @@ QSize OutputMode::size() const
return m_size;
}
int OutputMode::refreshRate() const
uint32_t OutputMode::refreshRate() const
{
return m_refreshRate;
}

View file

@ -37,16 +37,16 @@ public:
};
Q_DECLARE_FLAGS(Flags, Flag)
OutputMode(const QSize &size, int refreshRate, Flags flags = {});
OutputMode(const QSize &size, uint32_t refreshRate, Flags flags = {});
virtual ~OutputMode() = default;
QSize size() const;
int refreshRate() const;
uint32_t refreshRate() const;
Flags flags() const;
private:
const QSize m_size;
const int m_refreshRate;
const uint32_t m_refreshRate;
const Flags m_flags;
};