Changeset 9716 in vbox for trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMListView.h
- Timestamp:
- Jun 16, 2008 12:04:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMListView.h
r8907 r9716 42 42 QIcon osIcon() const { return mAccessible ? vboxGlobal().vmGuestOSTypeIcon (mOSTypeId) :QPixmap (":/os_unknown.png"); } 43 43 QUuid id() const { return mId; } 44 44 45 45 QString sessionStateName() const; 46 46 QIcon sessionStateIcon() const { return mAccessible ? vboxGlobal().toIcon (mState) : QPixmap (":/state_aborted_16px.png"); } … … 89 89 class VBoxVMModel: public QAbstractListModel 90 90 { 91 Q_OBJECT ;91 Q_OBJECT 92 92 93 93 public: … … 138 138 class VBoxVMListView: public QIListView 139 139 { 140 Q_OBJECT ;140 Q_OBJECT 141 141 142 142 public: … … 163 163 void mousePressEvent (QMouseEvent *aEvent); 164 164 bool selectCurrent(); 165 }; 165 }; 166 166 167 167 class VBoxVMItemPainter: public QIItemDelegate … … 181 181 inline QIcon::Mode iconMode (QStyle::State aState) const 182 182 { 183 if (!(aState & QStyle::State_Enabled)) 183 if (!(aState & QStyle::State_Enabled)) 184 184 return QIcon::Disabled; 185 if (aState & QStyle::State_Selected) 185 if (aState & QStyle::State_Selected) 186 186 return QIcon::Selected; 187 187 return QIcon::Normal;
Note:
See TracChangeset
for help on using the changeset viewer.