aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/namevaluemodel.h
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2020-04-02 20:38:09 +0200
committerAndré Hartmann <aha_1980@gmx.de>2021-04-19 08:57:41 +0000
commite31af51958cc48177366a7852df79800a7482afe (patch)
tree21bd28cac72b6a8974f0e00ed60ff883ef11a34b /src/libs/utils/namevaluemodel.h
parent6ceb2244d82bcddc607d5272f41448da4f0bcb0a (diff)
Environment: Wrap path lists at separator for tooltips
Therefore move the list detection code to the model. Reason: The HTML wrapping mechanism used before created hard to read tooltips like: /opt/Qt/5.15.2/gcc_64/bin:/ usr/bin:/home/user/bin:/ usr/local/sbin:/usr/local/ bin:/usr/sbin:/usr/bin:/sbin:/ bin:/usr/games:/usr/local/ games:/snap/bin which changes to the list below now: /opt/Qt/5.15.2/gcc_64/bin /usr/bin /home/user/bin /usr/local/sbin /usr/local/bin ... Task-number: QTCREATORBUG-7993 Change-Id: I08acc2cad0d12cb4309ee50d837c50dc9ccba2d9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/libs/utils/namevaluemodel.h')
-rw-r--r--src/libs/utils/namevaluemodel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/utils/namevaluemodel.h b/src/libs/utils/namevaluemodel.h
index ede319a013..6e6ddfc177 100644
--- a/src/libs/utils/namevaluemodel.h
+++ b/src/libs/utils/namevaluemodel.h
@@ -70,6 +70,7 @@ public:
void setBaseNameValueDictionary(const NameValueDictionary &dictionary);
NameValueItems userChanges() const;
void setUserChanges(const NameValueItems &items);
+ bool currentEntryIsPathList(const QModelIndex &current) const;
signals:
void userChangesChanged();