forked from qt-creator/qt-creator
Terminal: Switch to std::chrono
QDateTime's interface various between supported Qt Versions, so we use std::chrono instead Change-Id: I5af5ae9950e61c2ed38ff15dc0580f0dc2aa1f57 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
#include <vterm.h>
|
||||
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
|
||||
namespace Terminal {
|
||||
@@ -169,8 +170,8 @@ private:
|
||||
|
||||
Utils::Terminal::OpenTerminalParameters m_openParameters;
|
||||
|
||||
QDateTime m_lastFlush;
|
||||
QDateTime m_lastDoubleClick;
|
||||
std::chrono::system_clock::time_point m_lastFlush;
|
||||
std::chrono::system_clock::time_point m_lastDoubleClick;
|
||||
bool m_selectLineMode{false};
|
||||
|
||||
std::u32string m_currentLiveText;
|
||||
|
||||
Reference in New Issue
Block a user