OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47c9703
)
substitue native graphics system request with raster, with a warning
author
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 8 Aug 2016 18:28:36 +0000
(18:28 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Mon, 8 Aug 2016 18:28:36 +0000
(18:28 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/painting/qgraphicssystemfactory.cpp
patch
|
blob
|
history
diff --git
a/src/gui/painting/qgraphicssystemfactory.cpp
b/src/gui/painting/qgraphicssystemfactory.cpp
index
1242084
..
6b3d0e3
100644
(file)
--- a/
src/gui/painting/qgraphicssystemfactory.cpp
+++ b/
src/gui/painting/qgraphicssystemfactory.cpp
@@
-70,10
+70,14
@@
QGraphicsSystem *QGraphicsSystemFactory::create(const QString& key)
}
#endif
- if (system == QLatin1String("raster"))
+ if (system == QLatin1String("raster"))
{
return new QRasterGraphicsSystem;
- else if (system.isEmpty())
+ } else if (system == QLatin1String("native")) {
+ qWarning() << "Attempt to load native graphicssystem";
+ return new QRasterGraphicsSystem;
+ } else if (system.isEmpty()) {
return 0;
+ }
#ifndef QT_NO_LIBRARY
if (!ret) {