Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Alexandre Leroux
- Wed, 02 Aug 2017 15:12:50
Show More
0
core/include/Data/SqpDateTime.h
core/include/Data/SqpDateTime.h
+3
-4
@@
-3,9
+3,9
3
3
4
#include <QObject>
4
#include <QObject>
5
5
6
#include <QDateTime>
7
#include <QDebug>
6
#include <QDebug>
8
7
8
#include <Common/DateUtils.h>
9
#include <Common/MetaTypes.h>
9
#include <Common/MetaTypes.h>
10
10
11
/**
11
/**
@@
-30,10
+30,9
struct SqpDateTime {
30
30
31
inline QDebug operator << ( QDebug d , SqpDateTime obj )
31
inline QDebug operator << ( QDebug d , SqpDateTime obj )
32
{
32
{
33
auto tendDateTimeStart = QDateTime:: fromMSecsSinceEpoch( obj . m_TStart * 1000);
33
auto tendDateTimeStart = DateUtils :: dateTime ( obj . m_TStart );
34
auto tendDateTimeEnd = QDateTime:: fromMSecsSinceEpoch( obj . m_TEnd * 1000);
34
auto tendDateTimeEnd = DateUtils :: dateTime ( obj . m_TEnd );
35
35
36
// QDebug << "ts: " << tendDateTimeStart << " te: " << tendDateTimeEnd;
37
d << "ts: " << tendDateTimeStart << " te: " << tendDateTimeEnd ;
36
d << "ts: " << tendDateTimeStart << " te: " << tendDateTimeEnd ;
38
return d ;
37
return d ;
39
}
38
}
0
core/src/Variable/VariableModel.cpp
core/src/Variable/VariableModel.cpp
+4
-3
@@
-1,9
+1,10
1
#include <Variable/Variable.h>
1
#include <Variable/Variable.h>
2
#include <Variable/VariableModel.h>
2
#include <Variable/VariableModel.h>
3
3
4
#include <Common/DateUtils.h>
5
4
#include <Data/IDataSeries.h>
6
#include <Data/IDataSeries.h>
5
7
6
#include <QDateTime>
7
#include <QSize>
8
#include <QSize>
8
#include <unordered_map>
9
#include <unordered_map>
9
10
@@
-150,8
+151,8
QVariant VariableModel::data(const QModelIndex &index, int role) const
150
if ( role == Qt :: DisplayRole ) {
151
if ( role == Qt :: DisplayRole ) {
151
if ( auto variable = impl -> m_Variables . at ( index . row ()). get ()) {
152
if ( auto variable = impl -> m_Variables . at ( index . row ()). get ()) {
152
/// Lambda function that builds the variant to return for a time value
153
/// Lambda function that builds the variant to return for a time value
153
auto dateTimeVariant = []( double time) {
154
auto dateTimeVariant = []( double secs ) {
154
auto dateTime = QDateTime:: fromMSecsSinceEpoch( time * 1000.);
155
auto dateTime = DateUtils :: dateTime ( secs );
155
return dateTime . toString ( DATETIME_FORMAT );
156
return dateTime . toString ( DATETIME_FORMAT );
156
};
157
};
157
158
0
gui/src/TimeWidget/TimeWidget.cpp
gui/src/TimeWidget/TimeWidget.cpp
+2
-3
0
plugins/amda/src/AmdaProvider.cpp
plugins/amda/src/AmdaProvider.cpp
+2
-1
@@
-2,6
+2,7
2
#include "AmdaDefs.h"
2
#include "AmdaDefs.h"
3
#include "AmdaResultParser.h"
3
#include "AmdaResultParser.h"
4
4
5
#include <Common/DateUtils.h>
5
#include <Data/DataProviderParameters.h>
6
#include <Data/DataProviderParameters.h>
6
#include <Network/NetworkController.h>
7
#include <Network/NetworkController.h>
7
#include <SqpApplication.h>
8
#include <SqpApplication.h>
@@
-31,7
+32,7
const auto AMDA_TIME_FORMAT = QStringLiteral("yyyy-MM-ddThh:mm:ss");
31
/// Formats a time to a date that can be passed in URL
32
/// Formats a time to a date that can be passed in URL
32
QString dateFormat ( double sqpDateTime ) noexcept
33
QString dateFormat ( double sqpDateTime ) noexcept
33
{
34
{
34
auto dateTime = QDateTime:: fromMSecsSinceEpoch( sqpDateTime * 1000.);
35
auto dateTime = DateUtils :: dateTime ( sqpDateTime );
35
return dateTime . toString ( AMDA_TIME_FORMAT );
36
return dateTime . toString ( AMDA_TIME_FORMAT );
36
}
37
}
37
38
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages