Utils: Decrease default maximum history size

History completer has been used now in various areas
and storing 30 items for each of them inside the can
grow the settings quite a lot.
Limit the default to a sensible value - if one of the
history completer needs a higher maximum this can be
raised from the using code.

Change-Id: I5b0bdaa74c1be29f981593f840d5605b75bd17c5
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2018-10-22 12:42:41 +02:00
parent d3cc6db57b
commit 5224e824ae

View File

@@ -56,7 +56,7 @@ public:
QStringList list; QStringList list;
QString historyKey; QString historyKey;
QString historyKeyIsLastItemEmpty; QString historyKeyIsLastItemEmpty;
int maxLines = 30; int maxLines = 6;
bool isLastItemEmpty = false; bool isLastItemEmpty = false;
}; };