mirror of
https://gitlab.com/then-try-this/samplebrain.git
synced 2026-06-28 17:41:37 +00:00
Update project to Qt6:
* loaded and saved `samplebrain.ui` in Qt6 Designer * generate `ui_samplebrain.h` on the fly (via `FORMS +=`) * remove example files `sample.ui` and `ui_sample.h` * remove `setMargin()` calls, these methods have been removed * use `QFont::Bold` for `setWeight()` calls, numeric values aren't accepted anymore * qualify `spiralcore::sample` in `block.cpp`'s `normalise()`
This commit is contained in:
@@ -37,7 +37,6 @@ sound_items::sound_item &sound_items::add(QVBoxLayout *container, const string &
|
||||
|
||||
si.m_container = new QHBoxLayout();
|
||||
si.m_container->setSpacing(10);
|
||||
si.m_container->setMargin(0);
|
||||
si.m_container->setContentsMargins(0,0,0,0);
|
||||
|
||||
si.m_enable = new QCheckBox();
|
||||
@@ -56,7 +55,7 @@ sound_items::sound_item &sound_items::add(QVBoxLayout *container, const string &
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Comic Sans MS"));
|
||||
font.setBold(true);
|
||||
font.setWeight(75);
|
||||
font.setWeight(QFont::Bold);
|
||||
si.m_label->setFont(font);
|
||||
si.m_label->setContentsMargins(0,0,0,0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user