VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp@ 35740

Last change on this file since 35740 was 32483, checked in by vboxsync, 14 years ago

FE/Qt4: style cleanup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.0 KB
Line 
1/* $Id: UIVMCloseDialog.cpp 32483 2010-09-14 13:45:07Z vboxsync $ */
2/** @file
3 *
4 * VBox frontends: Qt4 GUI ("VirtualBox"):
5 * UIVMCloseDialog class implementation
6 */
7
8/*
9 * Copyright (C) 2006-2010 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#ifdef VBOX_WITH_PRECOMPILED_HEADERS
21# include "precomp.h"
22#else /* !VBOX_WITH_PRECOMPILED_HEADERS */
23#include "UIVMCloseDialog.h"
24#include "VBoxProblemReporter.h"
25#include "UIMachineWindowNormal.h"
26
27#ifdef Q_WS_MAC
28# include "VBoxGlobal.h"
29#endif /* Q_WS_MAC */
30
31/* Qt includes */
32#include <QPushButton>
33#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
34
35UIVMCloseDialog::UIVMCloseDialog(QWidget *pParent)
36 : QIWithRetranslateUI<QIDialog>(pParent)
37{
38#ifdef Q_WS_MAC
39 /* No sheets in another mode than normal for now. Firstly it looks ugly and
40 * secondly in some cases it is broken. */
41 if (vboxGlobal().isSheetWindowsAllowed(pParent))
42 setWindowFlags(Qt::Sheet);
43#endif /* Q_WS_MAC */
44
45 /* Apply UI decorations */
46 Ui::UIVMCloseDialog::setupUi(this);
47
48#ifdef Q_WS_MAC
49 /* Make some more space around the content */
50 hboxLayout->setContentsMargins(40, 0, 40, 0);
51 vboxLayout2->insertSpacing(1, 20);
52 /* and more space between the radio buttons */
53 gridLayout->setSpacing(15);
54#endif /* Q_WS_MAC */
55 /* Set fixed size */
56 setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
57
58 connect(mButtonBox, SIGNAL(helpRequested()),
59 &vboxProblem(), SLOT(showHelpHelpDialog()));
60}
61
62void UIVMCloseDialog::retranslateUi()
63{
64 /* Translate uic generated strings */
65 Ui::UIVMCloseDialog::retranslateUi(this);
66}
67
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use