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 Q_OBJECT
public: 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 ; } void setFileHash(const RsFileHash& hash) { _file_hash = hash ; }

View file

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

View file

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

View file

@ -74,7 +74,7 @@ signals:
protected: protected:
/** Default constructor */ /** 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 */ /** Default destructor */
virtual ~ChatLobbyDialog(); virtual ~ChatLobbyDialog();

View file

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

View file

@ -49,7 +49,7 @@ public:
protected: protected:
/** Default constructor */ /** 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 */ /** Default destructor */
~PopupChatWindow(); ~PopupChatWindow();

View file

@ -34,7 +34,7 @@ class PopupDistantChatDialog: public PopupChatDialog
protected: protected:
/** Default constructor */ /** 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 */ /** Default destructor */
virtual ~PopupDistantChatDialog(); virtual ~PopupDistantChatDialog();

View file

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

View file

@ -36,7 +36,7 @@ public:
static void showProgress(const RsPeerId& id); static void showProgress(const RsPeerId& id);
private: 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(); ~ConnectProgressDialog();
static ConnectProgressDialog *instance(const RsPeerId& peer_id); static ConnectProgressDialog *instance(const RsPeerId& peer_id);

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -32,7 +32,7 @@ class AppearancePage : public ConfigPage
public: public:
/** Default Constructor */ /** 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 */ /** Loads the settings for this page */
virtual void load(); virtual void load();

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -35,7 +35,7 @@ class NewTag : public QDialog
public: public:
/** Default constructor */ /** 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; uint32_t m_nId;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -37,7 +37,7 @@ class RsAutoUpdatePage: public MainPage
Q_OBJECT Q_OBJECT
public: 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() ; virtual ~RsAutoUpdatePage() ;
static void lockAllEvents() ; static void lockAllEvents() ;

View file

@ -29,7 +29,7 @@ class ConfigPage : public QWidget
{ {
public: public:
/** Default Constructor */ /** 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. */ /** Pure virtual method. Subclassed pages load their config settings here. */
virtual void load() = 0; virtual void load() = 0;