Adjust too large QListWidget in SearchBanner

This commit is contained in:
Grégory Soutadé 2012-05-29 21:11:29 +02:00
parent 84ea8e618b
commit 112c2e7d85
1 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ SearchBanner::SearchBanner(KissCount* kiss, QFrame *parent, void* caller, OnButt
item = new QListWidgetItem(_(categoryIt->name.toStdString().c_str()), _category);
item->setCheckState (Qt::Unchecked);
}
_category->setMaximumSize(_category->sizeHint());
_category->setMaximumSize(QSize(_category->contentsRect().width()*1.5, _category->sizeHint().height()));
_optype = new QListWidget(this);
item = new QListWidgetItem(_("Fix"), _optype);
@ -78,7 +78,7 @@ SearchBanner::SearchBanner(KissCount* kiss, QFrame *parent, void* caller, OnButt
item->setCheckState (Qt::Unchecked);
item = new QListWidgetItem(_("Not checked"), _optype);
item->setCheckState (Qt::Unchecked);
_optype->setMaximumSize(_optype->sizeHint());
_optype->setMaximumSize(QSize(_optype->contentsRect().width()*1.5, _optype->sizeHint().height()));
_account = new QListWidget(this);
item = new QListWidgetItem(_("Unknown"), _account);
@ -88,7 +88,7 @@ SearchBanner::SearchBanner(KissCount* kiss, QFrame *parent, void* caller, OnButt
item = new QListWidgetItem(accountIt->name, _account);
item->setCheckState (Qt::Unchecked);
}
_account->setMaximumSize(_account->sizeHint());
_account->setMaximumSize(QSize(_account->contentsRect().width()*1.5, _account->sizeHint().height()));
QLabel* labelDescription = new QLabel(_("Description"));
QLabel* labelAmountFrom = new QLabel(_("Amount from"));