summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegabigbug <megabigbug@yahoo.fr>2010-10-17 15:53:15 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-10-30 11:43:21 +0200
commit2efe55b99de99b18a58c94d1a0991b7bbfb8ef26 (patch)
tree64ce8a03ae26e7e7e0bd0f58b14f771cbdedc542
parentfix suggestion not displayed when missing .xml (diff)
downloadrekonq-2efe55b99de99b18a58c94d1a0991b7bbfb8ef26.tar.xz
remove warnings
-rw-r--r--src/urlbar/listitem.cpp9
-rw-r--r--src/urlbar/listitem.h2
2 files changed, 5 insertions, 6 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);
diff --git a/src/urlbar/listitem.h b/src/urlbar/listitem.h
index 615958db..f5f11532 100644
--- a/src/urlbar/listitem.h
+++ b/src/urlbar/listitem.h
@@ -134,7 +134,7 @@ class DescriptionLabel : public QLabel
Q_OBJECT
public:
- explicit DescriptionLabel(const QString &text, const QString &textToPointOut = QString(), QWidget *parent = 0);
+ explicit DescriptionLabel(const QString &text, QWidget *parent = 0);
};