Various Qt6 compile fixes

Task-number: QTCREATORBUG-24098
Change-Id: Ia0fe92d82d4477bd8f14ee25754b114316fc878a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-06-19 16:12:42 +02:00
parent e6d1f08642
commit 736e6eada0
11 changed files with 22 additions and 9 deletions

View File

@@ -31,6 +31,7 @@
#include <QLabel>
#include <QDialogButtonBox>
#include <QListWidget>
#include <QTextCodec>
namespace Utils { class ListWidget; }
namespace Core { class BaseTextDocument; }

View File

@@ -465,7 +465,7 @@ void ReadOnlyFilesDialogPrivate::initDialog(const FilePaths &filePaths)
// Also save the buttongroup for every file to get the result for each entry.
buttonGroups.append({filePath, radioButtonGroup});
QObject::connect(radioButtonGroup, QOverload<int>::of(&QButtonGroup::buttonClicked),
QObject::connect(radioButtonGroup, QOverload<QAbstractButton *>::of(&QButtonGroup::buttonClicked),
[this] { updateSelectAll(); });
}

View File

@@ -29,6 +29,7 @@
#include "../idocument.h"
#include "documentmodel.h"
#include "ieditor.h"
#include "utils/textfileformat.h"
@@ -43,7 +44,6 @@ namespace Utils { class MimeType; }
namespace Core {
class IEditor;
class IDocument;
class SearchResultItem;

View File

@@ -453,7 +453,7 @@ ExternalTool * ExternalTool::createFromXml(const QByteArray &xml, QString *error
tool->m_environment = EnvironmentItem::fromStringList(lines);
} else {
reader.raiseError(QString::fromLatin1("Unknown element <%1> as subelement of <%2>").arg(
reader.qualifiedName().toString(), kExecutable));
reader.qualifiedName().toString(), QString(kExecutable)));
break;
}
}

View File

@@ -26,7 +26,7 @@
#pragma once
#include "core_global.h"
#include "id.h"
#include "icontext.h"
#include <QList>
#include <QMainWindow>
@@ -48,7 +48,6 @@ class InfoBar;
namespace Core {
class Context;
class IContext;
class IWizardFactory;
class SettingsDatabase;

View File

@@ -25,7 +25,8 @@
#pragma once
#include <coreplugin/core_global.h>
#include "core_global.h"
#include "generatedfile.h"
#include <QObject>
#include <QList>
@@ -38,7 +39,6 @@ QT_END_NAMESPACE
namespace Core {
class IWizardFactory;
class GeneratedFile;
/*!
Hook to add generic wizard pages to implementations of IWizard.

View File

@@ -76,6 +76,7 @@
#include <utils/stringutils.h>
#include <utils/utilsicons.h>
#include <QActionGroup>
#include <QApplication>
#include <QCloseEvent>
#include <QColorDialog>

View File

@@ -32,6 +32,7 @@
#include "locator/locatormanager.h"
#include <utils/algorithm.h>
#include <utils/porting.h>
#include <utils/qtcassert.h>
#include <utils/stringutils.h>
@@ -41,7 +42,7 @@
#include <QTimer>
QT_BEGIN_NAMESPACE
uint qHash(const QPointer<QAction> &p, uint seed)
uint qHash(const QPointer<QAction> &p, Utils::QHashSeedType seed)
{
return qHash(p.data(), seed);
}