UIBar.cpp revision c58f1213e628a545081c70e26c6b67a841cff880
/* $Id$ */
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* UIBar class implementation
*/
/*
* Copyright (C) 2011 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/* Local includes */
#include "UIBar.h"
#include "UIImageTools.h"
#include "VBoxGlobal.h"
/* Global includes */
#include <QPaintEvent>
#include <QPainter>
#include <QVBoxLayout>
#include <QPixmapCache>
, m_pContentWidget(0)
{
}
{
if (m_pContentWidget)
// pLayout->setAlignment(pWidget, Qt::AlignCenter);
}
{
return m_pContentWidget;
}
{
return QSize(0, 0);
}
{
#ifdef Q_WS_MAC
#else /* Q_WS_MAC */
#endif /* !Q_WS_MAC */
}
#ifdef Q_WS_MAC
{
// pPainter->setPen(QColor(64, 64, 64));
// pPainter->drawLine(0, 0, s.width(), 0);
}
#else /* Q_WS_MAC */
{
}
#endif /* !Q_WS_MAC */
, m_fShowBetaLabel(false)
{
/* Check for beta versions */
if (vboxGlobal().isBeta())
m_fShowBetaLabel = true;
}
{
if (m_fShowBetaLabel)
{
{
betaLabel = ::betaLabelSleeve();
}
}
}