Changeset 74881 in vbox
- Timestamp:
- Oct 17, 2018 2:38:49 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 125865
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/cloud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/cloud/UICloudProfileManager.cpp
r74880 r74881 49 49 { 50 50 Column_Name, 51 /// @todo rest of columns?52 51 Column_Max, 53 52 }; … … 87 86 /* Update item fields: */ 88 87 setText(Column_Name, m_strName); 89 /// @todo assign rest of field values!90 91 /* Compose item tool-tip: */92 /// @todo assign tool-tips!93 88 } 94 89 … … 102 97 /* Update item fields: */ 103 98 setText(Column_Name, m_strName); 104 /// @todo assign rest of field values!105 106 /* Compose item tool-tip: */107 /// @todo assign tool-tips!108 99 } 109 100 … … 144 135 m_pToolBar->updateLayout(); 145 136 #endif 146 147 /* Translate tree-widget: */148 /// @todo assign tree-widget column names!149 }150 151 void UICloudProfileManagerWidget::resizeEvent(QResizeEvent *pEvent)152 {153 /* Call to base-class: */154 QIWithRetranslateUI<QWidget>::resizeEvent(pEvent);155 156 /* Adjust tree-widget: */157 sltAdjustTreeWidget();158 }159 160 void UICloudProfileManagerWidget::showEvent(QShowEvent *pEvent)161 {162 /* Call to base-class: */163 QIWithRetranslateUI<QWidget>::showEvent(pEvent);164 165 /* Adjust tree-widget: */166 sltAdjustTreeWidget();167 137 } 168 138 … … 208 178 // Not implemented. 209 179 AssertMsgFailed(("Not implemented!")); 210 }211 212 void UICloudProfileManagerWidget::sltAdjustTreeWidget()213 {214 /* Calculate the total tree-widget width: */215 const int iTotal = m_pTreeWidget->viewport()->width();216 217 /// @todo calculate proposed column widths!218 219 /* Apply the proposal: */220 m_pTreeWidget->setColumnWidth(Column_Name, iTotal /*- iWidth1 - iWidth2 - iWidth3*/);221 180 } 222 181 -
trunk/src/VBox/Frontends/VirtualBox/src/cloud/UICloudProfileManager.h
r74880 r74881 73 73 /** Handles translation event. */ 74 74 virtual void retranslateUi() /* override */; 75 76 /** Handles resize @a pEvent. */77 virtual void resizeEvent(QResizeEvent *pEvent) /* override */;78 79 /** Handles show @a pEvent. */80 virtual void showEvent(QShowEvent *pEvent) /* override */;81 75 /** @} */ 82 76 … … 107 101 /** @name Tree-widget stuff. 108 102 * @{ */ 109 /** Handles command to adjust tree-widget. */110 void sltAdjustTreeWidget();111 112 103 /** Handles tree-widget @a pItem change. */ 113 104 void sltHandleItemChange(QTreeWidgetItem *pItem);
Note:
See TracChangeset
for help on using the changeset viewer.