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 <QShortcut>
|
||||
|
||||
SubsurfaceAbout::SubsurfaceAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
|
||||
SubsurfaceAbout::SubsurfaceAbout(QWidget *parent) : QDialog(parent, QFlag(0))
|
||||
{
|
||||
ui.setupUi(this);
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ class SubsurfaceAbout : public QDialog {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SubsurfaceAbout(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
explicit SubsurfaceAbout(QWidget *parent = 0);
|
||||
private
|
||||
slots:
|
||||
void on_licenseButton_clicked();
|
||||
|
|
|
@ -107,7 +107,7 @@ void DiveHandler::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
|||
emit released();
|
||||
}
|
||||
|
||||
DivePlannerWidget::DivePlannerWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
|
||||
DivePlannerWidget::DivePlannerWidget(QWidget *parent) : QWidget(parent, QFlag(0))
|
||||
{
|
||||
DivePlannerPointsModel *plannerModel = DivePlannerPointsModel::instance();
|
||||
CylindersModel *cylinders = DivePlannerPointsModel::instance()->cylindersModel();
|
||||
|
@ -214,7 +214,7 @@ void DivePlannerWidget::setSalinity(int salinity)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!mapped) {
|
||||
/* Assign to last element "custom" in combo box */
|
||||
ui.waterType->setItemData(ui.waterType->count()-1, salinity);
|
||||
|
@ -425,7 +425,7 @@ void DivePlannerWidget::printDecoPlan()
|
|||
MainWindow::instance()->printPlan();
|
||||
}
|
||||
|
||||
PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
|
||||
PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent) : QWidget(parent, QFlag(0))
|
||||
{
|
||||
ui.setupUi(this);
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ private:
|
|||
class DivePlannerWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit DivePlannerWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
explicit DivePlannerWidget(QWidget *parent = 0);
|
||||
void setReplanButton(bool replan);
|
||||
public
|
||||
slots:
|
||||
|
@ -67,7 +67,7 @@ private:
|
|||
class PlannerSettingsWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit PlannerSettingsWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
explicit PlannerSettingsWidget(QWidget *parent = 0);
|
||||
~PlannerSettingsWidget();
|
||||
public
|
||||
slots:
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <QTimer>
|
||||
#include <QUndoStack>
|
||||
|
||||
DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f),
|
||||
DownloadFromDCWidget::DownloadFromDCWidget(QWidget *parent) : QDialog(parent, QFlag(0)),
|
||||
downloading(false),
|
||||
previousLast(0),
|
||||
timer(new QTimer(this)),
|
||||
|
|
|
@ -25,7 +25,7 @@ class BTDiscovery;
|
|||
class DownloadFromDCWidget : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit DownloadFromDCWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
explicit DownloadFromDCWidget(QWidget *parent = 0);
|
||||
void reject();
|
||||
|
||||
enum states {
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
|
||||
template_options::color_palette_struct ssrf_colors, almond_colors, blueshades_colors, custom_colors;
|
||||
|
||||
PrintDialog::PrintDialog(QWidget *parent, Qt::WindowFlags f) :
|
||||
QDialog(parent, f),
|
||||
PrintDialog::PrintDialog(QWidget *parent) :
|
||||
QDialog(parent, QFlag(0)),
|
||||
printer(NULL),
|
||||
qprinter(NULL)
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@ class PrintDialog : public QDialog {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PrintDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
explicit PrintDialog(QWidget *parent = 0);
|
||||
~PrintDialog();
|
||||
|
||||
private:
|
||||
|
|
|
@ -108,7 +108,7 @@ static QImage grayImage(const QImage &coloredImg)
|
|||
return img;
|
||||
}
|
||||
|
||||
StarWidget::StarWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f),
|
||||
StarWidget::StarWidget(QWidget *parent) : QWidget(parent, QFlag(0)),
|
||||
current(0),
|
||||
readOnly(false)
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ enum StarConfig {
|
|||
class StarWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit StarWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
explicit StarWidget(QWidget *parent = 0);
|
||||
int currentStars() const;
|
||||
|
||||
QSize sizeHint() const override;
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#define PATH_MAX 4096
|
||||
#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);
|
||||
connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonClicked(QAbstractButton *)));
|
||||
|
@ -252,7 +252,7 @@ void DivelogsDeWebServices::prepareDivesForUpload(bool selected)
|
|||
exec();
|
||||
}
|
||||
|
||||
DivelogsDeWebServices::DivelogsDeWebServices(QWidget *parent, Qt::WindowFlags f) : WebServices(parent, f),
|
||||
DivelogsDeWebServices::DivelogsDeWebServices(QWidget *parent) : WebServices(parent),
|
||||
uploadMode(false)
|
||||
{
|
||||
// should DivelogDE user and pass be stored in the prefs struct or something?
|
||||
|
|
|
@ -16,7 +16,7 @@ class QHttpMultiPart;
|
|||
class WebServices : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit WebServices(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
explicit WebServices(QWidget *parent = 0);
|
||||
void hidePassword();
|
||||
void hideUpload();
|
||||
void hideDownload();
|
||||
|
@ -66,7 +66,7 @@ slots:
|
|||
void uploadStatus(const QString &text);
|
||||
|
||||
private:
|
||||
explicit DivelogsDeWebServices(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
||||
explicit DivelogsDeWebServices(QWidget *parent = 0);
|
||||
void setStatusText(int status);
|
||||
void download_dialog_traverse_xml(xmlNodePtr node, unsigned int *download_status);
|
||||
unsigned int download_dialog_parse_response(const QByteArray &length);
|
||||
|
|
Loading…
Add table
Reference in a new issue