Merge pull request #1667 from hunbernd/fix/links

Some tweaks for posted links
This commit is contained in:
csoler 2019-10-07 22:44:48 +02:00 committed by GitHub
commit bae85aac53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -109,7 +109,7 @@ QString PostedDialog::icon(IconType type)
case ICON_POPULAR_GROUP: case ICON_POPULAR_GROUP:
return ""; return "";
case ICON_OTHER_GROUP: case ICON_OTHER_GROUP:
return ":/icons/png/feed-other.png"; return "";
case ICON_SEARCH: case ICON_SEARCH:
return ":/images/find.png"; return ":/images/find.png";
case ICON_DEFAULT: case ICON_DEFAULT:

View File

@ -306,7 +306,7 @@ void PostedItem::fill()
urlstr += messageName(); urlstr += messageName();
urlstr += QString(" </span></a>"); urlstr += QString(" </span></a>");
QString siteurl = url.scheme() + "://" + url.host(); QString siteurl = url.toEncoded();
sitestr = QString("<a href=\"%1\" ><span style=\" text-decoration: underline; color:#0079d3;\"> %2 </span></a>").arg(siteurl).arg(siteurl); sitestr = QString("<a href=\"%1\" ><span style=\" text-decoration: underline; color:#0079d3;\"> %2 </span></a>").arg(siteurl).arg(siteurl);
ui->titleLabel->setText(urlstr); ui->titleLabel->setText(urlstr);

View File

@ -124,6 +124,13 @@ QIcon PostedListWidget::groupIcon()
return QIcon(); return QIcon();
} }
void PostedListWidget::groupIdChanged()
{
mPostIndex = 0;
GxsMessageFramePostWidget::groupIdChanged();
updateShowText();
}
/*****************************************************************************************/ /*****************************************************************************************/
// Overloaded from FeedHolder. // Overloaded from FeedHolder.
QScrollArea *PostedListWidget::getScrollArea() QScrollArea *PostedListWidget::getScrollArea()

View File

@ -44,6 +44,7 @@ public:
/* GxsMessageFrameWidget */ /* GxsMessageFrameWidget */
virtual QIcon groupIcon(); virtual QIcon groupIcon();
virtual void groupIdChanged();
/* FeedHolder */ /* FeedHolder */
virtual QScrollArea *getScrollArea(); virtual QScrollArea *getScrollArea();