Qt5: 'void QTime::start()' / 'int QTime::elapsed() const' / 'int QTime::restart()' are deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations]
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user