summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcursor_mac.mm
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-03-01 16:31:44 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-03-01 16:35:40 (GMT)
commit83c37c2cdf7adf2604e1e6012a9e0e6e67d97d6b (patch)
tree03be87adf234cd0f381a9cf168ccc9b115623c6f /src/gui/kernel/qcursor_mac.mm
parent31f2d97e28dff1a72511ab1ef7737e5f78d4cf66 (diff)
downloadQt-83c37c2cdf7adf2604e1e6012a9e0e6e67d97d6b.zip
Qt-83c37c2cdf7adf2604e1e6012a9e0e6e67d97d6b.tar.gz
Qt-83c37c2cdf7adf2604e1e6012a9e0e6e67d97d6b.tar.bz2
removed dead code
Reviewed-by: denis
Diffstat (limited to 'src/gui/kernel/qcursor_mac.mm')
-rw-r--r--src/gui/kernel/qcursor_mac.mm33
1 files changed, 12 insertions, 21 deletions
diff --git a/src/gui/kernel/qcursor_mac.mm b/src/gui/kernel/qcursor_mac.mm
index cfebf60..03e38b0 100644
--- a/src/gui/kernel/qcursor_mac.mm
+++ b/src/gui/kernel/qcursor_mac.mm
@@ -114,27 +114,18 @@ void qt_mac_set_cursor(const QCursor *c, const QPoint &)
}
c->handle(); //force the cursor to get loaded, if it's not
- if(1 || currentCursor != c->d) {
- if(currentCursor && currentCursor->type == QCursorData::TYPE_ThemeCursor
- && currentCursor->curs.tc.anim)
- currentCursor->curs.tc.anim->stop();
- QMacCocoaAutoReleasePool pool;
- if(c->d->type == QCursorData::TYPE_ImageCursor) {
- [static_cast<NSCursor *>(c->d->curs.cp.nscursor) set];
- } else if(c->d->type == QCursorData::TYPE_ThemeCursor) {
-#ifdef QT_MAC_USE_COCOA
- if (c->d->curs.cp.nscursor == 0)
- [[NSCursor arrowCursor] set];
- [static_cast<NSCursor *>(c->d->curs.cp.nscursor) set];
-#else
- if(SetAnimatedThemeCursor(c->d->curs.tc.curs, 0) == themeBadCursorIndexErr) {
- SetThemeCursor(c->d->curs.tc.curs);
- } else {
- if(!c->d->curs.tc.anim)
- c->d->curs.tc.anim = new QMacAnimateCursor;
- c->d->curs.tc.anim->start(c->d->curs.tc.curs);
- }
-#endif
+ if(currentCursor && currentCursor->type == QCursorData::TYPE_ThemeCursor
+ && currentCursor->curs.tc.anim)
+ currentCursor->curs.tc.anim->stop();
+ if(c->d->type == QCursorData::TYPE_ImageCursor) {
+ [static_cast<NSCursor *>(c->d->curs.cp.nscursor) set];
+ } else if(c->d->type == QCursorData::TYPE_ThemeCursor) {
+ if(SetAnimatedThemeCursor(c->d->curs.tc.curs, 0) == themeBadCursorIndexErr) {
+ SetThemeCursor(c->d->curs.tc.curs);
+ } else {
+ if(!c->d->curs.tc.anim)
+ c->d->curs.tc.anim = new QMacAnimateCursor;
+ c->d->curs.tc.anim->start(c->d->curs.tc.curs);
}
}
currentCursor = c->d;