summaryrefslogtreecommitdiffstats
path: root/src/sql/drivers/psql/qsql_psql.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <[email protected]>2013-02-05 13:20:31 +0100
committerThe Qt Project <[email protected]>2013-02-27 22:29:43 +0100
commit123ce761c058acc0222792e96c9aba22d06e619c (patch)
tree44f1b1fc6f3c51f6fbe86dd3cc56420a110d9881 /src/sql/drivers/psql/qsql_psql.cpp
parent70bb34ccd5983133118655cd73683750d4f53de7 (diff)
QT_MESSAGE_OUTPUT: add support for condition depending on the type
The motivation is to enable coloration the way KDE currently does. It can now be achieved with a QT_MESSAGE_OUTPUT set to "%{appname}(%{category}) \033[31m%{if-debug}\033[34m%{endif}%{function}\033[0m: %{message}" I was thinking about supporting directly color using something like %{begin-category-color} that would be smart and detect if we are running on a terminal, but it would be less flexible in the way the colors van be configured. Changelog: QT_MESSAGE_OUTPUT can contain conditionals based on the type of the message Change-Id: Icd8de04734a94a3afcbf542a5b78b290a1914960 Reviewed-by: David Faure (KDE) <[email protected]>
Diffstat (limited to 'src/sql/drivers/psql/qsql_psql.cpp')
0 files changed, 0 insertions, 0 deletions