mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:59:54 +00:00
Make content selector tooltip localizable
This commit is contained in:
parent
225946b92b
commit
f2c284688b
2 changed files with 9 additions and 9 deletions
|
@ -4,13 +4,6 @@
|
|||
#include <QIODevice>
|
||||
|
||||
int ContentSelectorModel::EsmFile::sPropertyCount = 7;
|
||||
QString ContentSelectorModel::EsmFile::sToolTip = QString(
|
||||
"<b>Author:</b> %1<br/> \
|
||||
<b>Version:</b> %2<br/> \
|
||||
<b>Modified:</b> %3<br/> \
|
||||
<b>Path:</b><br/>%4<br/> \
|
||||
<br/><b>Description:</b><br/>%5<br/> \
|
||||
<br/><b>Dependencies: </b>%6<br/>");
|
||||
|
||||
ContentSelectorModel::EsmFile::EsmFile(const QString& fileName, ModelItem* parent)
|
||||
: ModelItem(parent)
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace ContentSelectorModel
|
|||
QString description() const { return mDescription; }
|
||||
QString toolTip() const
|
||||
{
|
||||
return sToolTip.arg(mAuthor)
|
||||
return mTooltipTemlate.arg(mAuthor)
|
||||
.arg(mVersion)
|
||||
.arg(mModified.toString(Qt::ISODate))
|
||||
.arg(mPath)
|
||||
|
@ -72,9 +72,16 @@ namespace ContentSelectorModel
|
|||
|
||||
public:
|
||||
static int sPropertyCount;
|
||||
static QString sToolTip;
|
||||
|
||||
private:
|
||||
QString mTooltipTemlate = tr(
|
||||
"<b>Author:</b> %1<br/>"
|
||||
"<b>Version:</b> %2<br/>"
|
||||
"<b>Modified:</b> %3<br/>"
|
||||
"<b>Path:</b><br/>%4<br/>"
|
||||
"<br/><b>Description:</b><br/>%5<br/>"
|
||||
"<br/><b>Dependencies: </b>%6<br/>");
|
||||
|
||||
QString mFileName;
|
||||
QString mAuthor;
|
||||
QDateTime mModified;
|
||||
|
|
Loading…
Reference in a new issue