summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-12-09 02:29:11 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-12-09 02:29:11 +0100
commitc0e5507895a938b19881e1747b26b9914868d61f (patch)
tree2bb753e542cd06aab69dbb41af76788ac780678d /src
parentAdd destrctors'code, as needed. Fixed closing application bug. (diff)
downloadrekonq-c0e5507895a938b19881e1747b26b9914868d61f.tar.xz
Added gray "Search.." on searchbar
Diffstat (limited to 'src')
-rw-r--r--src/searchbar.cpp8
-rw-r--r--src/settings.cpp2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/searchbar.cpp b/src/searchbar.cpp
index a2f1217f..61bb61a5 100644
--- a/src/searchbar.cpp
+++ b/src/searchbar.cpp
@@ -23,6 +23,7 @@
// Qt Includes
#include <QVBoxLayout>
+#include <QPalette>
SearchBar::SearchBar(QWidget *parent) :
QWidget(parent),
@@ -31,6 +32,11 @@ SearchBar::SearchBar(QWidget *parent) :
m_lineEdit = new KLineEdit(this);
m_lineEdit->setClearButtonShown( true );
+ QPalette palette;
+ palette.setColor( QPalette::Text, Qt::gray );
+ m_lineEdit->setPalette( palette );
+ m_lineEdit->setText( "Search.." );
+
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(m_lineEdit);
setLayout(layout);
@@ -50,7 +56,7 @@ void SearchBar::searchNow()
url.addQueryItem(QLatin1String("q"), searchText);
url.addQueryItem(QLatin1String("ie"), QLatin1String("UTF-8"));
url.addQueryItem(QLatin1String("oe"), QLatin1String("UTF-8"));
- url.addQueryItem(QLatin1String("client"), QLatin1String("reKonq"));
+ url.addQueryItem(QLatin1String("client"), QLatin1String("rekonq"));
emit search(url);
}
diff --git a/src/settings.cpp b/src/settings.cpp
index 2a440c19..74376ea8 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -48,7 +48,7 @@ SettingsDialog::SettingsDialog(QWidget *parent)
setMainWidget(widget);
- setWindowTitle( i18n("Setting reKonq..") );
+ setWindowTitle( i18n("Setting rekonq..") );
setButtons( KDialog::Ok | KDialog::Close | KDialog::Apply );
setModal(true);