Last change
on this file since 35740 was 28800, checked in by vboxsync, 14 years ago |
Automated rebranding to Oracle copyright/license strings via filemuncher
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Date Revision Author Id
|
File size:
1.2 KB
|
Line | |
---|
1 | /* $Id: VBoxWarningPane.cpp 28800 2010-04-27 08:22:32Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | *
|
---|
4 | * VBox frontends: Qt4 GUI ("VirtualBox"):
|
---|
5 | * VBoxWarningPane class implementation
|
---|
6 | */
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * Copyright (C) 2009 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 | /* Global includes */
|
---|
21 | #include <QHBoxLayout>
|
---|
22 |
|
---|
23 | /* Local includes */
|
---|
24 | #include "VBoxWarningPane.h"
|
---|
25 | #include "VBoxGlobal.h"
|
---|
26 |
|
---|
27 | VBoxWarningPane::VBoxWarningPane(QWidget *pParent)
|
---|
28 | : QWidget(pParent)
|
---|
29 | {
|
---|
30 | QHBoxLayout *pLayout = new QHBoxLayout(this);
|
---|
31 | VBoxGlobal::setLayoutMargin(pLayout, 0);
|
---|
32 | pLayout->addWidget(&m_icon);
|
---|
33 | pLayout->addWidget(&m_label);
|
---|
34 | setVisible(false);
|
---|
35 | }
|
---|
36 |
|
---|
37 | void VBoxWarningPane::setWarningPixmap(const QPixmap &imgPixmap)
|
---|
38 | {
|
---|
39 | m_icon.setPixmap (imgPixmap);
|
---|
40 | }
|
---|
41 |
|
---|
42 | void VBoxWarningPane::setWarningText(const QString &strText)
|
---|
43 | {
|
---|
44 | m_label.setText (strText);
|
---|
45 | }
|
---|
46 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.