Changeset 43828 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 7, 2012 11:19:49 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 81898
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.cpp
r43620 r43828 46 46 : UIGChooserItem(pParent, pParent->isTemporary()) 47 47 , UIVMItem(machine) 48 , m_pToolBar(0) 49 , m_pSettingsButton(0) 50 , m_pStartButton(0) 51 , m_pPauseButton(0) 52 , m_pCloseButton(0) 53 , m_iCornerRadius(0) 54 #ifdef Q_WS_MAC 55 , m_iHighlightLightness(115) 56 , m_iHoverLightness(110) 57 , m_iHoverHighlightLightness(120) 58 #else /* Q_WS_MAC */ 59 , m_iHighlightLightness(130) 60 , m_iHoverLightness(155) 61 , m_iHoverHighlightLightness(175) 62 #endif /* !Q_WS_MAC */ 63 { 64 // /* Prepare: */ 65 // prepare(); 48 { 49 /* Prepare: */ 50 prepare(); 66 51 67 52 /* Add item to the parent: */ … … 79 64 : UIGChooserItem(pParent, pParent->isTemporary()) 80 65 , UIVMItem(pCopyFrom->machine()) 81 , m_pToolBar(0) 82 , m_pSettingsButton(0) 83 , m_pStartButton(0) 84 , m_pPauseButton(0) 85 , m_pCloseButton(0) 86 , m_iCornerRadius(0) 87 #ifdef Q_WS_MAC 88 , m_iHighlightLightness(115) 89 , m_iHoverLightness(110) 90 , m_iHoverHighlightLightness(120) 91 #else /* Q_WS_MAC */ 92 , m_iHighlightLightness(130) 93 , m_iHoverLightness(155) 94 , m_iHoverHighlightLightness(175) 95 #endif /* !Q_WS_MAC */ 96 { 97 // /* Prepare: */ 98 // prepare(); 66 { 67 /* Prepare: */ 68 prepare(); 99 69 100 70 /* Add item to the parent: */ … … 115 85 model()->setFocusItem(0); 116 86 } 117 /* If that item is selected: */87 /* If that item is in selection list: */ 118 88 if (model()->currentItems().contains(this)) 119 89 { … … 121 91 model()->removeFromCurrentItems(this); 122 92 } 123 /* Remove item from the navigation list: */ 124 model()->removeFromNavigationList(this); 93 /* If that item is in navigation list: */ 94 if (model()->navigationList().contains(this)) 95 { 96 /* Remove item from the navigation list: */ 97 model()->removeFromNavigationList(this); 98 } 125 99 126 100 /* Remove item from the parent: */ … … 933 907 void UIGChooserItemMachine::prepare() 934 908 { 909 /* Tool-bar/buttons: */ 910 m_pToolBar = 0; 911 m_pSettingsButton = 0; 912 m_pStartButton = 0; 913 m_pPauseButton = 0; 914 m_pCloseButton = 0; 915 /* Corner radius: */ 916 m_iCornerRadius = 0; 917 /* Colors: */ 918 #ifdef Q_WS_MAC 919 m_iHighlightLightness = 115; 920 m_iHoverLightness = 110; 921 m_iHoverHighlightLightness = 120; 922 #else /* Q_WS_MAC */ 923 m_iHighlightLightness = 130; 924 m_iHoverLightness = 155; 925 m_iHoverHighlightLightness = 175; 926 #endif /* !Q_WS_MAC */ 927 928 /* Other things disabled for now: */ 929 return; 930 935 931 /* Create tool-bar: */ 936 932 m_pToolBar = new UIGraphicsToolBar(this, 2, 2); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.h
r43620 r43828 51 51 int type() const { return Type; } 52 52 53 /* Constructor /destructor: */53 /* Constructor (new item): */ 54 54 UIGChooserItemMachine(UIGChooserItem *pParent, const CMachine &machine, int iPosition = -1); 55 /* Constructor (new item copy): */ 55 56 UIGChooserItemMachine(UIGChooserItem *pParent, UIGChooserItemMachine *pCopyFrom, int iPosition = -1); 57 /* Destructor: */ 56 58 ~UIGChooserItemMachine(); 57 59
Note:
See TracChangeset
for help on using the changeset viewer.