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:
parent
82fe2c6c1b
commit
215e525a5c
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user