Skip to content

Commit 8208c89

Browse files
committed
fix errors building on Qt 6
1 parent 2cccb0c commit 8208c89

File tree

10 files changed

+18
-15
lines changed

10 files changed

+18
-15
lines changed

libs/choruskit

libs/substate

src/plugins/audioplugin/internal/subsystem/vstconnectionsystem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <QApplication>
44
#include <QJsonDocument>
55
#include <QJsonObject>
6+
#include <QFile>
67

78
#include <TalcsCore/MixerAudioSource.h>
89
#include <TalcsCore/NoteSynthesizer.h>

src/plugins/coreplugin/internal/settings/menutoolbarpage.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,22 +82,22 @@ namespace Core {
8282

8383
{
8484
auto addActionAction = toolbar->addAction(style()->standardIcon(QStyle::SP_DialogApplyButton), tr("Add &Action"), this, &MenuToolbarPageWidget::handleAddAction);
85-
addActionAction->setShortcut(Qt::ALT + Qt::Key_Insert);
85+
addActionAction->setShortcut(Qt::ALT | Qt::Key_Insert);
8686
addActionAction->setDisabled(true);
8787
auto addSeparatorAction = toolbar->addAction(style()->standardIcon(QStyle::SP_DialogYesButton), tr("Add &Separator"), this, &MenuToolbarPageWidget::handleAddSeparator);
88-
addSeparatorAction->setShortcut(Qt::ALT + Qt::SHIFT + Qt::Key_Insert);
88+
addSeparatorAction->setShortcut(Qt::ALT | Qt::SHIFT | Qt::Key_Insert);
8989
addSeparatorAction->setDisabled(true);
9090
auto removeAction = toolbar->addAction(style()->standardIcon(QStyle::SP_DialogDiscardButton), tr("&Remove"), this, &MenuToolbarPageWidget::handleRemove);
91-
removeAction->setShortcut(Qt::ALT + Qt::Key_Delete);
91+
removeAction->setShortcut(Qt::ALT | Qt::Key_Delete);
9292
removeAction->setDisabled(true);
9393
auto editIconAction = toolbar->addAction(style()->standardIcon(QStyle::SP_DialogResetButton), tr("&Edit Icon"), this, &MenuToolbarPageWidget::handleEditIcon);
9494
editIconAction->setShortcut(Qt::Key_F4);
9595
editIconAction->setDisabled(true);
9696
auto moveUpAction = toolbar->addAction(style()->standardIcon(QStyle::SP_ArrowUp), tr("Move &Up"), this, &MenuToolbarPageWidget::handleMoveUp);
97-
moveUpAction->setShortcut(Qt::ALT + Qt::Key_Up);
97+
moveUpAction->setShortcut(Qt::ALT | Qt::Key_Up);
9898
moveUpAction->setDisabled(true);
9999
auto moveDownAction = toolbar->addAction(style()->standardIcon(QStyle::SP_ArrowDown), tr("Move &Down"), this, &MenuToolbarPageWidget::handleMoveDown);
100-
moveDownAction->setShortcut(Qt::ALT + Qt::Key_Down);
100+
moveDownAction->setShortcut(Qt::ALT | Qt::Key_Down);
101101
moveDownAction->setDisabled(true);
102102
toolbar->addSeparator();
103103
auto searchLineEdit = new QLineEdit;

src/plugins/coreplugin/internal/widgets/homerecentwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Core::Internal {
2828
AppExtra::autoPolishPopupMenu(searchBox);
2929

3030
topLayout = new QMEqualBoxLayout(QBoxLayout::LeftToRight);
31-
topLayout->setMargin(0);
31+
topLayout->setContentsMargins(0, 0, 0, 0);
3232
topLayout->setSpacing(0);
3333
topLayout->addWidget(searchBox);
3434
setLayout(topLayout);
@@ -67,7 +67,7 @@ namespace Core::Internal {
6767
emptyLabel->setObjectName("empty-label");
6868

6969
bottomLayout = new QVBoxLayout();
70-
bottomLayout->setMargin(0);
70+
bottomLayout->setContentsMargins(0, 0, 0, 0);
7171
bottomLayout->setSpacing(0);
7272

7373
bottomLayout->addWidget(fileWidget);

src/plugins/iemgr/internal/dialogs/homedialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace IEMgr::Internal {
2323

2424
// Left
2525
leftLayout = new QVBoxLayout();
26-
leftLayout->setMargin(0);
26+
leftLayout->setContentsMargins(0, 0, 0, 0);
2727
leftLayout->setSpacing(0);
2828

2929
buttonGroup = new QButtonGroup(this);
@@ -43,7 +43,7 @@ namespace IEMgr::Internal {
4343
browseButton = new QPushButton(tr("Browse"));
4444

4545
textButtonLayout = new QHBoxLayout();
46-
textButtonLayout->setMargin(0);
46+
textButtonLayout->setContentsMargins(0, 0, 0, 0);
4747
textButtonLayout->setSpacing(0);
4848

4949
hintLabel = new QLabel();
@@ -53,7 +53,7 @@ namespace IEMgr::Internal {
5353
textButtonLayout->addWidget(browseButton);
5454

5555
rightLayout = new QVBoxLayout();
56-
rightLayout->setMargin(0);
56+
rightLayout->setContentsMargins(0, 0, 0, 0);
5757
rightLayout->setSpacing(0);
5858
rightLayout->addLayout(textButtonLayout);
5959
rightLayout->addWidget(hintLabel);

src/plugins/lyrictool/core/lyricinfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "lyricinfo.h"
22

3+
#include <QStringList>
4+
35
namespace LyricTool {
46

57
class LyricInfoData : public QSharedData {

0 commit comments

Comments
 (0)