Commit 714f4831 authored by Davide Gianforte's avatar Davide Gianforte

replace deprecated QFlags::QFlags

parent 39444740
......@@ -151,7 +151,7 @@ PackGUIBase::PackGUIBase(QWidget* parent)
multipleVolume = new QCheckBox(i18n("Multiple volume archive"), advancedWidget);
connect(multipleVolume, &QCheckBox::toggled, this, &PackGUIBase::checkConsistency);
compressLayout->addWidget(multipleVolume, 0, nullptr);
compressLayout->addWidget(multipleVolume, 0, Qt::Alignment());
auto * volumeHbox = new QHBoxLayout;
......@@ -181,7 +181,7 @@ PackGUIBase::PackGUIBase(QWidget* parent)
if (level != _defaultCompressionLevel)
setCompressionLevel->setChecked(true);
connect(setCompressionLevel, &QCheckBox::toggled, this, &PackGUIBase::checkConsistency);
compressLayout->addWidget(setCompressionLevel, 0, nullptr);
compressLayout->addWidget(setCompressionLevel, 0, Qt::Alignment());
auto * sliderHbox = new QHBoxLayout;
......
......@@ -65,7 +65,7 @@ NOTE: Currently the code expects PanelViewer::openUrl() to be called only once
QList<KrViewer *> KrViewer::viewers;
KrViewer::KrViewer(QWidget *parent)
: KParts::MainWindow(parent, (Qt::WindowFlags)KDE_DEFAULT_WINDOWFLAGS), manager(this, this),
: KParts::MainWindow(parent, Qt::WindowFlags()), manager(this, this),
tabWidget(this), sizeX(-1), sizeY(-1)
{
//setWFlags(Qt::WType_TopLevel | WDestructiveClose);
......
......@@ -545,7 +545,7 @@ void KgPanel::setupButtonsTab()
};
buttonsCheckboxes = createCheckBoxGroup(1, 0, buttonsParams, 7/*count*/, tab, PAGE_PANELTOOLBAR);
connect(buttonsCheckboxes->find("Panel Toolbar visible"), &KonfiguratorCheckBox::stateChanged, this, &KgPanel::slotEnablePanelToolbar);
tabLayout->addWidget(buttonsCheckboxes, 0, nullptr);
tabLayout->addWidget(buttonsCheckboxes, 0, Qt::Alignment());
QGroupBox * panelToolbarGrp = createFrame(i18n("Visible Panel Toolbar buttons"), tab);
QGridLayout * panelToolbarGrid = createGridLayout(panelToolbarGrp);
......@@ -561,7 +561,7 @@ void KgPanel::setupButtonsTab()
sizeof(panelToolbarButtonsParams) / sizeof(*panelToolbarButtonsParams),
panelToolbarGrp, PAGE_PANELTOOLBAR);
panelToolbarGrid->addWidget(panelToolbarButtonsCheckboxes, 0, 0);
tabLayout->addWidget(panelToolbarGrp, 1, nullptr);
tabLayout->addWidget(panelToolbarGrp, 1, Qt::Alignment());
// Enable panel toolbar checkboxes
slotEnablePanelToolbar();
......@@ -709,7 +709,7 @@ void KgPanel::setupMediaMenuTab()
createCheckBoxGroup(1, 0, mediaMenuParams,
sizeof(mediaMenuParams) / sizeof(*mediaMenuParams),
tab, PAGE_MEDIA_MENU);
tabLayout->addWidget(mediaMenuCheckBoxes, 0, nullptr);
tabLayout->addWidget(mediaMenuCheckBoxes, 0, Qt::Alignment());
auto *showSizeHBox = new QHBoxLayout();
QLabel *labelShowSize = new QLabel(i18n("Show Size:"), tab);
......
......@@ -33,11 +33,12 @@
#include "../krglobal.h"
#include "../icon.h"
#include "../compat.h"
KrResultTableDialog::KrResultTableDialog(QWidget *parent, DialogType type,
const QString& caption, const QString& heading, const QString& headerIcon,
const QString& hint)
: QDialog(parent, nullptr)
: QDialog(parent, Qt::WindowFlags())
{
setWindowTitle(caption);
......
......@@ -36,7 +36,7 @@
//TODO: cache more than one byte array of data
Combiner::Combiner(QWidget* parent, QUrl baseURLIn, QUrl destinationURLIn, bool unixNamingIn) :
QProgressDialog(parent, nullptr), baseURL(std::move(baseURLIn)), destinationURL(std::move(destinationURLIn)),
QProgressDialog(parent, Qt::WindowFlags()), baseURL(std::move(baseURLIn)), destinationURL(std::move(destinationURLIn)),
hasValidSplitFile(false), fileCounter(0), permissions(-1), receivedSize(0),
statJob(nullptr), combineReadJob(nullptr), combineWriteJob(nullptr), unixNaming(unixNamingIn)
{
......
......@@ -35,7 +35,7 @@
#include <utility>
Splitter::Splitter(QWidget* parent, QUrl fileNameIn, QUrl destinationDirIn, bool overWriteIn) :
QProgressDialog(parent, nullptr),
QProgressDialog(parent, Qt::WindowFlags()),
fileName(std::move(fileNameIn)),
destinationDir(std::move(destinationDirIn)),
splitSize(0),
......
Markdown is supported
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