Changeset 91260 in vbox
- Timestamp:
- Sep 15, 2021 6:55:11 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppDefs.h
r82968 r91260 5 5 6 6 /* 7 * Copyright (C) 2009-202 0Oracle Corporation7 * Copyright (C) 2009-2021 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 25 25 #include <QMetaType> 26 26 #include <QPointer> 27 #include <QListWidget>28 27 29 28 /* GUI includes: */ … … 34 33 Q_DECLARE_METATYPE(ExportAppliancePointer); 35 34 36 /** QListWidgetItem subclass for Export Appliance wizard VM list. */37 class UIVMListWidgetItem : public QListWidgetItem38 {39 public:40 41 /** Constructs VM list item passing @a pixIcon, @a strText and @a pParent to the base-class.42 * @param strUuid Brings the machine ID.43 * @param fInSaveState Brings whether machine is in Saved state. */44 UIVMListWidgetItem(QPixmap &pixIcon, QString &strText, QUuid aUuid, bool fInSaveState, QListWidget *pParent)45 : QListWidgetItem(pixIcon, strText, pParent)46 , m_uUuid(aUuid)47 , m_fInSaveState(fInSaveState)48 {}49 50 /** Returns whether this item is less than @a other. */51 bool operator<(const QListWidgetItem &other) const52 {53 return text().toLower() < other.text().toLower();54 }55 56 /** Returns the machine ID. */57 QUuid uuid() const { return m_uUuid; }58 /** Returns whether machine is in Saved state. */59 bool isInSaveState() const { return m_fInSaveState; }60 61 private:62 63 /** Holds the machine ID. */64 QUuid m_uUuid;65 /** Holds whether machine is in Saved state. */66 bool m_fInSaveState;67 };68 69 35 #endif /* !FEQT_INCLUDED_SRC_wizards_exportappliance_UIWizardExportAppDefs_h */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp
r91125 r91260 5 5 6 6 /* 7 * Copyright (C) 2009-202 0Oracle Corporation7 * Copyright (C) 2009-2021 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 17 17 18 18 /* Qt includes: */ 19 #include <QListWidget> 19 20 #include <QVBoxLayout> 20 21 … … 26 27 #include "UIMessageCenter.h" 27 28 #include "UIWizardExportApp.h" 28 #include "UIWizardExportAppDefs.h"29 29 #include "UIWizardExportAppPageBasic1.h" 30 30 31 31 /* COM includes: */ 32 32 #include "CMachine.h" 33 34 35 /** QListWidgetItem subclass for Export Appliance wizard VM list. */ 36 class UIVMListWidgetItem : public QListWidgetItem 37 { 38 public: 39 40 /** Constructs VM list item passing @a pixIcon, @a strText and @a pParent to the base-class. 41 * @param strUuid Brings the machine ID. 42 * @param fInSaveState Brings whether machine is in Saved state. */ 43 UIVMListWidgetItem(QPixmap &pixIcon, QString &strText, QUuid aUuid, bool fInSaveState, QListWidget *pParent) 44 : QListWidgetItem(pixIcon, strText, pParent) 45 , m_uUuid(aUuid) 46 , m_fInSaveState(fInSaveState) 47 {} 48 49 /** Returns whether this item is less than @a other. */ 50 bool operator<(const QListWidgetItem &other) const 51 { 52 return text().toLower() < other.text().toLower(); 53 } 54 55 /** Returns the machine ID. */ 56 QUuid uuid() const { return m_uUuid; } 57 /** Returns whether machine is in Saved state. */ 58 bool isInSaveState() const { return m_fInSaveState; } 59 60 private: 61 62 /** Holds the machine ID. */ 63 QUuid m_uUuid; 64 /** Holds whether machine is in Saved state. */ 65 bool m_fInSaveState; 66 }; 33 67 34 68
Note:
See TracChangeset
for help on using the changeset viewer.