diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-03-28 15:53:26 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-03-28 15:53:26 +0100 |
commit | a934072cf9695e46e793898102590322f43c0733 (patch) | |
tree | 6f04f558aec622c4b044fccbe1481db933f8901e /src/urlbar.cpp | |
parent | scripts (diff) | |
download | rekonq-a934072cf9695e46e793898102590322f43c0733.tar.xz |
astyle. First round..
Diffstat (limited to 'src/urlbar.cpp')
-rw-r--r-- | src/urlbar.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/urlbar.cpp b/src/urlbar.cpp index 37c18636..0c904e45 100644 --- a/src/urlbar.cpp +++ b/src/urlbar.cpp @@ -33,19 +33,19 @@ UrlBar::UrlBar(QWidget *parent) - : KHistoryComboBox( true, parent ) - , m_webView(0) - , m_lineEdit(new QLineEdit) + : KHistoryComboBox(true, parent) + , m_webView(0) + , m_lineEdit(new QLineEdit) { - setLineEdit( m_lineEdit ); + setLineEdit(m_lineEdit); QSizePolicy policy = sizePolicy(); setSizePolicy(QSizePolicy::Preferred, policy.verticalPolicy()); - m_defaultBaseColor = palette().color( QPalette::Base ); + m_defaultBaseColor = palette().color(QPalette::Base); // add every item to history - connect( this, SIGNAL( activated( const QString& ) ), this, SLOT( addToHistory( const QString& ) ) ); + connect(this, SIGNAL(activated(const QString&)), this, SLOT(addToHistory(const QString&))); webViewIconChanged(); } @@ -91,10 +91,10 @@ void UrlBar::webViewIconChanged() QIcon icon = Application::instance()->icon(url); QPixmap pixmap(icon.pixmap(16, 16)); QIcon urlIcon = QIcon(pixmap); - + // FIXME simple hack to show Icon in the urlbar, as calling changeUrl() doesn't affect it - insertUrl(0,urlIcon,url); - if(count()>1) + insertUrl(0, urlIcon, url); + if (count() > 1) { removeItem(1); } @@ -116,18 +116,18 @@ QLinearGradient UrlBar::generateGradient(const QColor &color) const // void UrlBar::paintEvent( QPaintEvent *event ) // { // QPalette p = palette(); -// if (m_webView && m_webView->url().scheme() == QLatin1String("https")) +// if (m_webView && m_webView->url().scheme() == QLatin1String("https")) // { // QColor lightYellow(248, 248, 210); // p.setBrush(QPalette::Base, generateGradient(lightYellow)); -// } -// else +// } +// else // { // p.setBrush(QPalette::Base, m_defaultBaseColor); // } // setPalette(p); // KHistoryComboBox::paintEvent(event); -// +// // QPainter painter( this ); // QRect backgroundRect = m_lineEdit->frameGeometry(); // contentsRect(); // FIXME perhaps better working with contentsRect // if ( m_webView && !hasFocus() ) // and modifying colours.. |