1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
// ************************************************************************** //
//
// BornAgain: simulate and fit scattering at grazing incidence
//
//! @file GUI/coregui/Views/SampleDesigner/SampleWidgetBox.cpp
//! @brief Implements class SampleWidgetBox
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************** //
#include "GUI/coregui/Views/SampleDesigner/SampleWidgetBox.h"
#include "GUI/coregui/Views/widgetbox/widgetbox.h"
#include <QVBoxLayout>
#include <styledbar.h>
#if QT_VERSION < 0x050000
#define QStringLiteral QString
#endif
SampleWidgetBox::SampleWidgetBox(SampleDesignerInterface* core, QWidget* parent)
: QWidget(parent), m_core(core), m_widgetBox(0)
{
setWindowTitle(QLatin1String("Widget Box"));
setObjectName(QLatin1String("WidgetBox"));
// Manhattan::StyledBar *bar = new Manhattan::StyledBar(this);
setWindowTitle("Items Toolbox");
m_widgetBox = new qdesigner_internal::WidgetBox(m_core, this);
m_widgetBox->setFileName(":/widgetbox/widgetbox.xml");
m_widgetBox->load();
QVBoxLayout* layout = new QVBoxLayout;
layout->setMargin(0);
layout->setSpacing(0);
// layout->addWidget(bar);
layout->addWidget(m_widgetBox);
setLayout(layout);
}
|