Changeset 10769 in vbox for trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSettingsSelector.cpp
- Timestamp:
- Jul 21, 2008 8:59:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSettingsSelector.cpp
r10701 r10769 201 201 } 202 202 203 QWidget *VBoxSettingsTreeViewSelector::addItem (const QIcon &aIcon, 203 QWidget *VBoxSettingsTreeViewSelector::addItem (const QString &aBigIcon, 204 const QString &aSmallIcon, 204 205 int aId, 205 206 const QString &aLink, … … 207 208 int aParentId /* = -1 */) 208 209 { 210 NOREF (aBigIcon); 209 211 QWidget *result = NULL; 210 212 if (aPage != NULL) 211 213 { 212 SelectorItem *item = new SelectorItem ( aIcon, "", aId, aLink, aPage, aParentId);214 SelectorItem *item = new SelectorItem (QIcon (aSmallIcon), "", aId, aLink, aPage, aParentId); 213 215 mItemList.append (item); 214 216 … … 216 218 << idToString (aId) 217 219 << aLink); 218 twitem->setIcon (treeWidget_Category, aIcon);220 twitem->setIcon (treeWidget_Category, item->icon()); 219 221 aPage->setContentsMargins (9, 2, 9, 2); 220 222 VBoxGlobal::setLayoutMargin (aPage->layout(), 0); … … 377 379 } 378 380 379 QWidget *VBoxSettingsToolBarSelector::addItem (const QIcon &aIcon, 381 QWidget *VBoxSettingsToolBarSelector::addItem (const QString &aBigIcon, 382 const QString &aSmallIcon, 380 383 int aId, 381 384 const QString &aLink, … … 384 387 { 385 388 QWidget *result = NULL; 386 SelectorActionItem *item = new SelectorActionItem ( aIcon, "", aId, aLink, aPage, aParentId, this);389 SelectorActionItem *item = new SelectorActionItem (QIcon (aBigIcon), "", aId, aLink, aPage, aParentId, this); 387 390 mItemList.append (item); 388 391 … … 416 419 VBoxGlobal::setLayoutMargin (aPage->layout(), 0); 417 420 if (tabWidget) 418 tabWidget->addTab (aPage, aIcon, "");421 tabWidget->addTab (aPage, QIcon (aSmallIcon), ""); 419 422 } 420 423 }
Note:
See TracChangeset
for help on using the changeset viewer.