Use "Qt::WindowFlags flags = Qt::WindowFlags()" instead of "Qt::WindowFlags flags = 0"

This commit is contained in:
thunder2 2025-07-18 17:20:03 +02:00
parent f53a30a0e4
commit 54cb3f2c69
38 changed files with 38 additions and 38 deletions

View file

@ -36,7 +36,7 @@ class FileTransferInfoWidget : public RsAutoUpdatePage
Q_OBJECT
public:
FileTransferInfoWidget(QWidget * parent = 0, Qt::WindowFlags f = 0 );
FileTransferInfoWidget(QWidget * parent = 0, Qt::WindowFlags f = Qt::WindowFlags() );
void setFileHash(const RsFileHash& hash) { _file_hash = hash ; }

View file

@ -39,7 +39,7 @@ public slots:
protected:
/** Default Constructor */
MessengerWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
MessengerWindow(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default Destructor */
~MessengerWindow();

View file

@ -75,7 +75,7 @@ private slots:
void chatNewMessage(ChatWidget*);
protected:
explicit ChatDialog(QWidget *parent = 0, Qt::WindowFlags flags = 0);
explicit ChatDialog(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
virtual ~ChatDialog();
void closeEvent(QCloseEvent *event);

View file

@ -74,7 +74,7 @@ signals:
protected:
/** Default constructor */
ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent = 0, Qt::WindowFlags flags = 0);
ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default destructor */
virtual ~ChatLobbyDialog();

View file

@ -42,7 +42,7 @@ private slots:
protected:
/** Default constructor */
PopupChatDialog(QWidget *parent = 0, Qt::WindowFlags flags = 0);
PopupChatDialog(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default destructor */
virtual ~PopupChatDialog();

View file

@ -49,7 +49,7 @@ public:
protected:
/** Default constructor */
PopupChatWindow(bool tabbed, QWidget *parent = 0, Qt::WindowFlags flags = 0);
PopupChatWindow(bool tabbed, QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default destructor */
~PopupChatWindow();

View file

@ -34,7 +34,7 @@ class PopupDistantChatDialog: public PopupChatDialog
protected:
/** Default constructor */
PopupDistantChatDialog(const DistantChatPeerId &tunnel_id, QWidget *parent = 0, Qt::WindowFlags flags = 0);
PopupDistantChatDialog(const DistantChatPeerId &tunnel_id, QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default destructor */
virtual ~PopupDistantChatDialog();

View file

@ -35,7 +35,7 @@ class RWindow : public QMainWindow
public:
/** Default constructor. */
RWindow(QString name, QWidget *parent = 0, Qt::WindowFlags flags = 0);
RWindow(QString name, QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Destructor. */
~RWindow();

View file

@ -36,7 +36,7 @@ public:
static void showProgress(const RsPeerId& id);
private:
ConnectProgressDialog(const RsPeerId& id, QWidget *parent = 0, Qt::WindowFlags flags = 0);
ConnectProgressDialog(const RsPeerId& id, QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~ConnectProgressDialog();
static ConnectProgressDialog *instance(const RsPeerId& peer_id);

View file

@ -40,7 +40,7 @@ class RsGxsUpdateBroadcastPage : public MainPage
Q_OBJECT
public:
RsGxsUpdateBroadcastPage(RsGxsIfaceHelper* ifaceImpl, QWidget *parent = NULL, Qt::WindowFlags flags = 0);
RsGxsUpdateBroadcastPage(RsGxsIfaceHelper* ifaceImpl, QWidget *parent = NULL, Qt::WindowFlags flags = Qt::WindowFlags());
virtual ~RsGxsUpdateBroadcastPage();
void fillComplete();

View file

@ -40,7 +40,7 @@ class RsGxsUpdateBroadcastWidget : public QWidget
Q_OBJECT
public:
RsGxsUpdateBroadcastWidget(RsGxsIfaceHelper* ifaceImpl, QWidget *parent = NULL, Qt::WindowFlags flags = 0);
RsGxsUpdateBroadcastWidget(RsGxsIfaceHelper* ifaceImpl, QWidget *parent = NULL, Qt::WindowFlags flags = Qt::WindowFlags());
virtual ~RsGxsUpdateBroadcastWidget();
void fillComplete();

View file

@ -52,7 +52,7 @@ public:
public:
/** Default Constructor */
MessageComposer(QWidget *parent = 0, Qt::WindowFlags flags = 0);
MessageComposer(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~MessageComposer();
static void msgFriend(const RsPeerId &id);

View file

@ -45,7 +45,7 @@ public:
};
public:
MessageWidget(bool controlled, QWidget *parent = 0, Qt::WindowFlags flags = 0);
MessageWidget(bool controlled, QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~MessageWidget();
static MessageWidget *openMsg(const std::string &msgId, bool window);

View file

@ -33,7 +33,7 @@ class MessageWindow : public RWindow
public:
/** Default Constructor */
MessageWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
MessageWindow(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~MessageWindow();
void addWidget(MessageWidget *widget);

View file

@ -32,7 +32,7 @@ class ProfileWidget : public QWidget
public:
/** Default constructor */
ProfileWidget(QWidget *parent = 0, Qt::WindowFlags flags = 0);
ProfileWidget(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
private slots:
void showEvent ( QShowEvent * event );

View file

@ -32,7 +32,7 @@ class AboutPage : public ConfigPage
public:
/** Default Constructor */
AboutPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
AboutPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default Destructor */
~AboutPage();

View file

@ -32,7 +32,7 @@ class AppearancePage : public ConfigPage
public:
/** Default Constructor */
AppearancePage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
AppearancePage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Loads the settings for this page */
virtual void load();

View file

@ -32,7 +32,7 @@ class ChannelPage : public ConfigPage
Q_OBJECT
public:
ChannelPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
ChannelPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~ChannelPage();
/** Loads the settings for this page */

View file

@ -31,7 +31,7 @@ class CryptoPage : public ConfigPage
public:
/** Default Constructor */
CryptoPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
CryptoPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default Destructor */
~CryptoPage();

View file

@ -49,7 +49,7 @@ class FileAssociationsPage : public ConfigPage
Q_OBJECT
public:
FileAssociationsPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
FileAssociationsPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
virtual ~FileAssociationsPage();
virtual void load();

View file

@ -30,7 +30,7 @@ class ForumPage : public ConfigPage
Q_OBJECT
public:
ForumPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
ForumPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~ForumPage();
/** Loads the settings for this page */

View file

@ -32,7 +32,7 @@ class GeneralPage : public ConfigPage
public:
/** Default Constructor */
GeneralPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
GeneralPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default Destructor */
~GeneralPage();

View file

@ -32,7 +32,7 @@ class JsonApiPage : public ConfigPage
public:
JsonApiPage(QWidget * parent = nullptr, Qt::WindowFlags flags = 0);
JsonApiPage(QWidget * parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
~JsonApiPage() override ;
virtual QPixmap iconPixmap() const override

View file

@ -34,7 +34,7 @@ class MessagePage : public ConfigPage
Q_OBJECT
public:
MessagePage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
MessagePage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~MessagePage();
/** Loads the settings for this page */

View file

@ -35,7 +35,7 @@ class NewTag : public QDialog
public:
/** Default constructor */
NewTag(MsgTagType &Tags, uint32_t nId = 0, QWidget *parent = 0, Qt::WindowFlags flags = 0);
NewTag(MsgTagType &Tags, uint32_t nId = 0, QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
uint32_t m_nId;

View file

@ -72,7 +72,7 @@ class NotifyPage : public ConfigPage
public:
/** Default Constructor */
NotifyPage(QWidget *parent = 0, Qt::WindowFlags flags = 0);
NotifyPage(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default Destructor */
~NotifyPage();

View file

@ -30,7 +30,7 @@ class PeoplePage : public ConfigPage
Q_OBJECT
public:
PeoplePage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
PeoplePage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~PeoplePage();
/** Loads the settings for this page */

View file

@ -31,7 +31,7 @@ class PluginsPage : public ConfigPage
Q_OBJECT
public:
PluginsPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
PluginsPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~PluginsPage();
/** Loads the settings for this page */

View file

@ -33,7 +33,7 @@ class PostedPage : public ConfigPage
Q_OBJECT
public:
PostedPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
PostedPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~PostedPage();
/** Loads the settings for this page */

View file

@ -52,7 +52,7 @@ class ServerPage: public ConfigPage, public autoProxyCallback
Q_OBJECT
public:
ServerPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
ServerPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~ServerPage() {}
/** Loads the settings for this page */

View file

@ -32,7 +32,7 @@ class ServicePermissionsPage: public ConfigPage
Q_OBJECT
public:
ServicePermissionsPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
ServicePermissionsPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~ServicePermissionsPage() {}
/** Loads the settings for this page */

View file

@ -33,7 +33,7 @@ class SoundPage : public ConfigPage
public:
/** Default Constructor */
SoundPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
SoundPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default Destructor */
~SoundPage();

View file

@ -32,7 +32,7 @@ class TransferPage: public ConfigPage
Q_OBJECT
public:
TransferPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
TransferPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
~TransferPage() {}
/** Loads the settings for this page */

View file

@ -39,7 +39,7 @@ class WebuiPage : public ConfigPage
public:
/** Default Constructor */
WebuiPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
WebuiPage(QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Default Destructor */
~WebuiPage();

View file

@ -44,7 +44,7 @@ public:
enum { DefaultDirection=0,Download=1 } ;
/** Default constructor */
BandwidthGraph(QWidget *parent = 0, Qt::WindowFlags flags = 0);
BandwidthGraph(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
virtual ~BandwidthGraph();
public slots:

View file

@ -32,7 +32,7 @@ class ApplicationWindow : public QMainWindow
public:
/** Default Constructor */
ApplicationWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
ApplicationWindow(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
/** Destructor. */
~ApplicationWindow();

View file

@ -37,7 +37,7 @@ class RsAutoUpdatePage: public MainPage
Q_OBJECT
public:
RsAutoUpdatePage(int ms_update_period = 1000, QWidget *parent = NULL, Qt::WindowFlags flags = 0) ;
RsAutoUpdatePage(int ms_update_period = 1000, QWidget *parent = NULL, Qt::WindowFlags flags = Qt::WindowFlags()) ;
virtual ~RsAutoUpdatePage() ;
static void lockAllEvents() ;

View file

@ -29,7 +29,7 @@ class ConfigPage : public QWidget
{
public:
/** Default Constructor */
ConfigPage(QWidget *parent = 0, Qt::WindowFlags flags = 0) : QWidget(parent, flags), loaded(false) {}
ConfigPage(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags()) : QWidget(parent, flags), loaded(false) {}
/** Pure virtual method. Subclassed pages load their config settings here. */
virtual void load() = 0;