summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/option.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-09-07 13:56:34 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-09-07 13:56:34 (GMT)
commitb21639304b108de0697553f062eb36ccde6a5bd5 (patch)
tree0b34d0cf81742bfb34250c0f1e4350c9ab692ef7 /src/tools/uic/option.h
parent3505c6cdcdfac5a6d0f4b94dbdbcc8ad72f8048a (diff)
downloadQt-b21639304b108de0697553f062eb36ccde6a5bd5.zip
Qt-b21639304b108de0697553f062eb36ccde6a5bd5.tar.gz
Qt-b21639304b108de0697553f062eb36ccde6a5bd5.tar.bz2
Tools (uic/rcc): Improve warning messages.
Output as 'filename: Warning: message' and make some uic warnings more verbose to make Qt Creator parsing easier. Fix resource warning in Qt Designer. Reviewed-by: dt Rubber-stamped-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/tools/uic/option.h')
-rw-r--r--src/tools/uic/option.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/uic/option.h b/src/tools/uic/option.h
index 8556728..011a8f8 100644
--- a/src/tools/uic/option.h
+++ b/src/tools/uic/option.h
@@ -43,6 +43,7 @@
#define OPTION_H
#include <QtCore/QString>
+#include <QtCore/QDir>
QT_BEGIN_NAMESPACE
@@ -91,6 +92,13 @@ struct Option
generator(CppGenerator),
prefix(QLatin1String("Ui_"))
{ indent.fill(QLatin1Char(' '), 4); }
+
+ QString messagePrefix() const
+ {
+ return inputFile.isEmpty() ?
+ QString(QLatin1String("stdin")) :
+ QDir::toNativeSeparators(inputFile);
+ }
};
QT_END_NAMESPACE