equal
deleted
inserted
replaced
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include "fbdrivelistviewitem.h" |
18 #include "fbdrivelistviewitem.h" |
19 #include "driveentry.h" |
19 #include "fbdriveentry.h" |
20 #include "fbdrivemodel.h" |
20 #include "fbdrivemodel.h" |
21 |
21 |
22 #include <hblabel.h> |
22 #include <hblabel.h> |
23 #include <hbcheckbox.h> |
23 #include <hbcheckbox.h> |
24 #include <hbabstractitemview.h> |
24 #include <hbabstractitemview.h> |
86 // mSizeLabel->setPlainText( stringList[1] ); |
86 // mSizeLabel->setPlainText( stringList[1] ); |
87 |
87 |
88 |
88 |
89 // Get the Drive Entry |
89 // Get the Drive Entry |
90 const FbDriveModel* driveModel= qobject_cast<const FbDriveModel *>(modelIndex().model()); |
90 const FbDriveModel* driveModel= qobject_cast<const FbDriveModel *>(modelIndex().model()); |
91 DriveEntry driveEntry = driveModel->driveEntry(modelIndex()); |
91 FbDriveEntry driveEntry = driveModel->driveEntry(modelIndex()); |
92 |
92 |
93 const QString SimpleDriveEntry("%1: <%2>"); |
93 const QString SimpleDriveEntry("%1: <%2>"); |
94 |
94 |
95 QString diskName = SimpleDriveEntry.arg(driveEntry.driveLetter()).arg(driveEntry.mediaTypeString()); |
95 QString diskName = SimpleDriveEntry.arg(driveEntry.driveLetter()).arg(driveEntry.mediaTypeString()); |
96 mDiskNameLabel->setPlainText(diskName); |
96 mDiskNameLabel->setPlainText(diskName); |