forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user