[aurorae] Whether animations are supported only depends on compositing
Test for raster graphics system doesn't make any sense in QtQuick2 world.
This commit is contained in:
parent
736a0c5611
commit
d1afcc7cb2
1 changed files with 1 additions and 9 deletions
|
@ -26,7 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include <QtDeclarative/QDeclarativeEngine>
|
||||
#include <QtDeclarative/QDeclarativeItem>
|
||||
#include <QGraphicsView>
|
||||
#include <QPaintEngine>
|
||||
#include <QStandardPaths>
|
||||
|
||||
#include <KConfig>
|
||||
|
@ -586,14 +585,7 @@ QRegion AuroraeClient::region(KDecorationDefines::Region r)
|
|||
|
||||
bool AuroraeClient::animationsSupported() const
|
||||
{
|
||||
if (!compositingActive()) {
|
||||
return false;
|
||||
}
|
||||
QPixmap pix(1,1);
|
||||
QPainter p(&pix);
|
||||
const bool raster = p.paintEngine()->type() == QPaintEngine::Raster;
|
||||
p.end();
|
||||
return raster;
|
||||
return compositingActive();
|
||||
}
|
||||
|
||||
} // namespace Aurorae
|
||||
|
|
Loading…
Reference in a new issue