From 395a904bff7b4d6ead445c342f7ac0c5fbf29121 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 17:00:31 +0000 Subject: TQt4 port kdeaddons This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konq-plugins/imagerotation/orient.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'konq-plugins/imagerotation/orient.py') diff --git a/konq-plugins/imagerotation/orient.py b/konq-plugins/imagerotation/orient.py index 0671876..8db06ad 100755 --- a/konq-plugins/imagerotation/orient.py +++ b/konq-plugins/imagerotation/orient.py @@ -42,13 +42,13 @@ if not tags: print 'no EXIF information in', filename sys.exit(1) if not tags.has_key('Exif Offset') \ - or not tags.has_key('Image Orientation'): + or not tags.has_key('Image Qt::Orientation'): print 'cannot get orientation info in', filename sys.exit(1) exifp = tags['Exif Offset'] endian = tags['Exif Endian'] -tagp = tags['Image Orientation'].field_offset +tagp = tags['Image Qt::Orientation'].field_offset orientp = exifp + tagp @@ -93,8 +93,8 @@ os.write(fd,chr(newo)) # Thumbnail orientation : thumb_ifdp = 0 -if tags.has_key('Thumbnail Orientation'): - thumb_tagp = tags['Thumbnail Orientation'].field_offset +if tags.has_key('Thumbnail Qt::Orientation'): + thumb_tagp = tags['Thumbnail Qt::Orientation'].field_offset thumb_orientp = exifp + thumb_tagp if endian == 'M': # MM byte order thumb_orientp += 1 -- cgit v1.2.1