add humanize as a dependency
This commit is contained in:
@@ -4,3 +4,6 @@
|
||||
[submodule "lib/settings"]
|
||||
path = lib/settings
|
||||
url = https://github.com/pajlada/settings
|
||||
[submodule "lib/humanize"]
|
||||
path = lib/humanize
|
||||
url = https://github.com/pajlada/humanize.git
|
||||
|
||||
@@ -195,3 +195,4 @@ werr {
|
||||
# External dependencies
|
||||
include(dependencies/rapidjson.pri)
|
||||
include(dependencies/settings.pri)
|
||||
include(dependencies/humanize.pri)
|
||||
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
# settings
|
||||
INCLUDEPATH += $$PWD/../lib/humanize/include/
|
||||
Submodule
+1
Submodule lib/humanize added at 4e00a03623
@@ -33,14 +33,15 @@ void MessageBuilder::appendTimestamp(time_t time)
|
||||
{
|
||||
char timeStampBuffer[69];
|
||||
|
||||
// Add word for timestamp with no seconds
|
||||
strftime(timeStampBuffer, 69, "%H:%M", localtime(&time));
|
||||
QString timestamp = QString(timeStampBuffer);
|
||||
|
||||
strftime(timeStampBuffer, 69, "%H:%M:%S", localtime(&time));
|
||||
QString timestampWithSeconds = QString(timeStampBuffer);
|
||||
|
||||
appendWord(Word(timestamp, Word::TimestampNoSeconds,
|
||||
QString timestampNoSeconds(timeStampBuffer);
|
||||
appendWord(Word(timestampNoSeconds, Word::TimestampNoSeconds,
|
||||
ColorScheme::getInstance().SystemMessageColor, QString(), QString()));
|
||||
|
||||
// Add word for timestamp with seconds
|
||||
strftime(timeStampBuffer, 69, "%H:%M:%S", localtime(&time));
|
||||
QString timestampWithSeconds(timeStampBuffer);
|
||||
appendWord(Word(timestampWithSeconds, Word::TimestampWithSeconds,
|
||||
ColorScheme::getInstance().SystemMessageColor, QString(), QString()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user