summaryrefslogtreecommitdiff
path: root/src/searchbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-28 15:53:26 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-28 15:53:26 +0100
commita934072cf9695e46e793898102590322f43c0733 (patch)
tree6f04f558aec622c4b044fccbe1481db933f8901e /src/searchbar.cpp
parentscripts (diff)
downloadrekonq-a934072cf9695e46e793898102590322f43c0733.tar.xz
astyle. First round..
Diffstat (limited to 'src/searchbar.cpp')
-rw-r--r--src/searchbar.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/searchbar.cpp b/src/searchbar.cpp
index 80b231ac..0d318edb 100644
--- a/src/searchbar.cpp
+++ b/src/searchbar.cpp
@@ -36,23 +36,23 @@
#include <QtNetwork>
-SearchBar::SearchBar(QWidget *parent) :
- KLineEdit(parent)
+SearchBar::SearchBar(QWidget *parent) :
+ KLineEdit(parent)
{
setMinimumWidth(180);
kWarning() << "setting fixed minimum width.." ;
- setFocusPolicy( Qt::WheelFocus );
- setMouseTracking( true );
+ setFocusPolicy(Qt::WheelFocus);
+ setMouseTracking(true);
setAcceptDrops(true);
QSizePolicy policy = sizePolicy();
setSizePolicy(QSizePolicy::Preferred, policy.verticalPolicy());
- setClearButtonShown( true );
+ setClearButtonShown(true);
// better solution than using QPalette(s)..
- setClickMessage( i18n("Search..") );
+ setClickMessage(i18n("Search.."));
// setting QNetworkAccessManager..
netMan = new QNetworkAccessManager(this);
@@ -64,7 +64,7 @@ SearchBar::SearchBar(QWidget *parent) :
connect(timer, SIGNAL(timeout()), SLOT(autoSuggest()));
connect(this, SIGNAL(textEdited(QString)), timer, SLOT(start()));
- connect(this, SIGNAL( returnPressed() ) , this , SLOT( searchNow() ) );
+ connect(this, SIGNAL(returnPressed()) , this , SLOT(searchNow()));
}
@@ -92,8 +92,8 @@ void SearchBar::focusInEvent(QFocusEvent *event)
KLineEdit::focusInEvent(event);
QPalette p;
- p.setColor( QPalette::Text , Qt::black );
- setPalette( p );
+ p.setColor(QPalette::Text , Qt::black);
+ setPalette(p);
clear();
}
@@ -109,7 +109,7 @@ void SearchBar::autoSuggest()
void SearchBar::handleNetworkData(QNetworkReply *networkReply)
{
QUrl url = networkReply->url();
- if (!networkReply->error())
+ if (!networkReply->error())
{
QStringList choices;