2 #include <score/plugins/panel/PanelDelegate.hpp>
17 widg->setContentsMargins(3, 2, 3, 2);
18 widg->setMinimumHeight(100);
19 widg->setMaximumHeight(100);
20 widg->setMinimumWidth(180);
22 auto l =
new QVBoxLayout{widg};
24 struct FasterLabel : QLabel
26 QSize sizeHint()
const override {
return {180, 100}; }
27 QSize minimumSizeHint()
const override {
return {180, 100}; }
28 int heightForWidth(
int)
const override {
return 100; }
31 status =
new FasterLabel;
32 status->setTextFormat(Qt::RichText);
33 status->setText(
"<i>Remember those quiet evenings</i>");
34 status->setWordWrap(
true);
40 QWidget*
widget()
override {
return widg; }
44 static const PanelStatus stat{
true,
true, Qt::RightDockWidgetArea, -100000,
45 "Info",
"info", QKeySequence::HelpContents};
Definition: HelperPanelDelegate.hpp:11
const PanelStatus & defaultPanelStatus() const override
defaultPanelStatus Metadata of the panel.
Definition: HelperPanelDelegate.hpp:42
QWidget * widget() override
widget The widget of the panel.
Definition: HelperPanelDelegate.hpp:40
The PanelDelegate class.
Definition: PanelDelegate.hpp:50
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15
The PanelStatus struct.
Definition: PanelDelegate.hpp:24