MarginLess.hpp
1 #pragma once
2 
3 #include <QWidget>
4 
5 namespace score
6 {
12 template <typename Layout>
13 class MarginLess final : public Layout
14 {
15 public:
16  MarginLess(QWidget* widg)
17  : Layout{widg}
18  {
19  this->setContentsMargins(0, 0, 0, 0);
20  this->setSpacing(4);
21  widg->setLayout(this);
22  }
23  MarginLess()
24  {
25  this->setContentsMargins(0, 0, 0, 0);
26  this->setSpacing(4);
27  }
28 };
29 }
The MarginLess class.
Definition: MarginLess.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90