Changeset 50845 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 21, 2014 3:46:21 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElement.cpp
r50843 r50845 391 391 /* Create text-pane: */ 392 392 m_pTextPane = new UIGraphicsTextPane(this, model()->paintDevice()); 393 connect(m_pTextPane, SIGNAL(sigGeometryChanged()), this, SLOT(sltUpdateGeometry())); 393 394 } 394 395 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElement.h
r50843 r50845 92 92 void sltElementToggleStart(); 93 93 void sltElementToggleFinish(bool fToggled); 94 95 /** Handles children geometry changes. */ 96 void sltUpdateGeometry() { updateGeometry(); } 94 97 95 98 protected: -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsTextPane.cpp
r50843 r50845 68 68 } 69 69 70 void UIGraphicsTextPane::updateGeometry() 71 { 72 /* Call to base-class to notify layout if any: */ 73 QIGraphicsWidget::updateGeometry(); 74 75 /* And notify listeners which are not layouts: */ 76 emit sigGeometryChanged(); 77 } 78 70 79 void UIGraphicsTextPane::updateMinimumTextWidthHint() 71 80 { … … 113 122 m_iMinimumTextWidth = iMinimumTextWidth; 114 123 115 /* Notify l ayout if any: */124 /* Notify listeners: */ 116 125 updateGeometry(); 117 126 } … … 190 199 m_iMinimumTextHeight = iMinimumTextHeight; 191 200 192 /* Notify l ayout if any: */201 /* Notify listeners: */ 193 202 updateGeometry(); 194 203 } -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsTextPane.h
r50844 r50845 34 34 Q_OBJECT; 35 35 36 signals: 37 38 /** Notifies listeners about size-hint changes. */ 39 void sigGeometryChanged(); 40 36 41 public: 37 42 … … 48 53 private: 49 54 55 /** Notifies listeners about size-hint changes. */ 56 void updateGeometry(); 50 57 /** Updates minimum text width hint. */ 51 58 void updateMinimumTextWidthHint();
Note:
See TracChangeset
for help on using the changeset viewer.