Qt5: 'void QTime::start()' / 'int QTime::elapsed() const' / 'int QTime::restart()' are deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]

This commit is contained in:
wmayer
2020-06-10 23:02:47 +02:00
committed by wwmayer
parent 8dbe26a95f
commit c8dae9eb85
13 changed files with 35 additions and 26 deletions

View File

@@ -27,7 +27,7 @@
# include <QMessageBox>
# include <QPushButton>
# include <QTextCursor>
# include <QTime>
# include <QElapsedTimer>
#endif
#include "RemeshGmsh.h"
@@ -69,7 +69,7 @@ public:
QPointer<Gui::StatusWidget> label;
QPointer<Gui::DockWnd::ReportHighlighter> syntax;
QProcess gmsh;
QTime time;
QElapsedTimer time;
};
GmshWidget::GmshWidget(QWidget* parent, Qt::WindowFlags fl)

View File

@@ -32,7 +32,7 @@
#include <Gui/TaskView/TaskView.h>
#include <QAbstractItemModel>
#include <QProgressDialog>
#include <QTime>
#include <QElapsedTimer>
class SoSeparator;
class SoSwitch;
@@ -200,7 +200,7 @@ public:
private:
int steps;
bool canceled;
QTime time;
QElapsedTimer time;
QProgressDialog* myProgress;
};