mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: fix deprecated QFlags use
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
484a50b6a8
commit
f871b8dfac
12 changed files with 18 additions and 18 deletions
|
@ -5,7 +5,7 @@
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <QShortcut>
|
#include <QShortcut>
|
||||||
|
|
||||||
SubsurfaceAbout::SubsurfaceAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
|
SubsurfaceAbout::SubsurfaceAbout(QWidget *parent) : QDialog(parent, QFlag(0))
|
||||||
{
|
{
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ class SubsurfaceAbout : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit SubsurfaceAbout(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
explicit SubsurfaceAbout(QWidget *parent = 0);
|
||||||
private
|
private
|
||||||
slots:
|
slots:
|
||||||
void on_licenseButton_clicked();
|
void on_licenseButton_clicked();
|
||||||
|
|
|
@ -107,7 +107,7 @@ void DiveHandler::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||||
emit released();
|
emit released();
|
||||||
}
|
}
|
||||||
|
|
||||||
DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
|
DivePlannerWidget::DivePlannerWidget(QWidget *parent) : QWidget(parent, QFlag(0))
|
||||||
{
|
{
|
||||||
DivePlannerPointsModel *plannerModel = DivePlannerPointsModel::instance();
|
DivePlannerPointsModel *plannerModel = DivePlannerPointsModel::instance();
|
||||||
CylindersModel *cylinders = DivePlannerPointsModel::instance()->cylindersModel();
|
CylindersModel *cylinders = DivePlannerPointsModel::instance()->cylindersModel();
|
||||||
|
@ -425,7 +425,7 @@ void DivePlannerWidget::printDecoPlan()
|
||||||
MainWindow::instance()->printPlan();
|
MainWindow::instance()->printPlan();
|
||||||
}
|
}
|
||||||
|
|
||||||
PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
|
PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent) : QWidget(parent, QFlag(0))
|
||||||
{
|
{
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ private:
|
||||||
class DivePlannerWidget : public QWidget {
|
class DivePlannerWidget : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit DivePlannerWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
explicit DivePlannerWidget(QWidget *parent = 0);
|
||||||
void setReplanButton(bool replan);
|
void setReplanButton(bool replan);
|
||||||
public
|
public
|
||||||
slots:
|
slots:
|
||||||
|
@ -67,7 +67,7 @@ private:
|
||||||
class PlannerSettingsWidget : public QWidget {
|
class PlannerSettingsWidget : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit PlannerSettingsWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
explicit PlannerSettingsWidget(QWidget *parent = 0);
|
||||||
~PlannerSettingsWidget();
|
~PlannerSettingsWidget();
|
||||||
public
|
public
|
||||||
slots:
|
slots:
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QUndoStack>
|
#include <QUndoStack>
|
||||||
|
|
||||||
DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f),
|
DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent) : QDialog(parent, QFlag(0)),
|
||||||
downloading(false),
|
downloading(false),
|
||||||
previousLast(0),
|
previousLast(0),
|
||||||
timer(new QTimer(this)),
|
timer(new QTimer(this)),
|
||||||
|
|
|
@ -25,7 +25,7 @@ class BTDiscovery;
|
||||||
class DownloadFromDCWidget : public QDialog {
|
class DownloadFromDCWidget : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit DownloadFromDCWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
explicit DownloadFromDCWidget(QWidget *parent = 0);
|
||||||
void reject();
|
void reject();
|
||||||
|
|
||||||
enum states {
|
enum states {
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
template_options::color_palette_struct ssrf_colors, almond_colors, blueshades_colors, custom_colors;
|
template_options::color_palette_struct ssrf_colors, almond_colors, blueshades_colors, custom_colors;
|
||||||
|
|
||||||
PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) :
|
PrintDialog::PrintDialog(QWidget *parent) :
|
||||||
QDialog(parent, f),
|
QDialog(parent, QFlag(0)),
|
||||||
printer(NULL),
|
printer(NULL),
|
||||||
qprinter(NULL)
|
qprinter(NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,7 +18,7 @@ class PrintDialog : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit PrintDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
explicit PrintDialog(QWidget *parent = 0);
|
||||||
~PrintDialog();
|
~PrintDialog();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -108,7 +108,7 @@ static QImage grayImage(const QImage &coloredImg)
|
||||||
return img;
|
return img;
|
||||||
}
|
}
|
||||||
|
|
||||||
StarWidget::StarWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f),
|
StarWidget::StarWidget(QWidget *parent) : QWidget(parent, QFlag(0)),
|
||||||
current(0),
|
current(0),
|
||||||
readOnly(false)
|
readOnly(false)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ enum StarConfig {
|
||||||
class StarWidget : public QWidget {
|
class StarWidget : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit StarWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
explicit StarWidget(QWidget *parent = 0);
|
||||||
int currentStars() const;
|
int currentStars() const;
|
||||||
|
|
||||||
QSize sizeHint() const override;
|
QSize sizeHint() const override;
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
#define PATH_MAX 4096
|
#define PATH_MAX 4096
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WebServices::WebServices(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f), reply(0)
|
WebServices::WebServices(QWidget *parent) : QDialog(parent, QFlag(0)), reply(0)
|
||||||
{
|
{
|
||||||
ui.setupUi(this);
|
ui.setupUi(this);
|
||||||
connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonClicked(QAbstractButton *)));
|
connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonClicked(QAbstractButton *)));
|
||||||
|
@ -252,7 +252,7 @@ void DivelogsDeWebServices::prepareDivesForUpload(bool selected)
|
||||||
exec();
|
exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
DivelogsDeWebServices::DivelogsDeWebServices(QWidget *parent, Qt::WindowFlags f) : WebServices(parent, f),
|
DivelogsDeWebServices::DivelogsDeWebServices(QWidget *parent) : WebServices(parent),
|
||||||
uploadMode(false)
|
uploadMode(false)
|
||||||
{
|
{
|
||||||
// should DivelogDE user and pass be stored in the prefs struct or something?
|
// should DivelogDE user and pass be stored in the prefs struct or something?
|
||||||
|
|
|
@ -16,7 +16,7 @@ class QHttpMultiPart;
|
||||||
class WebServices : public QDialog {
|
class WebServices : public QDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit WebServices(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
explicit WebServices(QWidget *parent = 0);
|
||||||
void hidePassword();
|
void hidePassword();
|
||||||
void hideUpload();
|
void hideUpload();
|
||||||
void hideDownload();
|
void hideDownload();
|
||||||
|
@ -66,7 +66,7 @@ slots:
|
||||||
void uploadStatus(const QString &text);
|
void uploadStatus(const QString &text);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit DivelogsDeWebServices(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
explicit DivelogsDeWebServices(QWidget *parent = 0);
|
||||||
void setStatusText(int status);
|
void setStatusText(int status);
|
||||||
void download_dialog_traverse_xml(xmlNodePtr node, unsigned int *download_status);
|
void download_dialog_traverse_xml(xmlNodePtr node, unsigned int *download_status);
|
||||||
unsigned int download_dialog_parse_response(const QByteArray &length);
|
unsigned int download_dialog_parse_response(const QByteArray &length);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue