diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-04-29 11:24:11 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-04-29 11:24:11 +0200 |
commit | 82862fbd150afae0101757d1d6081e0e6ddf7baa (patch) | |
tree | c864003f3580d4eae365e3757c7a826ae3f6bfe7 /src/stackedurlbar.cpp | |
parent | Forgot to add it... ;) (diff) | |
download | rekonq-82862fbd150afae0101757d1d6081e0e6ddf7baa.tar.xz |
astyle
Diffstat (limited to 'src/stackedurlbar.cpp')
-rw-r--r-- | src/stackedurlbar.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |