mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-23 13:51:12 -05:00
Merge pull request #1667 from hunbernd/fix/links
Some tweaks for posted links
This commit is contained in:
commit
bae85aac53
@ -109,7 +109,7 @@ QString PostedDialog::icon(IconType type)
|
||||
case ICON_POPULAR_GROUP:
|
||||
return "";
|
||||
case ICON_OTHER_GROUP:
|
||||
return ":/icons/png/feed-other.png";
|
||||
return "";
|
||||
case ICON_SEARCH:
|
||||
return ":/images/find.png";
|
||||
case ICON_DEFAULT:
|
||||
|
@ -306,7 +306,7 @@ void PostedItem::fill()
|
||||
urlstr += messageName();
|
||||
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);
|
||||
|
||||
ui->titleLabel->setText(urlstr);
|
||||
|
@ -124,6 +124,13 @@ QIcon PostedListWidget::groupIcon()
|
||||
return QIcon();
|
||||
}
|
||||
|
||||
void PostedListWidget::groupIdChanged()
|
||||
{
|
||||
mPostIndex = 0;
|
||||
GxsMessageFramePostWidget::groupIdChanged();
|
||||
updateShowText();
|
||||
}
|
||||
|
||||
/*****************************************************************************************/
|
||||
// Overloaded from FeedHolder.
|
||||
QScrollArea *PostedListWidget::getScrollArea()
|
||||
|
@ -44,6 +44,7 @@ public:
|
||||
|
||||
/* GxsMessageFrameWidget */
|
||||
virtual QIcon groupIcon();
|
||||
virtual void groupIdChanged();
|
||||
|
||||
/* FeedHolder */
|
||||
virtual QScrollArea *getScrollArea();
|
||||
|
Loading…
Reference in New Issue
Block a user