diff options
author | megabigbug <megabigbug@yahoo.fr> | 2010-10-17 15:53:15 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-10-30 11:43:21 +0200 |
commit | 2efe55b99de99b18a58c94d1a0991b7bbfb8ef26 (patch) | |
tree | 64ce8a03ae26e7e7e0bd0f58b14f771cbdedc542 /src/urlbar/listitem.cpp | |
parent | fix suggestion not displayed when missing .xml (diff) | |
download | rekonq-2efe55b99de99b18a58c94d1a0991b7bbfb8ef26.tar.xz |
remove warnings
Diffstat (limited to 'src/urlbar/listitem.cpp')
-rw-r--r-- | src/urlbar/listitem.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp index a73ec66b..5fa46470 100644 --- a/src/urlbar/listitem.cpp +++ b/src/urlbar/listitem.cpp @@ -277,7 +277,7 @@ void TextLabel::setEngineText(const QString &engine, const QString &text) // --------------------------------------------------------------- -DescriptionLabel::DescriptionLabel(const QString &text, const QString &textToPointOut, QWidget *parent) +DescriptionLabel::DescriptionLabel(const QString &text, QWidget *parent) : QLabel(parent) { QString t = text; @@ -374,7 +374,7 @@ void ImageLabel::slotData(KIO::Job *job, const QByteArray &data) } -void ImageLabel::slotResult(KJob *job) +void ImageLabel::slotResult(KJob *) { QPixmap pix; if (!pix.loadFromData(m_data)) @@ -559,9 +559,8 @@ VisualSuggestionListItem::VisualSuggestionListItem(const UrlSearchItem &item, co QVBoxLayout *vLayout = new QVBoxLayout; vLayout->setMargin(0); vLayout->addItem(new QSpacerItem(0,0,QSizePolicy::Expanding,QSizePolicy::MinimumExpanding)); - QString query = SearchEngine::extractQuery(text); - vLayout->addWidget(new TextLabel(item.title, query, this)); - DescriptionLabel *d = new DescriptionLabel("", query, this); + vLayout->addWidget(new TextLabel(item.title, SearchEngine::extractQuery(text), this)); + DescriptionLabel *d = new DescriptionLabel("", this); vLayout->addWidget(d); vLayout->addItem(new QSpacerItem(0,0,QSizePolicy::Expanding,QSizePolicy::MinimumExpanding)); hLayout->addLayout(vLayout); |