|
From: <cn...@us...> - 2023-03-15 18:26:19
|
Revision: 1354
http://sourceforge.net/p/seq/svn/1354
Author: cn187
Date: 2023-03-15 18:26:16 +0000 (Wed, 15 Mar 2023)
Log Message:
-----------
Fix Qt deprecation warnings about QFlags being initialized with 0
Modified Paths:
--------------
showeq/trunk/src/messagewindow.cpp
showeq/trunk/src/seqlistview.h
showeq/trunk/src/seqwindow.h
Modified: showeq/trunk/src/messagewindow.cpp
===================================================================
--- showeq/trunk/src/messagewindow.cpp 2023-03-15 18:26:08 UTC (rev 1353)
+++ showeq/trunk/src/messagewindow.cpp 2023-03-15 18:26:16 UTC (rev 1354)
@@ -166,7 +166,7 @@
{
// perform a find in the message window, starting at the current position
// using the settings from the checkboxes.
- QTextDocument::FindFlags options = 0;
+ QTextDocument::FindFlags options;
if (m_matchCase->isChecked()) options |= QTextDocument::FindCaseSensitively;
if (m_wholeWords->isChecked()) options |= QTextDocument::FindWholeWords;
if (m_findBackwards->isChecked()) options |= QTextDocument::FindBackward;
Modified: showeq/trunk/src/seqlistview.h
===================================================================
--- showeq/trunk/src/seqlistview.h 2023-03-15 18:26:08 UTC (rev 1353)
+++ showeq/trunk/src/seqlistview.h 2023-03-15 18:26:16 UTC (rev 1354)
@@ -45,7 +45,7 @@
SEQListView(const QString prefName,
QWidget* parent = 0,
const char* name = 0,
- Qt::WindowFlags f = 0);
+ Qt::WindowFlags f = Qt::Widget);
~SEQListView();
const QString& preferenceName() const { return m_preferenceName; }
Modified: showeq/trunk/src/seqwindow.h
===================================================================
--- showeq/trunk/src/seqwindow.h 2023-03-15 18:26:08 UTC (rev 1353)
+++ showeq/trunk/src/seqwindow.h 2023-03-15 18:26:16 UTC (rev 1354)
@@ -43,7 +43,7 @@
public:
SEQWindow(const QString prefName, const QString caption,
- QWidget* parent = 0, const char* name = 0, Qt::WindowFlags f = 0);
+ QWidget* parent = 0, const char* name = 0, Qt::WindowFlags f = Qt::Widget);
~SEQWindow();
virtual QMenu* menu();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|