From 82862fbd150afae0101757d1d6081e0e6ddf7baa Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 29 Apr 2009 11:24:11 +0200 Subject: astyle --- src/stackedurlbar.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/stackedurlbar.cpp') diff --git a/src/stackedurlbar.cpp b/src/stackedurlbar.cpp index bd12ba2d..113c8769 100644 --- a/src/stackedurlbar.cpp +++ b/src/stackedurlbar.cpp @@ -67,7 +67,7 @@ UrlBar *StackedUrlBar::urlBar(int index) void StackedUrlBar::addUrlBar(UrlBar* urlBar) { QStackedWidget::addWidget(urlBar); - + // setup completion objects urlBar->setCompletionObject(completion()); } @@ -88,7 +88,7 @@ void StackedUrlBar::removeUrlBar(UrlBar* urlBar) void StackedUrlBar::clear() { currentUrlBar()->clearHistory(); - + for (int i = 0; i < count(); ++i) { urlBar(i)->clear(); @@ -124,19 +124,19 @@ KCompletion *StackedUrlBar::completion() int count = model->rowCount(); kDebug() << "...initialize history items" << count; - + // change order to insertion to avoid confusion of the addItem method // in weighted it expects format string:number and it thinks http it the whole string m_completion->setOrder(KCompletion::Insertion); - for(int i = 0; i < count; ++i) + for (int i = 0; i < count; ++i) { - QString item = model->data(model->index(i,0)).toString(); + QString item = model->data(model->index(i, 0)).toString(); item.remove(QRegExp("^http://|/$")); m_completion->addItem(item); } m_completion->setOrder(KCompletion::Weighted); } - + return m_completion; } -- cgit v1.2.1