diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-12-30 11:40:22 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-03 18:49:01 +0100 |
commit | 5d45c70895980e42e376a185a7647d5de158ee22 (patch) | |
tree | c78e1e769e85913d96adbdffd3def8807a9d2415 /src | |
parent | improve closed tabs management (diff) | |
download | rekonq-5d45c70895980e42e376a185a7647d5de158ee22.tar.xz |
Invert PreviewListItem order: icon, text, preview.
Diffstat (limited to 'src')
-rw-r--r-- | src/urlbar/listitem.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/urlbar/listitem.cpp b/src/urlbar/listitem.cpp index 0be4b761..b6cec8b5 100644 --- a/src/urlbar/listitem.cpp +++ b/src/urlbar/listitem.cpp @@ -160,7 +160,7 @@ void ListItem::nextItemSubChoice() TypeIconLabel::TypeIconLabel(int type, QWidget *parent) : QLabel(parent) { - setMinimumWidth(40); + setMinimumWidth(16); QHBoxLayout *hLayout = new QHBoxLayout; hLayout->setMargin(0); hLayout->setAlignment(Qt::AlignRight); @@ -324,13 +324,10 @@ PreviewListItem::PreviewListItem(const UrlSearchItem &item, const QString &text, QHBoxLayout *hLayout = new QHBoxLayout; hLayout->setSpacing(4); - QLabel *previewLabelIcon = new QLabel(this); - previewLabelIcon->setFixedSize(45, 33); - new PreviewLabel(item.url, 38, 29, previewLabelIcon); - IconLabel* icon = new IconLabel(item.url, previewLabelIcon); - icon->move(27, 16); - hLayout->addWidget(previewLabelIcon); + // icon + hLayout->addWidget(new TypeIconLabel(item.type, this)); + // url + text QVBoxLayout *vLayout = new QVBoxLayout; vLayout->setMargin(0); @@ -344,10 +341,15 @@ PreviewListItem::PreviewListItem(const UrlSearchItem &item, const QString &text, vLayout->addWidget(new TextLabel(title, text, this)); vLayout->addWidget(new TextLabel("<i>" + item.url + "</i>", text, this)); - hLayout->addLayout(vLayout); - hLayout->addWidget(new TypeIconLabel(item.type, this)); + // preview label icon + QLabel *previewLabelIcon = new QLabel(this); + previewLabelIcon->setFixedSize(45, 33); + new PreviewLabel(item.url, 38, 29, previewLabelIcon); + IconLabel* icon = new IconLabel(item.url, previewLabelIcon); + icon->move(27, 16); + hLayout->addWidget(previewLabelIcon); setLayout(hLayout); } |