mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
Update src/utils/vmetawordmanager.cpp (#462)
* Update src/utils/vmetawordmanager.cpp add week number(%w%) * Update src/utils/vmetawordmanager.cpp Co-Authored-By: geoffreycheungr <geoffreycheung@126.com> * Update src/utils/vmetawordmanager.cpp Co-Authored-By: geoffreycheungr <geoffreycheung@126.com> * Update src/utils/vmetawordmanager.cpp Co-Authored-By: geoffreycheungr <geoffreycheung@126.com>
This commit is contained in:
parent
88d915c43c
commit
8d42ffea0f
@ -301,6 +301,14 @@ void VMetaWordManager::init()
|
|||||||
return QString();
|
return QString();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// %w%
|
||||||
|
addMetaWord(MetaWordType::Dynamic,
|
||||||
|
"w",
|
||||||
|
tr("the week number (`1` to `53`)"),
|
||||||
|
[](const VMetaWord *p_metaWord) {
|
||||||
|
return QString::number(p_metaWord->getManager()->getDateTime().date().weekNumber());
|
||||||
|
});
|
||||||
|
|
||||||
// Custom meta words.
|
// Custom meta words.
|
||||||
initCustomMetaWords();
|
initCustomMetaWords();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user