Skip to content

Commit

Permalink
fix errors building on Qt 6
Browse files Browse the repository at this point in the history
  • Loading branch information
CrSjimo committed Oct 28, 2024
1 parent 2cccb0c commit 8208c89
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion libs/choruskit
2 changes: 1 addition & 1 deletion libs/substate
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <QApplication>
#include <QJsonDocument>
#include <QJsonObject>
#include <QFile>

#include <TalcsCore/MixerAudioSource.h>
#include <TalcsCore/NoteSynthesizer.h>
Expand Down
10 changes: 5 additions & 5 deletions src/plugins/coreplugin/internal/settings/menutoolbarpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,22 @@ namespace Core {

{
auto addActionAction = toolbar->addAction(style()->standardIcon(QStyle::SP_DialogApplyButton), tr("Add &Action"), this, &MenuToolbarPageWidget::handleAddAction);
addActionAction->setShortcut(Qt::ALT + Qt::Key_Insert);
addActionAction->setShortcut(Qt::ALT | Qt::Key_Insert);
addActionAction->setDisabled(true);
auto addSeparatorAction = toolbar->addAction(style()->standardIcon(QStyle::SP_DialogYesButton), tr("Add &Separator"), this, &MenuToolbarPageWidget::handleAddSeparator);
addSeparatorAction->setShortcut(Qt::ALT + Qt::SHIFT + Qt::Key_Insert);
addSeparatorAction->setShortcut(Qt::ALT | Qt::SHIFT | Qt::Key_Insert);
addSeparatorAction->setDisabled(true);
auto removeAction = toolbar->addAction(style()->standardIcon(QStyle::SP_DialogDiscardButton), tr("&Remove"), this, &MenuToolbarPageWidget::handleRemove);
removeAction->setShortcut(Qt::ALT + Qt::Key_Delete);
removeAction->setShortcut(Qt::ALT | Qt::Key_Delete);
removeAction->setDisabled(true);
auto editIconAction = toolbar->addAction(style()->standardIcon(QStyle::SP_DialogResetButton), tr("&Edit Icon"), this, &MenuToolbarPageWidget::handleEditIcon);
editIconAction->setShortcut(Qt::Key_F4);
editIconAction->setDisabled(true);
auto moveUpAction = toolbar->addAction(style()->standardIcon(QStyle::SP_ArrowUp), tr("Move &Up"), this, &MenuToolbarPageWidget::handleMoveUp);
moveUpAction->setShortcut(Qt::ALT + Qt::Key_Up);
moveUpAction->setShortcut(Qt::ALT | Qt::Key_Up);
moveUpAction->setDisabled(true);
auto moveDownAction = toolbar->addAction(style()->standardIcon(QStyle::SP_ArrowDown), tr("Move &Down"), this, &MenuToolbarPageWidget::handleMoveDown);
moveDownAction->setShortcut(Qt::ALT + Qt::Key_Down);
moveDownAction->setShortcut(Qt::ALT | Qt::Key_Down);
moveDownAction->setDisabled(true);
toolbar->addSeparator();
auto searchLineEdit = new QLineEdit;
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/coreplugin/internal/widgets/homerecentwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Core::Internal {
AppExtra::autoPolishPopupMenu(searchBox);

topLayout = new QMEqualBoxLayout(QBoxLayout::LeftToRight);
topLayout->setMargin(0);
topLayout->setContentsMargins(0, 0, 0, 0);
topLayout->setSpacing(0);
topLayout->addWidget(searchBox);
setLayout(topLayout);
Expand Down Expand Up @@ -67,7 +67,7 @@ namespace Core::Internal {
emptyLabel->setObjectName("empty-label");

bottomLayout = new QVBoxLayout();
bottomLayout->setMargin(0);
bottomLayout->setContentsMargins(0, 0, 0, 0);
bottomLayout->setSpacing(0);

bottomLayout->addWidget(fileWidget);
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/iemgr/internal/dialogs/homedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace IEMgr::Internal {

// Left
leftLayout = new QVBoxLayout();
leftLayout->setMargin(0);
leftLayout->setContentsMargins(0, 0, 0, 0);
leftLayout->setSpacing(0);

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

textButtonLayout = new QHBoxLayout();
textButtonLayout->setMargin(0);
textButtonLayout->setContentsMargins(0, 0, 0, 0);
textButtonLayout->setSpacing(0);

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

rightLayout = new QVBoxLayout();
rightLayout->setMargin(0);
rightLayout->setContentsMargins(0, 0, 0, 0);
rightLayout->setSpacing(0);
rightLayout->addLayout(textButtonLayout);
rightLayout->addWidget(hintLabel);
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/lyrictool/core/lyricinfo.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "lyricinfo.h"

#include <QStringList>

namespace LyricTool {

class LyricInfoData : public QSharedData {
Expand Down

0 comments on commit 8208c89

Please sign in to comment.