1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Setting fixed width of site address on site info dialog

This commit is contained in:
nowrep 2011-04-04 17:03:41 +02:00
parent edf8b7bbae
commit cbf4a9813a
3 changed files with 16 additions and 1 deletions

View File

@ -161,6 +161,12 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>460</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string/>
</property>

View File

@ -243,6 +243,15 @@ void WebView::iconChanged()
emit siteIconChanged();
}
QIcon WebView::siteIcon()
{
if (!m_siteIcon.isNull())
return m_siteIcon;
if (!icon().isNull())
return icon();
return LocationBar::icon(url());
}
void WebView::linkHovered(const QString &link, const QString &title, const QString &content)
{
Q_UNUSED(title);

View File

@ -53,7 +53,7 @@ public:
WebPage* webPage() const;
QString getIp() { return m_currentIp; }
QLabel* animationLoading(int index, bool addMovie);
QIcon siteIcon() { return (m_siteIcon.isNull() ? icon() : m_siteIcon); }
QIcon siteIcon();
void addNotification(QWidget* notif);
bool hasRss() { return !m_rss.isEmpty(); }
QList<QPair<QString,QString> > getRss() { return m_rss; }