add method to change icon name after instantiation

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1088835
This commit is contained in:
Volker Lanz 2010-02-11 18:34:09 +00:00
parent 3ba56f1fd1
commit 75181b6d2f
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ class Device : public QObject
qint64 totalSectors() const { return static_cast<qint64>(heads()) * cylinders() * sectorsPerTrack(); } /**< @return the total number of sectors on the device */
qint64 capacity() const { return totalSectors() * sectorSize(); } /**< @return the Device's capacity in bytes */
qint64 cylinderSize() const { return static_cast<qint64>(heads()) * sectorsPerTrack(); } /**< @return the size of a cylinder on this Device in sectors */
void setIconName(const QString& name) { m_IconName = name; }
const QString& iconName() const { return m_IconName; } /**< @return suggested icon name for this Device */
protected: