Changeset 45206 in vbox for trunk/src/VBox
- Timestamp:
- Mar 27, 2013 11:29:51 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp
r45192 r45206 7 7 8 8 /* 9 * Copyright (C) 2006-201 2Oracle Corporation9 * Copyright (C) 2006-2013 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 21 21 # include "precomp.h" 22 22 #else /* !VBOX_WITH_PRECOMPILED_HEADERS */ 23 /* Qt includes: */ 24 #include <QPushButton> 25 26 /* GUI includes: */ 23 27 #include "UIVMCloseDialog.h" 24 28 #include "UIMessageCenter.h" 25 29 #include "UIMachineWindowNormal.h" 26 27 #ifdef Q_WS_MAC28 # include "VBoxGlobal.h"29 #endif /* Q_WS_MAC */30 31 /* Qt includes */32 #include <QPushButton>33 30 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 34 31 … … 36 33 : QIWithRetranslateUI<QIDialog>(pParent) 37 34 { 38 /* Apply UI decorations */35 /* Apply UI decorations: */ 39 36 Ui::UIVMCloseDialog::setupUi(this); 40 37 41 38 #ifdef Q_WS_MAC 42 /* Make some more space around the content*/39 /* Add more space around the content: */ 43 40 hboxLayout->setContentsMargins(40, 0, 40, 0); 44 41 vboxLayout2->insertSpacing(1, 20); 45 /* and more space between the radio buttons*/42 /* And more space between the radio buttons: */ 46 43 gridLayout->setSpacing(15); 47 44 #endif /* Q_WS_MAC */ 48 /* Set fixed size */49 setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);50 45 46 /* Configure default button connections: */ 51 47 connect(mButtonBox, SIGNAL(helpRequested()), 52 48 &msgCenter(), SLOT(sltShowHelpHelpDialog())); … … 55 51 void UIVMCloseDialog::retranslateUi() 56 52 { 57 /* Translate uic generated strings */53 /* Translate uic generated strings: */ 58 54 Ui::UIVMCloseDialog::retranslateUi(this); 59 55 } 60 56 57 void UIVMCloseDialog::polishEvent(QShowEvent *pEvent) 58 { 59 /* Call to base-class: */ 60 QIDialog::polishEvent(pEvent); 61 62 /* Make the dialog-size fixed: */ 63 setFixedSize(size()); 64 } 65 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.h
r45192 r45206 6 6 7 7 /* 8 * Copyright (C) 2006-201 2Oracle Corporation8 * Copyright (C) 2006-2013 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 #define __UIVMCloseDialog_h__ 21 21 22 /* GUI includes: */ 23 #include "QIDialog.h" 24 #include "QIWithRetranslateUI.h" 22 25 #include "UIVMCloseDialog.gen.h" 23 #include "QIWithRetranslateUI.h"24 #include "QIDialog.h"25 26 27 /* QIDialog extension to handle Runtime UI close-event: */ 26 28 class UIVMCloseDialog : public QIWithRetranslateUI<QIDialog>, 27 29 public Ui::UIVMCloseDialog … … 31 33 public: 32 34 35 /* Constructor: */ 33 36 UIVMCloseDialog(QWidget *pParent); 34 37 35 pr otected:38 private: 36 39 40 /* Helper: Translate stuff: */ 37 41 void retranslateUi(); 42 43 /* Handler: Polish-event stuff: */ 44 void polishEvent(QShowEvent *pEvent); 38 45 }; 39 46
Note:
See TracChangeset
for help on using the changeset viewer.