summaryrefslogtreecommitdiffstats
path: root/src/displaysettings/displaysettings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/displaysettings/displaysettings.h')
-rw-r--r--src/displaysettings/displaysettings.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/src/displaysettings/displaysettings.h b/src/displaysettings/displaysettings.h
deleted file mode 100644
index 835da3f..0000000
--- a/src/displaysettings/displaysettings.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Device Utilities module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 or (at your option) any later version
-** approved by the KDE Free Qt Foundation. The licenses are as published by
-** the Free Software Foundation and appearing in the file LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-#ifndef DISPLAYSETTINGS_H
-#define DISPLAYSETTINGS_H
-
-#include <qobject.h>
-
-QT_BEGIN_NAMESPACE
-
-class DisplaySettingsPrivate;
-
-class Q_DECL_EXPORT DisplaySettings : public QObject
-{
- Q_OBJECT
-
- Q_PROPERTY(int displayBrightness READ displayBrightness WRITE setDisplayBrightness NOTIFY displayBrightnessChanged)
- Q_PROPERTY(int physicalScreenSizeInch READ physicalScreenSizeInch WRITE setPhysicalScreenSizeInch NOTIFY physicalScreenSizeInchChanged)
- Q_PROPERTY(int physicalScreenWidthMm READ physicalScreenWidthMm WRITE setPhysicalScreenWidthMm NOTIFY physicalScreenWidthMmChanged)
- Q_PROPERTY(int physicalScreenHeightMm READ physicalScreenHeightMm WRITE setPhysicalScreenHeightMm NOTIFY physicalScreenHeightMmChanged)
- Q_PROPERTY(bool physicalScreenSizeOverride READ physicalScreenSizeOverride WRITE setPhysicalScreenSizeOverride NOTIFY physicalScreenSizeOverrideChanged)
-
-public:
- DisplaySettings(QObject *parent = Q_NULLPTR);
- ~DisplaySettings();
-
- int displayBrightness();
- int physicalScreenSizeInch() const;
- int physicalScreenWidthMm() const;
- int physicalScreenHeightMm() const;
- bool physicalScreenSizeOverride() const;
-
-public Q_SLOTS:
- bool setDisplayBrightness(int value);
- void setPhysicalScreenSizeInch(int inches);
- void setPhysicalScreenSizeOverride(bool enable);
- void setPhysicalScreenWidthMm(int newWidth);
- void setPhysicalScreenHeightMm(int newHeight);
-
-Q_SIGNALS:
- void displayBrightnessChanged(int newValue);
- void physicalScreenSizeInchChanged(int newInches);
- void physicalScreenSizeOverrideChanged(bool newValue);
- void physicalScreenWidthMmChanged(int newValue);
- void physicalScreenHeightMmChanged(int newValue);
-
-protected:
- DisplaySettingsPrivate *d_ptr;
-
- Q_DISABLE_COPY(DisplaySettings)
- Q_DECLARE_PRIVATE(DisplaySettings)
-};
-
-QT_END_NAMESPACE
-
-#endif // DISPLAYSETTINGS_H