Changeset 63726 in vbox for trunk/src/VBox
- Timestamp:
- Sep 5, 2016 4:23:24 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 110502
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsView.cpp
r63725 r63726 32 32 33 33 UIGDetailsView::UIGDetailsView(UIGDetails *pParent) 34 : QI GraphicsView(pParent)34 : QIWithRetranslateUI<QIGraphicsView>(pParent) 35 35 , m_pDetails(pParent) 36 36 , m_iMinimumWidthHint(0) … … 50 50 /* Update scene-rect: */ 51 51 updateSceneRect(); 52 53 /* Translate finally: */ 54 retranslateUi(); 52 55 } 53 56 … … 85 88 } 86 89 90 void UIGDetailsView::retranslateUi() 91 { 92 /* Translate this: */ 93 setToolTip(tr("Contains a list of Virtual Machine details")); 94 } 95 87 96 void UIGDetailsView::preparePalette() 88 97 { … … 96 105 { 97 106 /* Call to base-class: */ 98 QI GraphicsView::resizeEvent(pEvent);107 QIWithRetranslateUI<QIGraphicsView>::resizeEvent(pEvent); 99 108 /* Notify listeners: */ 100 109 emit sigResized(); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsView.h
r63725 r63726 21 21 /* GUI includes: */ 22 22 #include "QIGraphicsView.h" 23 #include "QIWithRetranslateUI.h" 23 24 24 25 /* Forward declarations: */ … … 26 27 27 28 /* Graphics details-view: */ 28 class UIGDetailsView : public QI GraphicsView29 class UIGDetailsView : public QIWithRetranslateUI<QIGraphicsView> 29 30 { 30 31 Q_OBJECT; … … 52 53 private: 53 54 55 /** Handles translation event. */ 56 virtual void retranslateUi() /* override */; 57 54 58 /* Helper: Prepare stuff: */ 55 59 void preparePalette();
Note:
See TracChangeset
for help on using the changeset viewer.