Changeset 75776 in vbox
- Timestamp:
- Nov 27, 2018 6:07:53 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/guestctrl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManager.cpp
r75762 r75776 80 80 81 81 /********************************************************************************************************************************* 82 * UIGuestControlFileManagerOptions implementation. *82 * UIGuestControlFileManagerOptions implementation. * 83 83 *********************************************************************************************************************************/ 84 84 -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestControlFileManagerOperationsPanel.cpp
r75761 r75776 102 102 { 103 103 prepare(); 104 setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Maximum); 104 105 } 105 106 … … 140 141 if (!m_pMainLayout) 141 142 return; 143 m_pMainLayout->setSpacing(0); 142 144 143 145 m_pCancelButton = new QIToolButton; … … 146 148 m_pCancelButton->setIcon(QApplication::style()->standardIcon(QStyle::SP_DockWidgetCloseButton)); 147 149 m_pCancelButton->setStyleSheet("QToolButton { border: 0px none black; margin: 0px 0px 0px 0px; } "); 148 const QSize sh = m_pCancelButton->sizeHint(); 149 m_pCancelButton->setFixedSize(sh); 150 150 151 151 152 connect(m_pCancelButton, &QIToolButton::clicked, this, &UIFileOperationProgressWidget::sltCancelProgress); … … 161 162 m_pProgressBar->setMaximum(100); 162 163 m_pProgressBar->setTextVisible(true); 163 m_pProgressBar->setSizePolicy(QSizePolicy:: Expanding, QSizePolicy::Fixed);164 m_pProgressBar->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Maximum); 164 165 m_pMainLayout->addWidget(m_pProgressBar); 165 166 } 166 167 167 setLayout(m_pMainLayout); 168 168 } … … 230 230 return; 231 231 232 m_pTableWidget->setRowCount(m_pTableWidget->rowCount() + 1); 232 /** Insert the row to the top of the table since inserting to the bottom causes a strange stacking 233 * effect of the widgets: */ 234 m_pTableWidget->insertRow(0); 233 235 UIFileOperationProgressWidget *pOperationsWidget = new UIFileOperationProgressWidget(comProgress); 234 m_pTableWidget->setCellWidget( m_pTableWidget->rowCount() - 1, 0, pOperationsWidget);236 m_pTableWidget->setCellWidget(0, 0, pOperationsWidget); 235 237 connect(pOperationsWidget, &UIFileOperationProgressWidget::sigProgressComplete, 236 238 this, &UIGuestControlFileManagerOperationsPanel::sigFileOperationComplete); 237 239 connect(pOperationsWidget, &UIFileOperationProgressWidget::sigProgressFail, 238 240 this, &UIGuestControlFileManagerOperationsPanel::sigFileOperationFail); 239 240 m_pTableWidget->resizeColumnsToContents(); 241 /* Trying to make the the rows look a bit less shitty */ 242 //m_pTableWidget->resizeRowsToContents(); 243 //m_pTableWidget->horizontalHeader()->setStretchLastSection(true); 244 m_pTableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); 245 //m_pTableWidget->scrollToBottom(); 241 246 } 242 247 … … 257 262 m_pTableWidget->setColumnCount(TableColumn_Max); 258 263 m_pTableWidget->verticalHeader()->hide(); 259 QStringList headers; 260 headers << "Progress" << "Information"; 261 m_pTableWidget->setHorizontalHeaderLabels(headers); 264 m_pTableWidget->horizontalHeader()->hide(); 262 265 m_pTableWidget->setShowGrid(false); 263 266 mainLayout()->addWidget(m_pTableWidget);
Note:
See TracChangeset
for help on using the changeset viewer.