mirror of
https://gitlab.com/then-try-this/samplebrain.git
synced 2026-06-29 10:01:38 +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:
@@ -40,12 +40,10 @@ MainWindow::MainWindow() :
|
||||
setUnifiedTitleAndToolBarOnMac(true);
|
||||
|
||||
m_Ui.verticalLayout_5->setSpacing(0);
|
||||
m_Ui.verticalLayout_5->setMargin(0);
|
||||
m_Ui.verticalLayout_5->setContentsMargins(0,0,0,0);
|
||||
|
||||
m_Ui.brain_contents->setAlignment(Qt::AlignTop);
|
||||
m_Ui.brain_contents->setSpacing(0);
|
||||
m_Ui.brain_contents->setMargin(0);
|
||||
m_Ui.brain_contents->setContentsMargins(0,0,0,0);
|
||||
|
||||
// add default local dest
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <QDirIterator>
|
||||
#include <QFileDialog>
|
||||
#include <QLineEdit>
|
||||
#include "generated/ui_samplebrain.h"
|
||||
#include "ui_samplebrain.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <lo/lo.h>
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'sampleSy5241.ui'
|
||||
**
|
||||
** Created: Sat Jul 11 10:24:07 2015
|
||||
** by: Qt User Interface Compiler version 4.8.1
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef SAMPLESY5241_H
|
||||
#define SAMPLESY5241_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QCheckBox>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QPushButton>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_FormSample
|
||||
{
|
||||
public:
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QCheckBox *checkBox;
|
||||
QLabel *labelSampleName;
|
||||
QLabel *labelSampleInfo;
|
||||
QPushButton *pushButton;
|
||||
|
||||
void setupUi(QWidget *FormSample)
|
||||
{
|
||||
if (FormSample->objectName().isEmpty())
|
||||
FormSample->setObjectName(QString::fromUtf8("FormSample"));
|
||||
FormSample->resize(400, 46);
|
||||
horizontalLayout = new QHBoxLayout(FormSample);
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
checkBox = new QCheckBox(FormSample);
|
||||
checkBox->setObjectName(QString::fromUtf8("checkBox"));
|
||||
QFont font;
|
||||
font.setFamily(QString::fromUtf8("Comic Sans MS"));
|
||||
font.setBold(true);
|
||||
font.setWeight(75);
|
||||
checkBox->setFont(font);
|
||||
|
||||
horizontalLayout->addWidget(checkBox);
|
||||
|
||||
labelSampleName = new QLabel(FormSample);
|
||||
labelSampleName->setObjectName(QString::fromUtf8("labelSampleName"));
|
||||
labelSampleName->setFont(font);
|
||||
|
||||
horizontalLayout->addWidget(labelSampleName);
|
||||
|
||||
labelSampleInfo = new QLabel(FormSample);
|
||||
labelSampleInfo->setObjectName(QString::fromUtf8("labelSampleInfo"));
|
||||
labelSampleInfo->setFont(font);
|
||||
|
||||
horizontalLayout->addWidget(labelSampleInfo);
|
||||
|
||||
pushButton = new QPushButton(FormSample);
|
||||
pushButton->setObjectName(QString::fromUtf8("pushButton"));
|
||||
pushButton->setFont(font);
|
||||
|
||||
horizontalLayout->addWidget(pushButton);
|
||||
|
||||
|
||||
retranslateUi(FormSample);
|
||||
|
||||
QMetaObject::connectSlotsByName(FormSample);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QWidget *FormSample)
|
||||
{
|
||||
FormSample->setWindowTitle(QApplication::translate("FormSample", "Form", 0, QApplication::UnicodeUTF8));
|
||||
checkBox->setText(QApplication::translate("FormSample", "active", 0, QApplication::UnicodeUTF8));
|
||||
labelSampleName->setText(QApplication::translate("FormSample", "TextLabel", 0, QApplication::UnicodeUTF8));
|
||||
labelSampleInfo->setText(QApplication::translate("FormSample", "TextLabel", 0, QApplication::UnicodeUTF8));
|
||||
pushButton->setText(QApplication::translate("FormSample", "delete", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class FormSample: public Ui_FormSample {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // SAMPLESY5241_H
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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