- Timestamp:
- Apr 26, 2007 9:15:08 AM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/QIRichLabel.h
r1467 r2350 80 80 void setFixedHeight (int); 81 81 82 void setMaxHeightMode (bool); 83 82 84 public slots: 83 85 virtual void setText( const QString &); … … 103 105 104 106 signals: 105 void textChanged();106 107 void clickedOnLink (const QString&); 107 108 … … 134 135 QLabelPrivate *d; 135 136 QSimpleRichText *doc; 137 bool mMaxHeightMode; 136 138 137 139 friend class QTipLabel; -
trunk/src/VBox/Frontends/VirtualBox/src/QIRichLabel.cpp
r2240 r2350 93 93 void QIRichLabel::init() 94 94 { 95 mMaxHeightMode = false; 95 96 baseheight = 0; 96 97 lpixmap = 0; … … 169 170 updateLabel (osh); 170 171 171 if ( (int)baseheight < heightForWidth (width()))172 if (mMaxHeightMode && (int)baseheight < heightForWidth (width())) 172 173 { 173 174 baseheight = heightForWidth (width()); 174 175 QFrame::setFixedHeight (baseheight); 175 176 } 176 emit textChanged();177 177 } 178 178 … … 261 261 adjustSize(); // calls resize which repaints 262 262 } 263 } 264 265 266 void QIRichLabel::setMaxHeightMode (bool aEnabled) 267 { 268 mMaxHeightMode = aEnabled; 263 269 } 264 270 -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui.h
r2280 r2350 303 303 #endif 304 304 305 whatsThisLabel->setMaxHeightMode (true); 305 306 whatsThisLabel->setFocusPolicy (QWidget::NoFocus); 306 307 whatsThisLabel->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Fixed); -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r2320 r2350 418 418 #endif 419 419 420 whatsThisLabel->setMaxHeightMode (true); 420 421 whatsThisLabel->setFocusPolicy (QWidget::NoFocus); 421 422 whatsThisLabel->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Fixed);
Note:
See TracChangeset
for help on using the changeset viewer.