Cleanups in units

This commit is contained in:
Sebastian Kügler 2014-02-03 16:32:29 +01:00
parent 30e98ba8f7
commit 90d2afb722
2 changed files with 1 additions and 4 deletions

View File

@ -131,7 +131,6 @@ void Units::updateDevicePixelRatio()
int Units::gridUnit() const
{
const int gridUnit = QFontMetrics(QApplication::font()).boundingRect("M").width();
return m_gridUnit;
}
@ -185,5 +184,3 @@ bool Units::eventFilter(QObject *watched, QEvent *event)
return QObject::eventFilter(watched, event);
}
#include "units.moc"

View File

@ -36,7 +36,7 @@ class Units : public QObject
* The fundamental unit of space that should be used for sizes, expressed in pixels.
* Given the screen has an accurate DPI settings, it corresponds to a millimeter
*/
Q_PROPERTY(int gridUnit READ gridUnit NOTIFY gridUnitChanged())
Q_PROPERTY(int gridUnit READ gridUnit NOTIFY gridUnitChanged)
/**
* units.iconSizes provides access to platform-dependent icon sizing