Remove unused stuff in Screens
This commit is contained in:
parent
a04a134a7a
commit
1a10718f6c
2 changed files with 0 additions and 60 deletions
|
@ -57,22 +57,6 @@ void Screens::init()
|
||||||
Q_EMIT changed();
|
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
|
QRect Screens::geometry(int screen) const
|
||||||
{
|
{
|
||||||
if (AbstractOutput *output = findOutput(screen)) {
|
if (AbstractOutput *output = findOutput(screen)) {
|
||||||
|
@ -97,22 +81,6 @@ qreal Screens::scale(int screen) const
|
||||||
return 1.0;
|
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
|
qreal Screens::maxScale() const
|
||||||
{
|
{
|
||||||
return m_maxScale;
|
return m_maxScale;
|
||||||
|
@ -167,12 +135,6 @@ QSize Screens::displaySize() const
|
||||||
return size();
|
return size();
|
||||||
}
|
}
|
||||||
|
|
||||||
Qt::ScreenOrientation Screens::orientation(int screen) const
|
|
||||||
{
|
|
||||||
Q_UNUSED(screen)
|
|
||||||
return Qt::PrimaryOrientation;
|
|
||||||
}
|
|
||||||
|
|
||||||
int Screens::number(const QPoint &pos) const
|
int Screens::number(const QPoint &pos) const
|
||||||
{
|
{
|
||||||
// TODO: Do something about testScreens and other tests that use MockScreens.
|
// TODO: Do something about testScreens and other tests that use MockScreens.
|
||||||
|
|
|
@ -41,14 +41,6 @@ public:
|
||||||
* @see geometryChanged()
|
* @see geometryChanged()
|
||||||
*/
|
*/
|
||||||
QRect geometry() const;
|
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.
|
* @returns size of the @p screen.
|
||||||
*
|
*
|
||||||
|
@ -93,20 +85,6 @@ public:
|
||||||
*/
|
*/
|
||||||
QSize displaySize() const;
|
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:
|
Q_SIGNALS:
|
||||||
void countChanged(int previousCount, int newCount);
|
void countChanged(int previousCount, int newCount);
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue