diff --git a/src/screens.cpp b/src/screens.cpp index 6d86d68a05..b850ddaba4 100644 --- a/src/screens.cpp +++ b/src/screens.cpp @@ -57,22 +57,6 @@ void Screens::init() Q_EMIT changed(); } -QString Screens::name(int screen) const -{ - if (AbstractOutput *output = findOutput(screen)) { - return output->name(); - } - return QString(); -} - -bool Screens::isInternal(int screen) const -{ - if (AbstractOutput *output = findOutput(screen)) { - return output->isInternal(); - } - return false; -} - QRect Screens::geometry(int screen) const { if (AbstractOutput *output = findOutput(screen)) { @@ -97,22 +81,6 @@ qreal Screens::scale(int screen) const return 1.0; } -QSizeF Screens::physicalSize(int screen) const -{ - if (AbstractOutput *output = findOutput(screen)) { - return output->physicalSize(); - } - return QSizeF(); -} - -float Screens::refreshRate(int screen) const -{ - if (AbstractOutput *output = findOutput(screen)) { - return output->refreshRate() / 1000.0; - } - return 60.0; -} - qreal Screens::maxScale() const { return m_maxScale; @@ -167,12 +135,6 @@ QSize Screens::displaySize() const return size(); } -Qt::ScreenOrientation Screens::orientation(int screen) const -{ - Q_UNUSED(screen) - return Qt::PrimaryOrientation; -} - int Screens::number(const QPoint &pos) const { // TODO: Do something about testScreens and other tests that use MockScreens. diff --git a/src/screens.h b/src/screens.h index d83b7c63cb..ec0dd64c72 100644 --- a/src/screens.h +++ b/src/screens.h @@ -41,14 +41,6 @@ public: * @see geometryChanged() */ QRect geometry() const; - /** - * The output name of the screen (usually eg. LVDS-1, VGA-0 or DVI-I-1 etc.) - */ - QString name(int screen) const; - /** - * @returns current refreshrate of the @p screen. - */ - float refreshRate(int screen) const; /** * @returns size of the @p screen. * @@ -93,20 +85,6 @@ public: */ QSize displaySize() const; - /** - * The physical size of @p screen in mm. - * Default implementation returns a size derived from 96 DPI. - */ - QSizeF physicalSize(int screen) const; - - /** - * @returns @c true if the @p screen is connected through an internal display (e.g. LVDS). - * Default implementation returns @c false. - */ - bool isInternal(int screen) const; - - Qt::ScreenOrientation orientation(int screen) const; - Q_SIGNALS: void countChanged(int previousCount, int newCount); /**