comparison view/View.cpp @ 465:b77b79413cdb

* fix some warnings, remove debug
author Chris Cannam
date Fri, 16 Jan 2009 15:12:23 +0000
parents 0a78c6b6ebc5
children 08e1ccfe289c
comparison
equal deleted inserted replaced
464:69089c9dc42e 465:b77b79413cdb
1575 long dx = 1575 long dx =
1576 getXForFrame(m_cacheCentreFrame) - 1576 getXForFrame(m_cacheCentreFrame) -
1577 getXForFrame(m_centreFrame); 1577 getXForFrame(m_centreFrame);
1578 1578
1579 if (dx > -width() && dx < width()) { 1579 if (dx > -width() && dx < width()) {
1580 #if defined(Q_WS_WIN32) || defined(Q_WS_MAC) 1580 #if defined(Q_WS_WIN32) || defined(Q_WS_MAC) || defined(NO_PIXMAP_COPY_TO_SELF)
1581 // Copying a pixmap to itself doesn't work properly on Windows 1581 // Copying a pixmap to itself doesn't work properly on Windows
1582 // or Mac (it only works when moving in one direction) 1582 // or Mac (it only works when moving in one direction)
1583 static QPixmap *tmpPixmap = 0; 1583 static QPixmap *tmpPixmap = 0;
1584 if (!tmpPixmap || 1584 if (!tmpPixmap ||
1585 tmpPixmap->width() != width() || 1585 tmpPixmap->width() != width() ||