Changeset 71553 in vbox
- Timestamp:
- Mar 28, 2018 5:28:44 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 121532
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.cpp
r71355 r71553 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 … … 59 59 #endif 60 60 , m_strVersion(strVersion) 61 , m_pMainLayout(0) 61 62 , m_pLabel(0) 62 63 { … … 70 71 if (pEvent->type() == QEvent::Polish) 71 72 setFixedSize(m_size); 73 72 74 /* Call to base-class: */ 73 75 return QIDialog::event(pEvent); 74 76 } 75 77 76 void VBoxAboutDlg::paintEvent(QPaintEvent * /* pEvent */) 77 { 78 void VBoxAboutDlg::paintEvent(QPaintEvent *) 79 { 80 /* Draw About-VirtualBox background image: */ 78 81 QPainter painter(this); 79 /* Draw About-VirtualBox background image: */80 82 painter.drawPixmap(0, 0, m_pixmap); 81 83 } … … 154 156 /* Create main-layout: */ 155 157 m_pMainLayout = new QVBoxLayout(this); 156 AssertPtrReturnVoid(m_pMainLayout);158 if (m_pMainLayout) 157 159 { 158 160 /* Prepare label: */ … … 168 170 /* Create label for version text: */ 169 171 m_pLabel = new QLabel; 170 AssertPtrReturnVoid(m_pLabel);172 if (m_pLabel) 171 173 { 172 174 /* Prepare label for version text: */ … … 193 195 /* Create button-box: */ 194 196 QDialogButtonBox *pButtonBox = new QDialogButtonBox; 195 AssertPtrReturnVoid(pButtonBox);197 if (pButtonBox) 196 198 { 197 199 /* Create close-button: */ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxAboutDlg.h
r69500 r71553 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 … … 39 39 public: 40 40 41 /** Constructs dialog passing @a pParent to the QWidget base-class constructor.42 * @param strVersion is used to specifythe version number of VirtualBox. */41 /** Constructs dialog passing @a pParent to the base-class. 42 * @param strVersion Brings the version number of VirtualBox. */ 43 43 VBoxAboutDlg(QWidget *pParent, const QString &strVersion); 44 44 … … 46 46 47 47 /** Handles any Qt @a pEvent. */ 48 bool event(QEvent *pEvent);48 virtual bool event(QEvent *pEvent) /* override */; 49 49 50 /** Handles Qtpaint @a pEvent. */51 v oid paintEvent(QPaintEvent *pEvent);50 /** Handles paint @a pEvent. */ 51 virtual void paintEvent(QPaintEvent *pEvent) /* override */; 52 52 53 53 /** Handles translation event. */ 54 v oid retranslateUi();54 virtual void retranslateUi() /* override */; 55 55 56 56 private: 57 57 58 /** Prepares About-VirtualBox dialog. */58 /** Prepares all. */ 59 59 void prepare(); 60 61 60 /** Prepares main-layout. */ 62 61 void prepareMainLayout(); 63 64 62 /** Prepares label. */ 65 63 void prepareLabel(); 66 67 64 /** Prepares close-button. */ 68 65 void prepareCloseButton(); … … 72 69 73 70 /** Holds the About-VirtualBox text. */ 74 QString m_strAboutText; 75 71 QString m_strAboutText; 76 72 /** Holds the VirtualBox version number. */ 77 QString m_strVersion;73 QString m_strVersion; 78 74 79 75 /** Holds the About-VirtualBox image. */ 80 QPixmap m_pixmap; 76 QPixmap m_pixmap; 77 /** Holds the About-VirtualBox dialog size. */ 78 QSize m_size; 81 79 82 /** Holds the About-VirtualBox dialog size. */ 83 QSize m_size; 84 85 /** Holds the instance of label we create for About-VirtualBox text. */ 86 QLabel *m_pLabel; 87 88 /** Holds the instance of main-layout we create. */ 80 /** Holds About-VirtualBox main-layout instance. */ 89 81 QVBoxLayout *m_pMainLayout; 82 /** Holds About-VirtualBox text-label instance. */ 83 QLabel *m_pLabel; 90 84 }; 91 85
Note:
See TracChangeset
for help on using the changeset viewer.