add method to change icon name after instantiation
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1088835
This commit is contained in:
parent
3ba56f1fd1
commit
75181b6d2f
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue