SyncWidget.cpp: In member function `void Exif::SyncWidget::slotMoveSelectedDown()': SyncWidget.cpp:93: error: invalid conversion from `int' to `Exif::Syncable::Kind' SyncWidget.cpp: In member function `void Exif::SyncWidget::slotMoveSelectedUp()': SyncWidget.cpp:118: error: invalid conversion from `int' to `Exif::Syncable::Kind' SyncWidget.cpp:93: /* * Move currently selected item one step down */ void SyncWidget::slotMoveSelectedDown() { QListViewItem* item = _list->selectedItem(); if ( !item ) return; QListViewItem* other = item->itemBelow(); if ( other ) { /* 93 */ Syncable::Kind kind = static_cast( item->text( 1 ).toInt() ); QValueList::iterator current, next; next = current = _items.find( kind ); Q_ASSERT( current != _items.end() ); --next; *current = *next; *next = kind; item->moveItem( other ); slotHandleDisabling(); } } Syncable.h: [...] namespace Exif { namespace Syncable { enum Header { NONE, FILE, JPEG, EXIF, IPTC }; enum Kind { // delimiter for the "don't proccess more records" position STOP, // JPEG header JPEG_COMMENT, // image orientation EXIF_ORIENTATION, JPEG_ORIENTATION, // standard EXIF fields for description/label EXIF_DESCRIPTION, EXIF_USER_COMMENT, // stuff from Windows XP EXIF_XPTITLE, EXIF_XPCOMMENT, EXIF_XPKEYWORDS, EXIF_XPSUBJECT, // standard IPTC label/description IPTC_HEADLINE, IPTC_CAPTION, IPTC_OBJECT_NAME, IPTC_SUBJECT, // IPTC categories IPTC_SUPP_CAT, IPTC_KEYWORDS, // geographic stuff IPTC_LOCATION_CODE, IPTC_LOCATION_NAME, IPTC_CITY, IPTC_SUB_LOCATION, IPTC_PROVINCE_STATE, IPTC_COUNTRY_CODE, IPTC_COUNTRY_NAME, // file modification time FILE_CTIME, FILE_MTIME, EXIF_DATETIME, EXIF_DATETIME_ORIGINAL, EXIF_DATETIME_DIGITIZED }; [...]