16 #include "../drivers/cswordmoduleinfo.h"
17 #include "../keys/cswordversekey.h"
18 #include "../managers/referencemanager.h"
48 case KeyTreeItem::Settings::NoKey:
50 case KeyTreeItem::Settings::CompleteShort:
57 case KeyTreeItem::Settings::CompleteLong:
64 case KeyTreeItem::Settings::SimpleKey:
66 linkText = QString::number(vk.
verse());
72 linkText = item.
key();
77 if (linkText.isEmpty())
80 return QStringLiteral(
"<a href=\"%1\">%2</a>")
CSwordKey implementation for Sword's VerseKey.
QString key() const final override
bool setKey(const QString &key) final override
QString shortText() const
Settings const & settings() const
QString const & key() const
Text rendering based on trees.
std::list< KeyTreeItem > KeyTree
CrossRefRendering(const DisplayOptions &displayOptions=btConfig().getDisplayOptions(), const FilterOptions &filterOptions=btConfig().getFilterOptions())
QString entryLink(KeyTreeItem const &item, CSwordModuleInfo const &module) const override
QString finishText(QString const &text, KeyTree const &tree) const override
QString encodeHyperlink(CSwordModuleInfo const &module, QString const &key)
KeyRenderingFace keyRenderingFace