Fix some layout issues with the new dialog

* Slightly larger row height
* Make the default size slightly nicer
* Fixed a drawing artifact in certain styles

Note that the dialog will be resizable on linux now.

Reviewed-by: mae
This commit is contained in:
Jens Bache-Wiig
2010-05-03 20:14:32 +02:00
parent bc19337047
commit 6a4d08ba17
2 changed files with 64 additions and 53 deletions

View File

@@ -95,7 +95,7 @@ public:
}
};
#define CATEGORY_ROW_HEIGHT 18
#define ROW_HEIGHT 24
class FancyTopLevelDelegate : public QItemDelegate
{
@@ -127,8 +127,8 @@ public:
{
QSize size = QItemDelegate::sizeHint(option, index);
if (!index.parent().isValid())
size = size.expandedTo(QSize(0, CATEGORY_ROW_HEIGHT));
size = size.expandedTo(QSize(0, ROW_HEIGHT));
return size;
}