Changeset 81074 in vbox
- Timestamp:
- Sep 30, 2019 11:18:49 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 133678
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationConfiguration.cpp
r80989 r81074 140 140 m_pTableWidget->setColumnWidth(1, 1.5 * iMaxColumn1Length); 141 141 m_pTableWidget->resizeColumnToContents(2); 142 m_pTableWidget->horizontalHeader()->setStretchLastSection(true); 142 143 } 143 144 … … 155 156 /* Configure the table by hiding the headers etc.: */ 156 157 m_pTableWidget->setColumnCount(m_iColumCount); 158 m_pTableWidget->setAlternatingRowColors(true); 157 159 m_pTableWidget->verticalHeader()->hide(); 158 160 m_pTableWidget->horizontalHeader()->hide(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r81000 r81074 126 126 int m_iMinimumWidth; 127 127 QVector<QString> m_screenResolutions; 128 QVector<QString*> m_labels; 128 129 QTimer *m_pTimer; 129 130 }; … … 159 160 } 160 161 162 m_labels << &m_strScreenResolutionLabel 163 << &m_strUptimeLabel 164 << &m_strDragAndDropLabel 165 << &m_strExcutionEngineLabel 166 << &m_strNestedPagingLabel 167 << &m_strUnrestrictedExecutionLabel 168 << &m_strParavirtualizationLabel 169 << &m_strGuestAdditionsLabel 170 << &m_strGuestOSTypeLabel 171 << &m_strRemoteDesktopLabel; 172 173 161 174 retranslateUi(); 162 175 computeMinimumWidth(); … … 165 178 void UIRuntimeInfoWidget::retranslateUi() 166 179 { 180 167 181 m_strTableTitle = QApplication::translate("UIVMInformationDialog", "Runtime Attributes"); 168 182 m_strScreenResolutionLabel = QApplication::translate("UIVMInformationDialog", "Screen Resolution"); … … 184 198 m_strNotDetected = QApplication::translate("UIVMInformationDialog", "Not Detected"); 185 199 200 QString* strLongest = 0; 201 foreach (QString *strLabel, m_labels) 202 { 203 if (!strLongest) 204 strLongest = strLabel; 205 if (strLabel && strLongest->length() < strLabel->length()) 206 strLongest = strLabel; 207 } 208 QFontMetrics fontMetrics(font()); 209 setColumnWidth(0, 1.5 * fontMetrics.width(*strLongest)); 210 186 211 /* Make the API calls and populate the table: */ 187 212 createInfoRows(); … … 267 292 } 268 293 resizeColumnToContents(1); 294 horizontalHeader()->setStretchLastSection(true); 269 295 } 270 296 … … 415 441 insertInfoRow(InfoRow_GuestOSType, QString("%1:").arg(m_strGuestOSTypeLabel), strOSType); 416 442 updateVRDE(); 417 418 resizeColumnToContents(0);419 443 resizeColumnToContents(1); 420 444 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r80999 r81074 247 247 } 248 248 249 250 249 /* Create Guest Process Control tab: */ 251 250 QString strMachineName;
Note:
See TracChangeset
for help on using the changeset viewer.