Make error messages a bit better.

Change-Id: I83b5852abfbb3437c03516bc4b36eff385ddb983
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
This commit is contained in:
Stephen Kelly 2013-11-02 17:31:44 +01:00 committed by The Qt Project
parent 82fe2c6c1b
commit 215e525a5c
3 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ QT_BEGIN_NAMESPACE
static bool qt_pixmap_thread_test()
{
if (!QCoreApplication::instance()) {
qFatal("QPixmap: Must construct a QApplication before a QPaintDevice");
qFatal("QPixmap: Must construct a QGuiApplication before a QPixmap");
return false;
}

View File

@ -538,7 +538,7 @@ QPrinter::QPrinter(const QPrinterInfo& printer, PrinterMode mode)
void QPrinterPrivate::init(QPrinter::PrinterMode mode)
{
if (!QCoreApplication::instance()) {
qFatal("QPrinter: Must construct a QApplication before a QPaintDevice");
qFatal("QPrinter: Must construct a QCoreApplication before a QPrinter");
return;
}

View File

@ -289,7 +289,7 @@ QWidgetPrivate::QWidgetPrivate(int version)
#endif
{
if (!qApp) {
qFatal("QWidget: Must construct a QApplication before a QPaintDevice");
qFatal("QWidget: Must construct a QApplication before a QWidget");
return;
}