Restructure to match order in header
This commit is contained in:
parent
19d73640c7
commit
d1d2d4ae0a
@ -15,16 +15,6 @@
|
||||
#include "log_tr.hpp"
|
||||
#include "utils.hpp"
|
||||
|
||||
Monitor::Monitor(HMONITOR hMonitor, PHYSICAL_MONITOR physicalMonitor)
|
||||
: m_hMonitor(hMonitor)
|
||||
, m_physicalMonitor(physicalMonitor.hPhysicalMonitor, physicalMonitor.szPhysicalMonitorDescription)
|
||||
{
|
||||
qDebug(ltr("Creating monitor '%1' with handle '0x%2' and physical handle '0x%3'")
|
||||
.arg(m_physicalMonitor.name)
|
||||
.arg(reinterpret_cast<qulonglong>(m_hMonitor), 0, 16)
|
||||
.arg(reinterpret_cast<qulonglong>(m_physicalMonitor.handle), 0, 16));
|
||||
}
|
||||
|
||||
Monitor::Monitor(Monitor&& other) noexcept
|
||||
: m_hMonitor(other.m_hMonitor)
|
||||
, m_physicalMonitor(other.m_physicalMonitor)
|
||||
@ -126,6 +116,16 @@ Monitor::operator bool() const
|
||||
return !m_errorOccurred;
|
||||
}
|
||||
|
||||
Monitor::Monitor(HMONITOR hMonitor, PHYSICAL_MONITOR physicalMonitor)
|
||||
: m_hMonitor(hMonitor)
|
||||
, m_physicalMonitor(physicalMonitor.hPhysicalMonitor, physicalMonitor.szPhysicalMonitorDescription)
|
||||
{
|
||||
qDebug(ltr("Creating monitor '%1' with handle '0x%2' and physical handle '0x%3'")
|
||||
.arg(m_physicalMonitor.name)
|
||||
.arg(reinterpret_cast<qulonglong>(m_hMonitor), 0, 16)
|
||||
.arg(reinterpret_cast<qulonglong>(m_physicalMonitor.handle), 0, 16));
|
||||
}
|
||||
|
||||
bool Monitor::hasBrightnessCapability() const
|
||||
{
|
||||
qDebug(ltr("Getting capabilities of monitor '%1' with handle '0x%2' and physical handle '0x%3'")
|
||||
|
Loading…
Reference in New Issue
Block a user