Changeset 9569 in vbox for trunk/src/VBox
- Timestamp:
- Jun 10, 2008 1:11:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxDiskImageManagerDlg.cpp
r9471 r9569 43 43 AddVDMUrlsEvent (const QList<QUrl> &aUrls) 44 44 : QEvent (static_cast<QEvent::Type> (VBoxDefs::AddVDMUrlsEventType)) 45 , mUrls (aUrls) 45 , mUrls (aUrls) 46 46 {} 47 47 … … 108 108 VBoxMedia::Status status() const { return mStatus; } 109 109 110 void setToolTip (const QString& aToolTip) 111 { 112 mToolTip = aToolTip; 110 void setToolTip (const QString& aToolTip) 111 { 112 mToolTip = aToolTip; 113 113 for (int i=0; i < treeWidget()->columnCount(); ++i) 114 114 QTreeWidgetItem::setToolTip (i, mToolTip); … … 129 129 } 130 130 131 bool operator< (const QTreeWidgetItem &aOther) const 131 bool operator< (const QTreeWidgetItem &aOther) const 132 132 { 133 133 int column = treeWidget()->sortColumn(); … … 515 515 516 516 /* For a newly opened dialog, select the first item */ 517 if ( !mHdsTree->selectedItems().isEmpty())517 if (mHdsTree->selectedItems().isEmpty()) 518 518 if (QTreeWidgetItem *item = mHdsTree->topLevelItem (0)) 519 519 setCurrentItem (mHdsTree, item); 520 if ( !mCdsTree->selectedItems().isEmpty())520 if (mCdsTree->selectedItems().isEmpty()) 521 521 if (QTreeWidgetItem *item = mCdsTree->topLevelItem (0)) 522 522 setCurrentItem (mCdsTree, item); 523 if ( !mFdsTree->selectedItems().isEmpty())523 if (mFdsTree->selectedItems().isEmpty()) 524 524 if (QTreeWidgetItem *item = mFdsTree->topLevelItem (0)) 525 525 setCurrentItem (mFdsTree, item); … … 850 850 int h = mProgressBar->height(); 851 851 mButtonBox->setMinimumHeight (h + 12); 852 #endif 852 #endif 853 853 854 854 if (mHdsTree->model()->rowCount() || mCdsTree->model()->rowCount() || mFdsTree->model()->rowCount()) … … 1416 1416 switch (twImages->currentIndex ()) 1417 1417 { 1418 case HDTab: 1418 case HDTab: 1419 1419 type = VBoxDefs::HD; 1420 1420 break; 1421 case CDTab: 1421 case CDTab: 1422 1422 type = VBoxDefs::CD; 1423 1423 break; 1424 case FDTab: 1424 case FDTab: 1425 1425 type = VBoxDefs::FD; 1426 1426 break; … … 1506 1506 } 1507 1507 1508 /* Set the file for the proxy icon */ 1508 /* Set the file for the proxy icon */ 1509 1509 setFileForProxyIcon (item->path()); 1510 1510 … … 1816 1816 const QUuid &aId) const 1817 1817 { 1818 if (aId.isNull()) 1818 if (aId.isNull()) 1819 1819 return NULL; 1820 1820 … … 1845 1845 { 1846 1846 QUuid itemId = aItem ? aItem->uuid() : QUuid(); 1847 if (itemId.isNull()) 1847 if (itemId.isNull()) 1848 1848 return false; 1849 1849 … … 1923 1923 switch (currentTreeWidgetType()) 1924 1924 { 1925 case VBoxDefs::HD: 1926 err |= (!(suffix == "vdi" || suffix == "vmdk")); 1925 case VBoxDefs::HD: 1926 err |= (!(suffix == "vdi" || suffix == "vmdk")); 1927 1927 break; 1928 case VBoxDefs::CD: 1929 err |= (suffix != "iso"); 1928 case VBoxDefs::CD: 1929 err |= (suffix != "iso"); 1930 1930 break; 1931 case VBoxDefs::FD: 1932 err |= (suffix != "img"); 1931 case VBoxDefs::FD: 1932 err |= (suffix != "img"); 1933 1933 break; 1934 1934 default: … … 2027 2027 if (aLeftRightMargin) 2028 2028 aInfo->setContentsMargins (margin, 0, margin, 0); 2029 else 2029 else 2030 2030 aInfo->setContentsMargins (margin, 0, 0, 0); 2031 2031 rootLayout->addWidget (aInfo, aRow, aCol + 1, aRowSpan, aColSpan);
Note:
See TracChangeset
for help on using the changeset viewer.