Commit 91ccd50e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some qt6 compile error

parent 963d8901
Pipeline #153977 passed with stage
in 2 minutes and 25 seconds
......@@ -26,7 +26,7 @@
#include <QSortFilterProxyModel>
#include <QTimer>
#include <kns3/downloaddialog.h>
#include <KNS3/QtQuickDialogWrapper>
#include <kns3/uploaddialog.h>
class SnippetFilterModel : public QSortFilterProxyModel
......@@ -322,10 +322,12 @@ void SnippetView::slotRemoveRepo()
void SnippetView::slotGHNS()
{
KNS3::DownloadDialog dialog(QStringLiteral(":/katesnippets/ktexteditor_codesnippets_core.knsrc"), this);
dialog.exec();
const auto changedEntries = dialog.changedEntries();
for (const KNS3::Entry &entry : changedEntries) {
KNS3::QtQuickDialogWrapper dialog(QStringLiteral(":/katesnippets/ktexteditor_codesnippets_core.knsrc"));
const QList<KNSCore::EntryInternal> changedEntries = dialog.exec();
if (changedEntries.isEmpty()) {
return;
}
for (const auto &entry : changedEntries) {
const auto uninstalledFiles = entry.uninstalledFiles();
for (const QString &path : uninstalledFiles) {
if (path.endsWith(QLatin1String(".xml"))) {
......
......@@ -13,6 +13,7 @@
***************************************************************************/
#include "plugin_katesymbolviewer.h"
#include <QRegExp>
void KatePluginSymbolViewerView::parsePhpSymbols(void)
{
......
......@@ -220,7 +220,7 @@ QVariant detail::TabswitcherFilesModel::data(const QModelIndex &index, int role)
return row.fullPath();
} else if (role == Qt::TextAlignmentRole) {
if (index.column() == 0) {
return Qt::AlignRight + Qt::AlignVCenter;
return QVariant(Qt::AlignRight | Qt::AlignVCenter);
} else {
return Qt::AlignVCenter;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment