Skip to content

Commit

Permalink
Fix deprecation warnings for Qt classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
acolwell committed Sep 5, 2023
1 parent b8496b3 commit 2739096
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Gui/FileTypeMainWindow_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class DocumentWindow
* Creates a DocumentWindow with a given @arg parent and @arg flags.
*/
explicit DocumentWindow(QWidget* parent = 0,
Qt::WindowFlags flags = 0);
Qt::WindowFlags flags = Qt::WindowFlags());

/**
* Destructor
Expand Down Expand Up @@ -230,8 +230,8 @@ class DocumentWindow
*/
void registerCommand(const QString& command,
const QString& documentId,
const QString cmdLineArg = QString::null,
const QString ddeCommand = QString::null);
const QString cmdLineArg = QString(),
const QString ddeCommand = QString());

/**
* Call this method to enable the user to open data files associated with your application
Expand Down Expand Up @@ -262,7 +262,7 @@ class DocumentWindow
/**
* Sets specified value in the registry under HKCU\Software\Classes, which is mapped to HKCR then.
*/
bool SetHkcrUserRegKey(QString key, const QString& value, const QString& valueName = QString::null);
bool SetHkcrUserRegKey(QString key, const QString& value, const QString& valueName = QString());

/**
* this method is called to do the DDE command handling. It does argument splitting and then calls
Expand Down

0 comments on commit 2739096

Please sign in to comment.