16 #include "BAVersion.h"
19 #include <QHBoxLayout>
21 #include <QPushButton>
22 #include <QVBoxLayout>
30 const QString str_open =
"Open";
31 const QString str_new =
"New";
39 auto layout =
new QVBoxLayout(
this);
41 QPixmap logo(
":/icons/F-letter_1000x.png");
42 auto label =
new QLabel;
43 label->setPixmap(logo.scaled(logo_width(), logo_width(), Qt::KeepAspectRatio));
46 layout->addWidget(label, 0, Qt::AlignHCenter);
66 auto result =
new QHBoxLayout;
68 "BornAgain " + QString::fromStdString(BornAgain::GetVersionNumber()) +
", gui2 preview";
69 auto label =
new QLabel(title);
72 result->addWidget(label, 0, Qt::AlignHCenter);
78 auto result =
new QHBoxLayout;
91 result->addStretch(1);
95 result->addStretch(1);
MVVM_VIEW_EXPORT QSize SizeOfLetterM()
Returns size corresponding to actual size of letter M basing on current font metrics.
MVVM_VIEW_EXPORT QString ClickableText(const QString &text, const QString &tag={})
Returns text wrapped into 'href' tag to provide clickable links in QLabel.
MVVM_VIEW_EXPORT void ScaleLabelFont(QLabel *label, double scale)
Set label's font size to system font size scaled by given factor.
MVVM_VIEW_EXPORT int WidthOfLetterM()
Returns width of the letter 'M' deduced from current font metrics.
DAREFLCORE_EXPORT QSize DockMinimumSizeHint()
Hint on minimum size of docks on main reflectometry window.
DAREFLCORE_EXPORT QSize DockSizeHint()
Hint on size of docks on main reflectometry window.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.