Changeset 10525 in vbox for trunk/src/VBox
- Timestamp:
- Jul 11, 2008 1:25:34 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSettingsDialog.cpp
r10519 r10525 192 192 void VBoxSettingsDialog::categoryChanged (int aId) 193 193 { 194 //#ifndef Q_WS_MAC 195 #if 1194 int index = mSelector->idToIndex (aId); 195 #ifndef Q_WS_MAC 196 196 # ifdef VBOX_GUI_WITH_TOOLBAR_SETTINGS 197 197 setWindowTitle (dialogTitle()); 198 198 # endif 199 199 mLbTitle->setText (mSelector->itemText (aId)); 200 mStack->setCurrentIndex ( aId);200 mStack->setCurrentIndex (index); 201 201 #else /* Q_WS_MAC */ 202 int index = mSelector->idToIndex (aId); 203 /* We will update at once later */ 204 setUpdatesEnabled (false); 205 /* Set all tab size policies to ignored */ 206 for (int i = 0; i < mStack->count(); ++i) 207 mStack->widget (i)->setSizePolicy (QSizePolicy::Preferred, QSizePolicy::Ignored); 208 /* Set the size policy of the current tab to preferred */ 209 if (mStack->widget (index)) 210 mStack->widget (index)->setSizePolicy (QSizePolicy::Preferred, QSizePolicy::Preferred); 211 /* Set the new current tab */ 212 mLbTitle->setText (::path (aItem)); 213 mStack->setCurrentIndex (index); 214 /* Activate the new layout */ 215 layout()->activate(); 216 setUpdatesEnabled (true); 217 // mAllWidget->hide(); 218 /* Play the resize animation */ 219 ::darwinWindowAnimateResize (this, QRect (x(), y(), 220 minimumSizeHint().width(), minimumSizeHint().height())); 221 // mAllWidget->show(); 222 /* Set the new size to Qt also */ 223 setFixedSize (minimumSizeHint()); 202 if (isVisible()) 203 { 204 int index = mSelector->idToIndex (aId); 205 /* We will update at once later */ 206 setUpdatesEnabled (false); 207 setMinimumSize (QSize (minimumWidth(), 0)); 208 setMaximumSize (QSize (minimumWidth(), QWIDGETSIZE_MAX)); 209 /* Set all tab size policies to ignored */ 210 for (int i = 0; i < mStack->count(); ++i) 211 mStack->widget (i)->setSizePolicy (QSizePolicy::Preferred, QSizePolicy::Ignored); 212 /* Set the size policy of the current tab to preferred */ 213 if (mStack->widget (index)) 214 mStack->widget (index)->setSizePolicy (QSizePolicy::Preferred, QSizePolicy::Preferred); 215 /* Set the new current tab */ 216 mLbTitle->setText (mSelector->itemText (aId)); 217 mStack->setCurrentIndex (index); 218 /* Activate the new layout */ 219 layout()->activate(); 220 setUpdatesEnabled (true); 221 // mAllWidget->hide(); 222 QSize s = minimumSize(); 223 int minWidth = mSelector->minWidth(); 224 if (minWidth > s.width()) 225 s.setWidth (minWidth); 226 /* Play the resize animation */ 227 ::darwinWindowAnimateResize (this, QRect (x(), y(), 228 s.width(), s.height())); 229 // mAllWidget->show(); 230 /* Set the new size to Qt also */ 231 setFixedSize (s); 232 }else 233 { 234 mLbTitle->setText (mSelector->itemText (aId)); 235 mStack->setCurrentIndex (index); 236 } 224 237 #endif /* !Q_WS_MAC */ 225 238 } … … 336 349 if (minWidth > s.width()) 337 350 s.setWidth (minWidth); 351 #ifdef Q_WS_MAC 352 setFixedSize (s); 353 #else /* Q_WS_MAC */ 338 354 resize (s); 355 #endif /* Q_WS_MAC */ 339 356 340 357 VBoxGlobal::centerWidget (this, parentWidget()); -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGLSettingsLanguage.ui
r10212 r10525 53 53 <verstretch>0</verstretch> 54 54 </sizepolicy> 55 </property> 56 <property name="minimumSize" > 57 <size> 58 <width>0</width> 59 <height>150</height> 60 </size> 55 61 </property> 56 62 <property name="whatsThis" > -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsHD.ui
r10167 r10525 23 23 <x>0</x> 24 24 <y>0</y> 25 <width>33 2</width>26 <height> 270</height>25 <width>336</width> 26 <height>306</height> 27 27 </rect> 28 28 </property> … … 70 70 <item> 71 71 <widget class="QITableView" name="mTwAts" > 72 <property name="minimumSize" > 73 <size> 74 <width>0</width> 75 <height>200</height> 76 </size> 77 </property> 72 78 <property name="contextMenuPolicy" > 73 79 <enum>Qt::ActionsContextMenu</enum> -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsSF.ui
r10167 r10525 57 57 <item> 58 58 <widget class="QTreeWidget" name="mTreeView" > 59 <property name="minimumSize" > 60 <size> 61 <width>0</width> 62 <height>200</height> 63 </size> 64 </property> 59 65 <property name="contextMenuPolicy" > 60 66 <enum>Qt::CustomContextMenu</enum>
Note:
See TracChangeset
for help on using the changeset viewer.