Changeset 71395 in vbox
- Timestamp:
- Mar 20, 2018 11:40:33 AM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIArrowSplitter.cpp
r70523 r71395 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 22 22 /* Qt includes: */ 23 23 # include <QApplication> 24 # include <QHBoxLayout> 24 25 # include <QStyle> 25 # include <QHBoxLayout>26 26 # include <QTextEdit> 27 27 28 28 /* GUI includes: */ 29 29 # include "QIArrowSplitter.h" 30 # include "QIArrowButtonPress.h" 30 31 # include "QIArrowButtonSwitch.h" 31 # include "QIArrowButtonPress.h"32 32 # include "UIDesktopWidgetWatchdog.h" 33 33 # include "UIIconPool.h" … … 37 37 38 38 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 39 40 39 41 40 … … 50 49 public: 51 50 52 /** Construct or, passes @a pParent to the QTextEdit constructor. */51 /** Constructs details-browser passing @a pParent to the base-class. */ 53 52 QIDetailsBrowser(QWidget *pParent = 0); 54 53 … … 61 60 void updateScrollBars(); 62 61 }; 62 63 64 /********************************************************************************************************************************* 65 * Class QIDetailsBrowser implementation. * 66 *********************************************************************************************************************************/ 63 67 64 68 QIDetailsBrowser::QIDetailsBrowser(QWidget *pParent /* = 0 */) … … 117 121 } 118 122 123 124 /********************************************************************************************************************************* 125 * Class QIArrowSplitter implementation. * 126 *********************************************************************************************************************************/ 119 127 120 128 QIArrowSplitter::QIArrowSplitter(QWidget *pParent /* = 0 */) … … 224 232 /* Increase details-list index: */ 225 233 ++m_iDetailsIndex; 234 /* Update details: */ 235 updateDetails(); 236 } 237 238 void QIArrowSplitter::retranslateUi() 239 { 226 240 /* Update details: */ 227 241 updateDetails(); … … 313 327 } 314 328 315 void QIArrowSplitter::retranslateUi()316 {317 /* Update details: */318 updateDetails();319 }320 321 329 void QIArrowSplitter::updateDetails() 322 330 { -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIArrowSplitter.h
r69500 r71395 5 5 6 6 /* 7 * Copyright (C) 2006-201 7Oracle Corporation7 * Copyright (C) 2006-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 43 43 signals: 44 44 45 /** Notifies listeners about size-hint change :*/45 /** Notifies listeners about size-hint change. */ 46 46 void sigSizeHintChange(); 47 47 48 48 public: 49 49 50 /** Construct or, passes @a pParent to the QWidget constructor. */50 /** Constructs arrow splitter passing @a pParent to the base-class. */ 51 51 QIArrowSplitter(QWidget *pParent = 0); 52 52 … … 77 77 void sltSwitchDetailsPageNext(); 78 78 79 protected: 80 81 /** Handles translation event. */ 82 virtual void retranslateUi() /* override */; 83 79 84 private: 80 85 81 /** Prepare routine. */86 /** Prepares all. */ 82 87 void prepare(); 83 84 /** Retranslation routine. */85 void retranslateUi();86 88 87 89 /** Updates details. */ 88 90 void updateDetails(); 89 91 90 /** Holds the main-layout . */92 /** Holds the main-layout instance. */ 91 93 QVBoxLayout *m_pMainLayout; 92 94 93 /** Holds the switch-button . */95 /** Holds the switch-button instance. */ 94 96 QIArrowButtonSwitch *m_pSwitchButton; 95 /** Holds the back-button . */96 QIArrowButtonPress *m_pBackButton;97 /** Holds the next-button . */98 QIArrowButtonPress *m_pNextButton;97 /** Holds the back-button instance. */ 98 QIArrowButtonPress *m_pBackButton; 99 /** Holds the next-button instance. */ 100 QIArrowButtonPress *m_pNextButton; 99 101 100 102 /** Holds the details-browser. */ 101 103 QIDetailsBrowser *m_pDetailsBrowser; 102 104 /** Holds details-list. */ 103 QStringPairList m_details;105 QStringPairList m_details; 104 106 /** Holds details-list index. */ 105 int m_iDetailsIndex;107 int m_iDetailsIndex; 106 108 }; 107 109 108 110 #endif /* !___QIArrowSplitter_h___ */ 111
Note:
See TracChangeset
for help on using the changeset viewer.