2009-12-07 15:14:08 +01:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2012-01-26 18:33:46 +01:00
|
|
|
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
2009-12-07 15:14:08 +01:00
|
|
|
**
|
2011-11-02 15:59:12 +01:00
|
|
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
2009-12-07 15:14:08 +01:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** This file may be used under the terms of the GNU Lesser General Public
|
|
|
|
|
** License version 2.1 as published by the Free Software Foundation and
|
|
|
|
|
** appearing in the file LICENSE.LGPL included in the packaging of this file.
|
|
|
|
|
** Please review the following information to ensure the GNU Lesser General
|
|
|
|
|
** Public License version 2.1 requirements will be met:
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2009-12-07 15:14:08 +01:00
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-04-13 08:42:33 +02:00
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
2010-12-17 16:01:08 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Other Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** If you have questions regarding the use of this file, please contact
|
2011-11-02 15:59:12 +01:00
|
|
|
** Nokia at qt-info@nokia.com.
|
2009-12-07 15:14:08 +01:00
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
2009-10-01 14:39:31 +02:00
|
|
|
#include "detailswidget.h"
|
|
|
|
|
#include "detailsbutton.h"
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QStack>
|
|
|
|
|
#include <QPropertyAnimation>
|
2009-12-07 15:14:08 +01:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QGridLayout>
|
|
|
|
|
#include <QLabel>
|
|
|
|
|
#include <QCheckBox>
|
|
|
|
|
#include <QPainter>
|
|
|
|
|
#include <QScrollArea>
|
|
|
|
|
#include <QApplication>
|
2009-10-01 14:39:31 +02:00
|
|
|
|
2011-03-02 17:13:33 +01:00
|
|
|
/*!
|
|
|
|
|
\class Utils::DetailsWidget
|
|
|
|
|
|
|
|
|
|
\brief Widget a button to expand a 'Details' area.
|
|
|
|
|
|
|
|
|
|
This widget is using a grid layout and places the items
|
|
|
|
|
in the following way:
|
|
|
|
|
|
|
|
|
|
\code
|
|
|
|
|
+------------+-------------------------+---------------+
|
|
|
|
|
+summaryLabel| toolwidget | detailsButton |
|
|
|
|
|
+------------+-------------------------+---------------+
|
2011-03-14 14:33:48 +01:00
|
|
|
+ additional summary |
|
|
|
|
|
+------------+-------------------------+---------------+
|
2011-03-02 17:13:33 +01:00
|
|
|
| widget |
|
|
|
|
|
+------------+-------------------------+---------------+
|
|
|
|
|
\endcode
|
|
|
|
|
*/
|
|
|
|
|
|
2010-02-02 09:59:55 +01:00
|
|
|
namespace Utils {
|
2009-10-01 14:39:31 +02:00
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
static const int MARGIN = 8;
|
|
|
|
|
|
|
|
|
|
class DetailsWidgetPrivate
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
DetailsWidgetPrivate(QWidget *parent);
|
|
|
|
|
|
2012-06-06 22:52:14 +02:00
|
|
|
QPixmap cacheBackground(const QSize &size);
|
2011-05-18 16:48:36 +02:00
|
|
|
void updateControls();
|
|
|
|
|
void changeHoverState(bool hovered);
|
|
|
|
|
|
|
|
|
|
QWidget *q;
|
|
|
|
|
DetailsButton *m_detailsButton;
|
|
|
|
|
QGridLayout *m_grid;
|
|
|
|
|
QLabel *m_summaryLabel;
|
|
|
|
|
QCheckBox *m_summaryCheckBox;
|
|
|
|
|
QLabel *m_additionalSummaryLabel;
|
|
|
|
|
Utils::FadingPanel *m_toolWidget;
|
|
|
|
|
QWidget *m_widget;
|
|
|
|
|
|
|
|
|
|
QPixmap m_collapsedPixmap;
|
|
|
|
|
QPixmap m_expandedPixmap;
|
|
|
|
|
|
|
|
|
|
DetailsWidget::State m_state;
|
|
|
|
|
bool m_hovered;
|
|
|
|
|
bool m_useCheckBox;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
DetailsWidgetPrivate::DetailsWidgetPrivate(QWidget *parent) :
|
|
|
|
|
q(parent),
|
|
|
|
|
m_detailsButton(new DetailsButton),
|
|
|
|
|
m_grid(new QGridLayout),
|
|
|
|
|
m_summaryLabel(new QLabel(parent)),
|
|
|
|
|
m_summaryCheckBox(new QCheckBox(parent)),
|
|
|
|
|
m_additionalSummaryLabel(new QLabel(parent)),
|
|
|
|
|
m_toolWidget(0),
|
|
|
|
|
m_widget(0),
|
|
|
|
|
m_state(DetailsWidget::Collapsed),
|
|
|
|
|
m_hovered(false),
|
|
|
|
|
m_useCheckBox(false)
|
|
|
|
|
{
|
2011-07-25 15:59:53 +00:00
|
|
|
QHBoxLayout *summaryLayout = new QHBoxLayout;
|
|
|
|
|
summaryLayout->setContentsMargins(MARGIN, MARGIN, MARGIN, MARGIN);
|
|
|
|
|
summaryLayout->setSpacing(0);
|
|
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
m_summaryLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse);
|
2011-08-24 11:04:19 +02:00
|
|
|
m_summaryLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
|
2011-07-25 15:59:53 +00:00
|
|
|
m_summaryLabel->setContentsMargins(0, 0, 0, 0);
|
|
|
|
|
summaryLayout->addWidget(m_summaryLabel);
|
2011-05-18 16:48:36 +02:00
|
|
|
|
2011-08-24 11:04:19 +02:00
|
|
|
m_summaryCheckBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
|
2011-05-18 16:48:36 +02:00
|
|
|
m_summaryCheckBox->setAttribute(Qt::WA_LayoutUsesWidgetRect); /* broken layout on mac otherwise */
|
|
|
|
|
m_summaryCheckBox->setVisible(false);
|
2011-07-25 15:59:53 +00:00
|
|
|
m_summaryCheckBox->setContentsMargins(0, 0, 0, 0);
|
|
|
|
|
summaryLayout->addWidget(m_summaryCheckBox);
|
2011-05-18 16:48:36 +02:00
|
|
|
|
|
|
|
|
m_additionalSummaryLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
2011-08-24 11:04:19 +02:00
|
|
|
m_additionalSummaryLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
|
2011-05-18 16:48:36 +02:00
|
|
|
m_additionalSummaryLabel->setContentsMargins(MARGIN, MARGIN, MARGIN, MARGIN);
|
|
|
|
|
m_additionalSummaryLabel->setWordWrap(true);
|
|
|
|
|
m_additionalSummaryLabel->setVisible(false);
|
|
|
|
|
|
|
|
|
|
m_grid->setContentsMargins(0, 0, 0, 0);
|
|
|
|
|
m_grid->setSpacing(0);
|
2011-07-25 15:59:53 +00:00
|
|
|
m_grid->addLayout(summaryLayout, 0, 0);
|
2011-05-18 16:48:36 +02:00
|
|
|
m_grid->addWidget(m_detailsButton, 0, 2);
|
|
|
|
|
m_grid->addWidget(m_additionalSummaryLabel, 1, 0, 1, 3);
|
|
|
|
|
}
|
|
|
|
|
|
2012-06-06 22:52:14 +02:00
|
|
|
QPixmap DetailsWidgetPrivate::cacheBackground(const QSize &size)
|
2011-05-18 16:48:36 +02:00
|
|
|
{
|
|
|
|
|
QPixmap pixmap(size);
|
|
|
|
|
pixmap.fill(Qt::transparent);
|
|
|
|
|
QPainter p(&pixmap);
|
|
|
|
|
|
2011-12-08 14:29:24 +01:00
|
|
|
int topHeight = m_useCheckBox ? m_summaryCheckBox->height() : m_summaryLabel->height();
|
|
|
|
|
if (m_state == DetailsWidget::Expanded || m_state == DetailsWidget::Collapsed) // Details Button is shown
|
|
|
|
|
topHeight = qMax(m_detailsButton->height(), topHeight);
|
|
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
QRect topRect(0, 0, size.width(), topHeight);
|
|
|
|
|
QRect fullRect(0, 0, size.width(), size.height());
|
2012-01-25 10:25:05 +01:00
|
|
|
#ifdef Q_OS_MAC
|
2011-05-18 16:48:36 +02:00
|
|
|
p.fillRect(fullRect, qApp->palette().window().color());
|
|
|
|
|
#endif
|
|
|
|
|
p.fillRect(fullRect, QColor(255, 255, 255, 40));
|
|
|
|
|
|
|
|
|
|
QLinearGradient lg(topRect.topLeft(), topRect.bottomLeft());
|
|
|
|
|
lg.setColorAt(0, QColor(255, 255, 255, 130));
|
|
|
|
|
lg.setColorAt(1, QColor(255, 255, 255, 0));
|
|
|
|
|
p.fillRect(topRect, lg);
|
|
|
|
|
p.setRenderHint(QPainter::Antialiasing, true);
|
|
|
|
|
p.translate(0.5, 0.5);
|
|
|
|
|
p.setPen(QColor(0, 0, 0, 40));
|
|
|
|
|
p.setBrush(Qt::NoBrush);
|
|
|
|
|
p.drawRoundedRect(fullRect.adjusted(0, 0, -1, -1), 2, 2);
|
|
|
|
|
p.setBrush(Qt::NoBrush);
|
|
|
|
|
p.setPen(QColor(255,255,255,140));
|
|
|
|
|
p.drawRoundedRect(fullRect.adjusted(1, 1, -2, -2), 2, 2);
|
|
|
|
|
p.setPen(QPen(q->palette().color(QPalette::Mid)));
|
|
|
|
|
|
|
|
|
|
return pixmap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidgetPrivate::updateControls()
|
|
|
|
|
{
|
|
|
|
|
if (m_widget)
|
|
|
|
|
m_widget->setVisible(m_state == DetailsWidget::Expanded || m_state == DetailsWidget::NoSummary);
|
|
|
|
|
m_detailsButton->setChecked(m_state == DetailsWidget::Expanded && m_widget);
|
2011-12-08 14:29:24 +01:00
|
|
|
m_detailsButton->setVisible(m_state == DetailsWidget::Expanded || m_state == DetailsWidget::Collapsed);
|
2011-05-18 16:48:36 +02:00
|
|
|
m_summaryLabel->setVisible(m_state != DetailsWidget::NoSummary && !m_useCheckBox);
|
|
|
|
|
m_summaryCheckBox->setVisible(m_state != DetailsWidget::NoSummary && m_useCheckBox);
|
|
|
|
|
|
|
|
|
|
for (QWidget *w = q; w; w = w->parentWidget()) {
|
|
|
|
|
if (w->layout())
|
|
|
|
|
w->layout()->activate();
|
|
|
|
|
if (QScrollArea *area = qobject_cast<QScrollArea*>(w)) {
|
|
|
|
|
QEvent e(QEvent::LayoutRequest);
|
|
|
|
|
QCoreApplication::sendEvent(area, &e);
|
2010-02-23 15:29:47 +01:00
|
|
|
}
|
|
|
|
|
}
|
2011-05-18 16:48:36 +02:00
|
|
|
}
|
2009-10-02 10:12:32 +02:00
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
void DetailsWidgetPrivate::changeHoverState(bool hovered)
|
|
|
|
|
{
|
|
|
|
|
if (!m_toolWidget)
|
|
|
|
|
return;
|
|
|
|
|
#ifdef Q_OS_MAC
|
2012-01-23 14:55:58 +01:00
|
|
|
m_toolWidget->setOpacity(hovered ? 1.0 : 0);
|
2011-05-18 16:48:36 +02:00
|
|
|
#else
|
|
|
|
|
m_toolWidget->fadeTo(hovered ? 1.0 : 0);
|
|
|
|
|
#endif
|
|
|
|
|
m_hovered = hovered;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DetailsWidget::DetailsWidget(QWidget *parent) :
|
|
|
|
|
QWidget(parent),
|
|
|
|
|
d(new DetailsWidgetPrivate(this))
|
|
|
|
|
{
|
|
|
|
|
setLayout(d->m_grid);
|
|
|
|
|
|
2011-07-25 15:59:53 +00:00
|
|
|
setUseCheckBox(false);
|
|
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
connect(d->m_detailsButton, SIGNAL(toggled(bool)),
|
|
|
|
|
this, SLOT(setExpanded(bool)));
|
|
|
|
|
connect(d->m_summaryCheckBox, SIGNAL(toggled(bool)),
|
|
|
|
|
this, SIGNAL(checked(bool)));
|
|
|
|
|
connect(d->m_summaryLabel, SIGNAL(linkActivated(QString)),
|
|
|
|
|
this, SIGNAL(linkActivated(QString)));
|
|
|
|
|
d->updateControls();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DetailsWidget::~DetailsWidget()
|
|
|
|
|
{
|
|
|
|
|
delete d;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool DetailsWidget::useCheckBox()
|
|
|
|
|
{
|
|
|
|
|
return d->m_useCheckBox;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::setUseCheckBox(bool b)
|
|
|
|
|
{
|
|
|
|
|
d->m_useCheckBox = b;
|
|
|
|
|
d->m_summaryLabel->setVisible(b);
|
|
|
|
|
d->m_summaryCheckBox->setVisible(!b);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::setChecked(bool b)
|
|
|
|
|
{
|
|
|
|
|
d->m_summaryCheckBox->setChecked(b);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool DetailsWidget::isChecked() const
|
|
|
|
|
{
|
|
|
|
|
return d->m_useCheckBox && d->m_summaryCheckBox->isChecked();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::setSummaryFontBold(bool b)
|
|
|
|
|
{
|
|
|
|
|
QFont f;
|
|
|
|
|
f.setBold(b);
|
|
|
|
|
d->m_summaryCheckBox->setFont(f);
|
|
|
|
|
d->m_summaryLabel->setFont(f);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::setIcon(const QIcon &icon)
|
|
|
|
|
{
|
|
|
|
|
d->m_summaryCheckBox->setIcon(icon);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::paintEvent(QPaintEvent *paintEvent)
|
|
|
|
|
{
|
|
|
|
|
QWidget::paintEvent(paintEvent);
|
|
|
|
|
|
|
|
|
|
QPainter p(this);
|
|
|
|
|
|
|
|
|
|
QWidget *topLeftWidget = d->m_useCheckBox ? static_cast<QWidget *>(d->m_summaryCheckBox) : static_cast<QWidget *>(d->m_summaryLabel);
|
2011-07-25 15:59:53 +00:00
|
|
|
QPoint topLeft(topLeftWidget->geometry().left() - MARGIN, contentsRect().top());
|
2011-05-18 16:48:36 +02:00
|
|
|
const QRect paintArea(topLeft, contentsRect().bottomRight());
|
|
|
|
|
|
2011-12-08 14:29:24 +01:00
|
|
|
if (d->m_state == Collapsed) {
|
2011-05-18 16:48:36 +02:00
|
|
|
if (d->m_collapsedPixmap.isNull() ||
|
|
|
|
|
d->m_collapsedPixmap.size() != size())
|
2012-06-06 22:52:14 +02:00
|
|
|
d->m_collapsedPixmap = d->cacheBackground(paintArea.size());
|
2011-05-18 16:48:36 +02:00
|
|
|
p.drawPixmap(paintArea, d->m_collapsedPixmap);
|
|
|
|
|
} else {
|
|
|
|
|
if (d->m_expandedPixmap.isNull() ||
|
|
|
|
|
d->m_expandedPixmap.size() != size())
|
2012-06-06 22:52:14 +02:00
|
|
|
d->m_expandedPixmap = d->cacheBackground(paintArea.size());
|
2011-05-18 16:48:36 +02:00
|
|
|
p.drawPixmap(paintArea, d->m_expandedPixmap);
|
2010-03-10 19:19:46 +01:00
|
|
|
}
|
2011-05-18 16:48:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::enterEvent(QEvent * event)
|
|
|
|
|
{
|
|
|
|
|
QWidget::enterEvent(event);
|
|
|
|
|
d->changeHoverState(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::leaveEvent(QEvent * event)
|
|
|
|
|
{
|
|
|
|
|
QWidget::leaveEvent(event);
|
|
|
|
|
d->changeHoverState(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::setSummaryText(const QString &text)
|
|
|
|
|
{
|
|
|
|
|
if (d->m_useCheckBox)
|
|
|
|
|
d->m_summaryCheckBox->setText(text);
|
|
|
|
|
else
|
|
|
|
|
d->m_summaryLabel->setText(text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString DetailsWidget::summaryText() const
|
|
|
|
|
{
|
|
|
|
|
if (d->m_useCheckBox)
|
|
|
|
|
return d->m_summaryCheckBox->text();
|
|
|
|
|
return d->m_summaryLabel->text();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString DetailsWidget::additionalSummaryText() const
|
|
|
|
|
{
|
|
|
|
|
return d->m_additionalSummaryLabel->text();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::setAdditionalSummaryText(const QString &text)
|
|
|
|
|
{
|
|
|
|
|
d->m_additionalSummaryLabel->setText(text);
|
|
|
|
|
d->m_additionalSummaryLabel->setVisible(!text.isEmpty());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DetailsWidget::State DetailsWidget::state() const
|
|
|
|
|
{
|
|
|
|
|
return d->m_state;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::setState(State state)
|
|
|
|
|
{
|
|
|
|
|
if (state == d->m_state)
|
|
|
|
|
return;
|
|
|
|
|
d->m_state = state;
|
|
|
|
|
d->updateControls();
|
2011-09-21 15:17:24 +02:00
|
|
|
emit expanded(d->m_state == Expanded);
|
2011-05-18 16:48:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::setExpanded(bool expanded)
|
|
|
|
|
{
|
|
|
|
|
setState(expanded ? Expanded : Collapsed);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QWidget *DetailsWidget::widget() const
|
|
|
|
|
{
|
|
|
|
|
return d->m_widget;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DetailsWidget::setWidget(QWidget *widget)
|
|
|
|
|
{
|
|
|
|
|
if (d->m_widget == widget)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
if (d->m_widget) {
|
|
|
|
|
d->m_grid->removeWidget(d->m_widget);
|
|
|
|
|
delete d->m_widget;
|
2010-03-10 19:19:46 +01:00
|
|
|
}
|
2009-11-30 15:16:05 +01:00
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
d->m_widget = widget;
|
2009-11-30 15:16:05 +01:00
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
if (d->m_widget) {
|
|
|
|
|
d->m_widget->setContentsMargins(MARGIN, MARGIN, MARGIN, MARGIN);
|
|
|
|
|
d->m_grid->addWidget(d->m_widget, 2, 0, 1, 3);
|
2010-03-10 19:19:46 +01:00
|
|
|
}
|
2011-05-18 16:48:36 +02:00
|
|
|
d->updateControls();
|
|
|
|
|
}
|
2010-03-10 19:19:46 +01:00
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
void DetailsWidget::setToolWidget(Utils::FadingPanel *widget)
|
|
|
|
|
{
|
|
|
|
|
if (d->m_toolWidget == widget)
|
|
|
|
|
return;
|
2009-11-30 15:16:05 +01:00
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
d->m_toolWidget = widget;
|
2009-11-30 15:16:05 +01:00
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
if (!d->m_toolWidget)
|
|
|
|
|
return;
|
2009-11-30 15:16:05 +01:00
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
d->m_toolWidget->adjustSize();
|
|
|
|
|
d->m_grid->addWidget(d->m_toolWidget, 0, 1, 1, 1, Qt::AlignRight);
|
2009-10-01 14:39:31 +02:00
|
|
|
|
2012-01-25 10:25:05 +01:00
|
|
|
#ifdef Q_OS_MAC
|
2011-05-18 16:48:36 +02:00
|
|
|
d->m_toolWidget->setOpacity(1.0);
|
2010-11-16 12:30:50 +01:00
|
|
|
#endif
|
2011-05-18 16:48:36 +02:00
|
|
|
d->changeHoverState(d->m_hovered);
|
|
|
|
|
}
|
2010-03-10 19:19:46 +01:00
|
|
|
|
2011-05-18 16:48:36 +02:00
|
|
|
QWidget *DetailsWidget::toolWidget() const
|
|
|
|
|
{
|
|
|
|
|
return d->m_toolWidget;
|
|
|
|
|
}
|
2010-02-02 09:59:55 +01:00
|
|
|
|
|
|
|
|
} // namespace Utils
|