mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-23 22:01:05 -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:
|
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:
|
||||||
|
@ -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);
|
||||||
|
@ -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()
|
||||||
|
@ -44,6 +44,7 @@ public:
|
|||||||
|
|
||||||
/* GxsMessageFrameWidget */
|
/* GxsMessageFrameWidget */
|
||||||
virtual QIcon groupIcon();
|
virtual QIcon groupIcon();
|
||||||
|
virtual void groupIdChanged();
|
||||||
|
|
||||||
/* FeedHolder */
|
/* FeedHolder */
|
||||||
virtual QScrollArea *getScrollArea();
|
virtual QScrollArea *getScrollArea();
|
||||||
|
Loading…
Reference in New Issue
Block a user