Add placeholder for linux version of monitor getName

This commit is contained in:
BlackMark 2020-07-17 14:53:30 +02:00
parent 17a1eab03d
commit e4f18911f9
2 changed files with 10 additions and 0 deletions

View File

@ -57,6 +57,8 @@ class Monitor {
#if defined(__clang__) || defined(__GNUC__) #if defined(__clang__) || defined(__GNUC__)
#include <QString>
class Monitor { class Monitor {
public: public:
Monitor(); Monitor();
@ -64,6 +66,8 @@ class Monitor {
bool setBrightness(float); bool setBrightness(float);
float getBrightness(); float getBrightness();
QString getName() const;
operator bool() const; operator bool() const;
private: private:

View File

@ -26,6 +26,12 @@ float Monitor::getBrightness()
return NAN; return NAN;
} }
QString Monitor::getName() const
{
qWarning(ltr("Getting monitor name not implemented"));
return "Unknown";
}
Monitor::operator bool() const Monitor::operator bool() const
{ {
qWarning(ltr("Checking monitor validity not implemented")); qWarning(ltr("Checking monitor validity not implemented"));