diff options
author | megabigbug <megabigbug@arrakis.(none)> | 2010-05-15 16:12:09 +0200 |
---|---|---|
committer | megabigbug <megabigbug@arrakis.(none)> | 2010-05-15 16:12:09 +0200 |
commit | a1ec23527529f51a63eb9aa9be436b37692481d7 (patch) | |
tree | d14c3b8780bb1825b350be7a5225d8b18aec8df9 /src/urlbar/completionwidget.cpp | |
parent | This commit should fix a lot of troubles on fast urlbar typing (diff) | |
download | rekonq-a1ec23527529f51a63eb9aa9be436b37692481d7.tar.xz |
don't use adjusteSize()
compute the height from size hint of items
decrease timer to 50
Diffstat (limited to 'src/urlbar/completionwidget.cpp')
-rw-r--r-- | src/urlbar/completionwidget.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/urlbar/completionwidget.cpp b/src/urlbar/completionwidget.cpp index b19b163e..9a5c9432 100644 --- a/src/urlbar/completionwidget.cpp +++ b/src/urlbar/completionwidget.cpp @@ -85,7 +85,14 @@ void CompletionWidget::insertSearchList(const UrlSearchList &list, const QString void CompletionWidget::sizeAndPosition() { setFixedWidth(_parent->width()); - adjustSize(); + + int h=0; + for (int i = 0; i < layout()->count(); i++) + { + QWidget *widget = layout()->itemAt(i)->widget(); + h += widget->sizeHint().height(); + } + setFixedSize(_parent->width(),h+5); // position QPoint p = _parent->mapToGlobal(QPoint(0, 0)); |