PathListDialog: Increase initial dialog size

Especially on Windows systems, paths can be long.

To avoid resizing the dialog on each open, just
make it larger by default.

Change-Id: I3803ee6f930e0c27f3d8841fff025d1641bb216e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Andre Hartmann
2020-08-10 10:04:51 +02:00
committed by André Hartmann
parent 6d6938c69f
commit d273a5bc5f

View File

@@ -57,6 +57,15 @@
namespace ProjectExplorer {
class PathTreeWidget : public QTreeWidget
{
public:
QSize sizeHint() const override
{
return QSize(800, 600);
}
};
class PathListDialog : public QDialog
{
Q_DECLARE_TR_FUNCTIONS(EnvironmentWidget)
@@ -131,7 +140,7 @@ private:
| Qt::ItemIsDragEnabled);
}
QTreeWidget m_view;
PathTreeWidget m_view;
};
class EnvironmentDelegate : public QStyledItemDelegate