- Timestamp:
- Apr 18, 2019 7:29:42 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerOperationsPanel.cpp
r78092 r78201 100 100 QIToolButton *m_pCancelButton; 101 101 QILabel *m_pStatusLabel; 102 QILabel *m_pOperationDescriptionLabel; 102 103 }; 103 104 … … 116 117 , m_pCancelButton(0) 117 118 , m_pStatusLabel(0) 119 , m_pOperationDescriptionLabel(0) 118 120 { 119 121 prepare(); … … 200 202 //m_pMainLayout->setSpacing(0); 201 203 204 m_pOperationDescriptionLabel = new QILabel; 205 if (m_pOperationDescriptionLabel) 206 { 207 m_pOperationDescriptionLabel->setContextMenuPolicy(Qt::NoContextMenu); 208 m_pMainLayout->addWidget(m_pOperationDescriptionLabel, 0, 0, 1, 3); 209 } 210 202 211 m_pProgressBar = new QProgressBar; 203 212 if (m_pProgressBar) … … 206 215 m_pProgressBar->setMaximum(100); 207 216 m_pProgressBar->setTextVisible(true); 208 m_pMainLayout->addWidget(m_pProgressBar, 0, 0, 1, 2);217 m_pMainLayout->addWidget(m_pProgressBar, 1, 0, 1, 2); 209 218 } 210 219 … … 216 225 if (!m_comProgress.isNull() && !m_comProgress.GetCancelable()) 217 226 m_pCancelButton->setEnabled(false); 218 m_pMainLayout->addWidget(m_pCancelButton, 0, 2, 1, 1);227 m_pMainLayout->addWidget(m_pCancelButton, 1, 2, 1, 1); 219 228 } 220 229 … … 223 232 { 224 233 m_pStatusLabel->setContextMenuPolicy(Qt::NoContextMenu); 225 m_pMainLayout->addWidget(m_pStatusLabel, 0, 3, 1, 1);234 m_pMainLayout->addWidget(m_pStatusLabel, 1, 3, 1, 1); 226 235 } 227 236 … … 253 262 Q_UNUSED(uProgressId); 254 263 m_pProgressBar->setValue(iPercent); 264 265 if (m_pOperationDescriptionLabel) 266 m_pOperationDescriptionLabel->setText(m_comProgress.GetDescription()); 267 255 268 } 256 269
Note:
See TracChangeset
for help on using the changeset viewer.