Display more information in TT-RSS account root item tooltip.
This commit is contained in:
parent
1213c2e742
commit
480f78b1bf
@ -111,9 +111,14 @@ QVariant TtRssServiceRoot::data(int column, int role) const {
|
|||||||
switch (role) {
|
switch (role) {
|
||||||
case Qt::ToolTipRole:
|
case Qt::ToolTipRole:
|
||||||
if (column == FDS_MODEL_TITLE_INDEX) {
|
if (column == FDS_MODEL_TITLE_INDEX) {
|
||||||
return tr("Tiny Tiny RSS\n\nAccount ID: %3\nUsername: %1\nServer: %2").arg(m_network->username(),
|
return tr("Tiny Tiny RSS\n\nAccount ID: %3\nUsername: %1\nServer: %2\n"
|
||||||
m_network->url(),
|
"Last error: %4\nLast login on: %5").arg(m_network->username(),
|
||||||
QString::number(accountId()));
|
m_network->url(),
|
||||||
|
QString::number(accountId()),
|
||||||
|
NetworkFactory::networkErrorText(m_network->lastError()),
|
||||||
|
m_network->lastLoginTime().isValid() ?
|
||||||
|
m_network->lastLoginTime().toString(Qt::DefaultLocaleShortDate) :
|
||||||
|
QSL("-"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return ServiceRoot::data(column, role);
|
return ServiceRoot::data(column, role);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user