From 2daca1034d63d71e9c6a097816fe6aa7ba47db35 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 21 Dec 2008 00:54:58 +0100 Subject: little updates.. --- src/findbar.cpp | 5 ++--- src/searchbar.cpp | 1 + src/urlbar.h | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/findbar.cpp b/src/findbar.cpp index b45dc8fa..73f6c784 100644 --- a/src/findbar.cpp +++ b/src/findbar.cpp @@ -41,6 +41,8 @@ FindBar::FindBar(KMainWindow *parent) addWidget( label ); m_lineEdit = new KLineEdit(); + m_lineEdit->setMaximumWidth( 200 ); + connect( m_lineEdit, SIGNAL( returnPressed() ), parent, SLOT( slotFindNext() ) ); connect( m_lineEdit, SIGNAL( textEdited(const QString &) ), parent, SLOT( slotFindNext() ) ); addWidget( m_lineEdit ); @@ -48,9 +50,6 @@ FindBar::FindBar(KMainWindow *parent) addAction( KStandardAction::findNext(parent, SLOT( slotFindNext() ) , this ) ); addAction( KStandardAction::findPrev(parent, SLOT( slotFindPrevious() ) , this ) ); - QLabel *spaceLabel = new QLabel(" "); // FIXME - addWidget( spaceLabel ); - // we start off hidden hide(); } diff --git a/src/searchbar.cpp b/src/searchbar.cpp index 8b21daf5..977703d3 100644 --- a/src/searchbar.cpp +++ b/src/searchbar.cpp @@ -24,6 +24,7 @@ #include "browserapplication.h" #include "browsermainwindow.h" +#include SearchBar::SearchBar(QWidget *parent) : KLineEdit(parent) diff --git a/src/urlbar.h b/src/urlbar.h index 99199d9c..c77f3b77 100644 --- a/src/urlbar.h +++ b/src/urlbar.h @@ -46,8 +46,7 @@ private slots: void webViewIconChanged(); protected: -// void paintEvent( QPaintEvent * ); - +// void paintEvent( QPaintEvent * ); private: QLinearGradient generateGradient(const QColor &color) const; -- cgit v1.2.1