# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1277310346 -10800 # Node ID 15f034b8a3b5be8be0f5107f3a48c761601abf86 # Parent 4fa04caf0f435953926126f5f3a077413df5c309 Revision: 201023 Kit: 2010125 diff -r 4fa04caf0f43 -r 15f034b8a3b5 bwins/hgcacheproxymodelu.def --- a/bwins/hgcacheproxymodelu.def Fri Jun 11 14:43:11 2010 +0300 +++ b/bwins/hgcacheproxymodelu.def Wed Jun 23 19:25:46 2010 +0300 @@ -11,126 +11,129 @@ ??0HgDataProviderModel@@QAE@PAVQObject@@@Z @ 10 NONAME ; HgDataProviderModel::HgDataProviderModel(class QObject *) ?dropMimeData@HgCacheProxyModel@@UAE_NPBVQMimeData@@W4DropAction@Qt@@HHABVQModelIndex@@@Z @ 11 NONAME ; bool HgCacheProxyModel::dropMimeData(class QMimeData const *, enum Qt::DropAction, int, int, class QModelIndex const &) ?setFilterRegExp@HgCacheProxyModel@@QAEXABVQRegExp@@@Z @ 12 NONAME ; void HgCacheProxyModel::setFilterRegExp(class QRegExp const &) - ?columnCount@HgDataProviderModel@@UBEHABVQModelIndex@@@Z @ 13 NONAME ; int HgDataProviderModel::columnCount(class QModelIndex const &) const - ?update@HgDataProviderModel@@IAE_NHPAV?$QList@U?$QPair@VQVariant@@H@@@@_N@Z @ 14 NONAME ; bool HgDataProviderModel::update(int, class QList > *, bool) - ?doResetModel@HgDataProviderModel@@MAEXXZ @ 15 NONAME ; void HgDataProviderModel::doResetModel(void) - ?canFetchMore@HgCacheProxyModel@@UBE_NABVQModelIndex@@@Z @ 16 NONAME ; bool HgCacheProxyModel::canFetchMore(class QModelIndex const &) const - ?emitDataChanged@HgDataProviderModel@@IAEXHH_N@Z @ 17 NONAME ; void HgDataProviderModel::emitDataChanged(int, int, bool) - ?staticMetaObject@HgDataProviderModel@@2UQMetaObject@@B @ 18 NONAME ; struct QMetaObject const HgDataProviderModel::staticMetaObject - ?mapFromDataProviderIndex@HgCacheProxyModel@@ABEHH@Z @ 19 NONAME ; int HgCacheProxyModel::mapFromDataProviderIndex(int) const - ?sourceLayoutChanged@HgCacheProxyModel@@AAEXXZ @ 20 NONAME ; void HgCacheProxyModel::sourceLayoutChanged(void) - ?data@HgDataProviderModel@@UBE?AVQVariant@@ABVQModelIndex@@H@Z @ 21 NONAME ; class QVariant HgDataProviderModel::data(class QModelIndex const &, int) const - ?setSortCaseSensitivity@HgCacheProxyModel@@QAEXW4CaseSensitivity@Qt@@@Z @ 22 NONAME ; void HgCacheProxyModel::setSortCaseSensitivity(enum Qt::CaseSensitivity) - ?itemData@HgCacheProxyModel@@UBE?AV?$QMap@HVQVariant@@@@ABVQModelIndex@@@Z @ 23 NONAME ; class QMap HgCacheProxyModel::itemData(class QModelIndex const &) const - ?submit@HgCacheProxyModel@@UAE_NXZ @ 24 NONAME ; bool HgCacheProxyModel::submit(void) - ?sourceColumnsAboutToBeRemoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 25 NONAME ; void HgCacheProxyModel::sourceColumnsAboutToBeRemoved(class QModelIndex const &, int, int) - ?hasChildren@HgCacheProxyModel@@UBE_NABVQModelIndex@@@Z @ 26 NONAME ; bool HgCacheProxyModel::hasChildren(class QModelIndex const &) const - ?sourceColumnsRemoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 27 NONAME ; void HgCacheProxyModel::sourceColumnsRemoved(class QModelIndex const &, int, int) - ?trUtf8@HgDataProviderModel@@SA?AVQString@@PBD0H@Z @ 28 NONAME ; class QString HgDataProviderModel::trUtf8(char const *, char const *, int) - ?tr@HgDataProviderModel@@SA?AVQString@@PBD0H@Z @ 29 NONAME ; class QString HgDataProviderModel::tr(char const *, char const *, int) - ?setFilterRole@HgCacheProxyModel@@QAEXH@Z @ 30 NONAME ; void HgCacheProxyModel::setFilterRole(int) - ?setSortLocaleAware@HgCacheProxyModel@@QAEX_N@Z @ 31 NONAME ; void HgCacheProxyModel::setSortLocaleAware(bool) - ?removeItem@HgDataProviderModel@@IAEXH@Z @ 32 NONAME ; void HgDataProviderModel::removeItem(int) - ?trUtf8@HgCacheProxyModel@@SA?AVQString@@PBD0H@Z @ 33 NONAME ; class QString HgCacheProxyModel::trUtf8(char const *, char const *, int) - ?getStaticMetaObject@HgCacheProxyModel@@SAABUQMetaObject@@XZ @ 34 NONAME ; struct QMetaObject const & HgCacheProxyModel::getStaticMetaObject(void) - ?sourceColumnsAboutToBeMoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH0H@Z @ 35 NONAME ; void HgCacheProxyModel::sourceColumnsAboutToBeMoved(class QModelIndex const &, int, int, class QModelIndex const &, int) - ?clearCache@HgDataProviderModel@@IAEXXZ @ 36 NONAME ; void HgDataProviderModel::clearCache(void) - ??1HgDataProviderModel@@UAE@XZ @ 37 NONAME ; HgDataProviderModel::~HgDataProviderModel(void) - ?sourceColumnsMoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH0H@Z @ 38 NONAME ; void HgCacheProxyModel::sourceColumnsMoved(class QModelIndex const &, int, int, class QModelIndex const &, int) - ?isSortLocaleAware@HgCacheProxyModel@@QBE_NXZ @ 39 NONAME ; bool HgCacheProxyModel::isSortLocaleAware(void) const - ?isIndexValid@HgDataProviderModel@@IBE_NH@Z @ 40 NONAME ; bool HgDataProviderModel::isIndexValid(int) const - ?sortColumn@HgCacheProxyModel@@QBEHXZ @ 41 NONAME ; int HgCacheProxyModel::sortColumn(void) const - ?request@HgDataProviderModel@@QAEXV?$QList@H@@_N@Z @ 42 NONAME ; void HgDataProviderModel::request(class QList, bool) - ?resizeCache@HgCacheProxyModel@@QAEXHH@Z @ 43 NONAME ; void HgCacheProxyModel::resizeCache(int, int) - ?doInsertItem@HgDataProviderModel@@AAEXHPAV?$QList@U?$QPair@VQVariant@@H@@@@_N@Z @ 44 NONAME ; void HgDataProviderModel::doInsertItem(int, class QList > *, bool) - ?mapToDataProviderIndex@HgCacheProxyModel@@ABEHH@Z @ 45 NONAME ; int HgCacheProxyModel::mapToDataProviderIndex(int) const - ?qt_metacast@HgCacheProxyModel@@UAEPAXPBD@Z @ 46 NONAME ; void * HgCacheProxyModel::qt_metacast(char const *) - ?request@HgCacheProxyModel@@UAEXHHW4HgRequestOrder@HgBufferManagerObserver@@@Z @ 47 NONAME ; void HgCacheProxyModel::request(int, int, enum HgBufferManagerObserver::HgRequestOrder) - ?mimeTypes@HgCacheProxyModel@@UBE?AVQStringList@@XZ @ 48 NONAME ; class QStringList HgCacheProxyModel::mimeTypes(void) const - ?sortCaseSensitivity@HgCacheProxyModel@@QBE?AW4CaseSensitivity@Qt@@XZ @ 49 NONAME ; enum Qt::CaseSensitivity HgCacheProxyModel::sortCaseSensitivity(void) const - ?setItemData@HgCacheProxyModel@@UAE_NABVQModelIndex@@ABV?$QMap@HVQVariant@@@@@Z @ 50 NONAME ; bool HgCacheProxyModel::setItemData(class QModelIndex const &, class QMap const &) - ?staticMetaObject@HgCacheProxyModel@@2UQMetaObject@@B @ 51 NONAME ; struct QMetaObject const HgCacheProxyModel::staticMetaObject - ?rowCount@HgCacheProxyModel@@UBEHABVQModelIndex@@@Z @ 52 NONAME ; int HgCacheProxyModel::rowCount(class QModelIndex const &) const - ??_EHgDataProviderModel@@UAE@I@Z @ 53 NONAME ; HgDataProviderModel::~HgDataProviderModel(unsigned int) - ?newItem@HgDataProviderModel@@IAEXPAV?$QList@U?$QPair@VQVariant@@H@@@@_N@Z @ 54 NONAME ; void HgDataProviderModel::newItem(class QList > *, bool) - ?setHeaderData@HgCacheProxyModel@@UAE_NHW4Orientation@Qt@@ABVQVariant@@H@Z @ 55 NONAME ; bool HgCacheProxyModel::setHeaderData(int, enum Qt::Orientation, class QVariant const &, int) - ?releaseAll@HgCacheProxyModel@@AAEXXZ @ 56 NONAME ; void HgCacheProxyModel::releaseAll(void) - ?setSortRole@HgCacheProxyModel@@QAEXH@Z @ 57 NONAME ; void HgCacheProxyModel::setSortRole(int) - ?trUtf8@HgDataProviderModel@@SA?AVQString@@PBD0@Z @ 58 NONAME ; class QString HgDataProviderModel::trUtf8(char const *, char const *) - ?flags@HgCacheProxyModel@@UBE?AV?$QFlags@W4ItemFlag@Qt@@@@ABVQModelIndex@@@Z @ 59 NONAME ; class QFlags HgCacheProxyModel::flags(class QModelIndex const &) const - ?DataProvider@HgCacheProxyModel@@QAEPAVHgDataProviderModel@@XZ @ 60 NONAME ; class HgDataProviderModel * HgCacheProxyModel::DataProvider(void) - ?insertItem@HgDataProviderModel@@IAEXHU?$QPair@VQVariant@@H@@_N@Z @ 61 NONAME ; void HgDataProviderModel::insertItem(int, struct QPair, bool) - ?sourceColumnsAboutToBeInserted@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 62 NONAME ; void HgCacheProxyModel::sourceColumnsAboutToBeInserted(class QModelIndex const &, int, int) - ?data@HgCacheProxyModel@@UBE?AVQVariant@@ABVQModelIndex@@H@Z @ 63 NONAME ; class QVariant HgCacheProxyModel::data(class QModelIndex const &, int) const - ?createIcon@HgDataProviderModel@@IAE?AVQVariant@@HVQPixmap@@@Z @ 64 NONAME ; class QVariant HgDataProviderModel::createIcon(int, class QPixmap) - ?parent@HgCacheProxyModel@@UBE?AVQModelIndex@@ABV2@@Z @ 65 NONAME ; class QModelIndex HgCacheProxyModel::parent(class QModelIndex const &) const - ?parent@HgDataProviderModel@@UBE?AVQModelIndex@@ABV2@@Z @ 66 NONAME ; class QModelIndex HgDataProviderModel::parent(class QModelIndex const &) const - ?setDataProvider@HgCacheProxyModel@@QAEXPAVHgDataProviderModel@@HH@Z @ 67 NONAME ; void HgCacheProxyModel::setDataProvider(class HgDataProviderModel *, int, int) - ?release@HgDataProviderModel@@QAEXV?$QList@H@@_N@Z @ 68 NONAME ; void HgDataProviderModel::release(class QList, bool) - ?qt_metacast@HgDataProviderModel@@UAEPAXPBD@Z @ 69 NONAME ; void * HgDataProviderModel::qt_metacast(char const *) - ?mapToSource@HgCacheProxyModel@@ABE?AVQModelIndex@@ABV2@@Z @ 70 NONAME ; class QModelIndex HgCacheProxyModel::mapToSource(class QModelIndex const &) const - ?sourceDataChanged@HgCacheProxyModel@@AAEXABVQModelIndex@@0@Z @ 71 NONAME ; void HgCacheProxyModel::sourceDataChanged(class QModelIndex const &, class QModelIndex const &) - ?sourceRowsAboutToBeRemoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 72 NONAME ; void HgCacheProxyModel::sourceRowsAboutToBeRemoved(class QModelIndex const &, int, int) - ?columnCount@HgCacheProxyModel@@UBEHABVQModelIndex@@@Z @ 73 NONAME ; int HgCacheProxyModel::columnCount(class QModelIndex const &) const - ?mapToSource@HgCacheProxyModel@@ABE?AVQModelIndex@@HH@Z @ 74 NONAME ; class QModelIndex HgCacheProxyModel::mapToSource(int, int) const - ?tr@HgDataProviderModel@@SA?AVQString@@PBD0@Z @ 75 NONAME ; class QString HgDataProviderModel::tr(char const *, char const *) - ?sourceRowsRemoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 76 NONAME ; void HgCacheProxyModel::sourceRowsRemoved(class QModelIndex const &, int, int) - ?sourceHeaderDataChanged@HgCacheProxyModel@@AAEXW4Orientation@Qt@@HH@Z @ 77 NONAME ; void HgCacheProxyModel::sourceHeaderDataChanged(enum Qt::Orientation, int, int) - ??1HgCacheProxyModel@@UAE@XZ @ 78 NONAME ; HgCacheProxyModel::~HgCacheProxyModel(void) - ?registerObserver@HgDataProviderModel@@QAEXPAVHgDataProviderModelObserver@@@Z @ 79 NONAME ; void HgDataProviderModel::registerObserver(class HgDataProviderModelObserver *) - ?sourceRowsAboutToBeMoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH0H@Z @ 80 NONAME ; void HgCacheProxyModel::sourceRowsAboutToBeMoved(class QModelIndex const &, int, int, class QModelIndex const &, int) - ??0HgCacheProxyModel@@QAE@PAVQObject@@@Z @ 81 NONAME ; HgCacheProxyModel::HgCacheProxyModel(class QObject *) - ?supportedDropActions@HgCacheProxyModel@@UBE?AV?$QFlags@W4DropAction@Qt@@@@XZ @ 82 NONAME ; class QFlags HgCacheProxyModel::supportedDropActions(void) const - ?updateIcon@HgDataProviderModel@@IAE_NHVQVariant@@_N@Z @ 83 NONAME ; bool HgDataProviderModel::updateIcon(int, class QVariant, bool) - ?index@HgDataProviderModel@@UBE?AVQModelIndex@@HHABV2@@Z @ 84 NONAME ; class QModelIndex HgDataProviderModel::index(int, int, class QModelIndex const &) const - ?sort@HgCacheProxyModel@@UAEXHW4SortOrder@Qt@@@Z @ 85 NONAME ; void HgCacheProxyModel::sort(int, enum Qt::SortOrder) - ?releasePixmap@HgDataProviderModel@@IAEXH@Z @ 86 NONAME ; void HgDataProviderModel::releasePixmap(int) - ?sourceRowsMoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH0H@Z @ 87 NONAME ; void HgCacheProxyModel::sourceRowsMoved(class QModelIndex const &, int, int, class QModelIndex const &, int) - ?removeColumns@HgCacheProxyModel@@UAE_NHHABVQModelIndex@@@Z @ 88 NONAME ; bool HgCacheProxyModel::removeColumns(int, int, class QModelIndex const &) - ?insertRows@HgCacheProxyModel@@UAE_NHHABVQModelIndex@@@Z @ 89 NONAME ; bool HgCacheProxyModel::insertRows(int, int, class QModelIndex const &) - ?tr@HgCacheProxyModel@@SA?AVQString@@PBD0H@Z @ 90 NONAME ; class QString HgCacheProxyModel::tr(char const *, char const *, int) - ?insertItem@HgDataProviderModel@@IAEXHPAV?$QList@U?$QPair@VQVariant@@H@@@@_N@Z @ 91 NONAME ; void HgDataProviderModel::insertItem(int, class QList > *, bool) - ?revert@HgCacheProxyModel@@UAEXXZ @ 92 NONAME ; void HgCacheProxyModel::revert(void) - ?dynamicSortFilter@HgCacheProxyModel@@QBE_NXZ @ 93 NONAME ; bool HgCacheProxyModel::dynamicSortFilter(void) const - ?data@HgDataProviderModel@@IBE?AVQVariant@@HH@Z @ 94 NONAME ; class QVariant HgDataProviderModel::data(int, int) const - ?rowCount@HgDataProviderModel@@UBEHABVQModelIndex@@@Z @ 95 NONAME ; int HgDataProviderModel::rowCount(class QModelIndex const &) const - ?setFilterCaseSensitivity@HgCacheProxyModel@@QAEXW4CaseSensitivity@Qt@@@Z @ 96 NONAME ; void HgCacheProxyModel::setFilterCaseSensitivity(enum Qt::CaseSensitivity) - ?count@HgCacheProxyModel@@ABEHXZ @ 97 NONAME ; int HgCacheProxyModel::count(void) const - ?sortOrder@HgCacheProxyModel@@QBE?AW4SortOrder@Qt@@XZ @ 98 NONAME ; enum Qt::SortOrder HgCacheProxyModel::sortOrder(void) const - ?removeRows@HgCacheProxyModel@@UAE_NHHABVQModelIndex@@@Z @ 99 NONAME ; bool HgCacheProxyModel::removeRows(int, int, class QModelIndex const &) - ?getStaticMetaObject@HgDataProviderModel@@SAABUQMetaObject@@XZ @ 100 NONAME ; struct QMetaObject const & HgDataProviderModel::getStaticMetaObject(void) - ?setBufferPosition@HgCacheProxyModel@@ABEXH@Z @ 101 NONAME ; void HgCacheProxyModel::setBufferPosition(int) const - ?dataUpdated@HgCacheProxyModel@@UAEXHH@Z @ 102 NONAME ; void HgCacheProxyModel::dataUpdated(int, int) - ?sourceRowsAboutToBeInserted@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 103 NONAME ; void HgCacheProxyModel::sourceRowsAboutToBeInserted(class QModelIndex const &, int, int) - ?fetchMore@HgCacheProxyModel@@UAEXABVQModelIndex@@@Z @ 104 NONAME ; void HgCacheProxyModel::fetchMore(class QModelIndex const &) - ?filterCaseSensitivity@HgCacheProxyModel@@QBE?AW4CaseSensitivity@Qt@@XZ @ 105 NONAME ; enum Qt::CaseSensitivity HgCacheProxyModel::filterCaseSensitivity(void) const - ?newItem@HgDataProviderModel@@IAEXU?$QPair@VQVariant@@H@@_N@Z @ 106 NONAME ; void HgDataProviderModel::newItem(struct QPair, bool) - ?setDynamicSortFilter@HgCacheProxyModel@@QAEX_N@Z @ 107 NONAME ; void HgCacheProxyModel::setDynamicSortFilter(bool) - ?sourceModelReset@HgCacheProxyModel@@AAEXXZ @ 108 NONAME ; void HgCacheProxyModel::sourceModelReset(void) - ?index@HgCacheProxyModel@@UBE?AVQModelIndex@@HHABV2@@Z @ 109 NONAME ; class QModelIndex HgCacheProxyModel::index(int, int, class QModelIndex const &) const - ?removeItems@HgDataProviderModel@@IAEXHH@Z @ 110 NONAME ; void HgDataProviderModel::removeItems(int, int) - ?count@HgDataProviderModel@@IBEHXZ @ 111 NONAME ; int HgDataProviderModel::count(void) const - ?sourceColumnsInserted@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 112 NONAME ; void HgCacheProxyModel::sourceColumnsInserted(class QModelIndex const &, int, int) - ?tr@HgCacheProxyModel@@SA?AVQString@@PBD0@Z @ 113 NONAME ; class QString HgCacheProxyModel::tr(char const *, char const *) - ?qt_metacall@HgCacheProxyModel@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 114 NONAME ; int HgCacheProxyModel::qt_metacall(enum QMetaObject::Call, int, void * *) - ?setData@HgCacheProxyModel@@UAE_NABVQModelIndex@@ABVQVariant@@H@Z @ 115 NONAME ; bool HgCacheProxyModel::setData(class QModelIndex const &, class QVariant const &, int) - ?mimeData@HgCacheProxyModel@@UBEPAVQMimeData@@ABV?$QList@VQModelIndex@@@@@Z @ 116 NONAME ; class QMimeData * HgCacheProxyModel::mimeData(class QList const &) const - ?match@HgCacheProxyModel@@UBE?AV?$QList@VQModelIndex@@@@ABVQModelIndex@@HABVQVariant@@HV?$QFlags@W4MatchFlag@Qt@@@@@Z @ 117 NONAME ; class QList HgCacheProxyModel::match(class QModelIndex const &, int, class QVariant const &, int, class QFlags) const - ?update@HgDataProviderModel@@IAE_NHVQVariant@@H_N@Z @ 118 NONAME ; bool HgDataProviderModel::update(int, class QVariant, int, bool) - ?sourceRowsInserted@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 119 NONAME ; void HgCacheProxyModel::sourceRowsInserted(class QModelIndex const &, int, int) - ?release@HgCacheProxyModel@@UAEXHH@Z @ 120 NONAME ; void HgCacheProxyModel::release(int, int) - ?resetModel@HgDataProviderModel@@QAEXXZ @ 121 NONAME ; void HgDataProviderModel::resetModel(void) - ?span@HgCacheProxyModel@@UBE?AVQSize@@ABVQModelIndex@@@Z @ 122 NONAME ; class QSize HgCacheProxyModel::span(class QModelIndex const &) const - ?insertColumns@HgCacheProxyModel@@UAE_NHHABVQModelIndex@@@Z @ 123 NONAME ; bool HgCacheProxyModel::insertColumns(int, int, class QModelIndex const &) - ??_EHgCacheProxyModel@@UAE@I@Z @ 124 NONAME ; HgCacheProxyModel::~HgCacheProxyModel(unsigned int) - ?filterRole@HgCacheProxyModel@@QBEHXZ @ 125 NONAME ; int HgCacheProxyModel::filterRole(void) const - ?metaObject@HgDataProviderModel@@UBEPBUQMetaObject@@XZ @ 126 NONAME ; struct QMetaObject const * HgDataProviderModel::metaObject(void) const - ?resetIcon@HgDataProviderModel@@IAEXH@Z @ 127 NONAME ; void HgDataProviderModel::resetIcon(int) - ?sourceLayoutAboutToBeChanged@HgCacheProxyModel@@AAEXXZ @ 128 NONAME ; void HgCacheProxyModel::sourceLayoutAboutToBeChanged(void) - ?metaObject@HgCacheProxyModel@@UBEPBUQMetaObject@@XZ @ 129 NONAME ; struct QMetaObject const * HgCacheProxyModel::metaObject(void) const - ?getPixmap@HgDataProviderModel@@AAEPAVQPixmap@@H@Z @ 130 NONAME ; class QPixmap * HgDataProviderModel::getPixmap(int) - ?sourceModelAboutToBeReset@HgCacheProxyModel@@AAEXXZ @ 131 NONAME ; void HgCacheProxyModel::sourceModelAboutToBeReset(void) - ?qt_metacall@HgDataProviderModel@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 132 NONAME ; int HgDataProviderModel::qt_metacall(enum QMetaObject::Call, int, void * *) - ?filterKeyColumn@HgCacheProxyModel@@QBEHXZ @ 133 NONAME ; int HgCacheProxyModel::filterKeyColumn(void) const - ?getData@HgDataProviderModel@@MBE?AVQVariant@@HH@Z @ 134 NONAME ; class QVariant HgDataProviderModel::getData(int, int) const + ?clearItem@HgDataProviderModel@@IAEXH_N@Z @ 13 NONAME ; void HgDataProviderModel::clearItem(int, bool) + ?columnCount@HgDataProviderModel@@UBEHABVQModelIndex@@@Z @ 14 NONAME ; int HgDataProviderModel::columnCount(class QModelIndex const &) const + ?update@HgDataProviderModel@@IAE_NHPAV?$QList@U?$QPair@VQVariant@@H@@@@_N@Z @ 15 NONAME ; bool HgDataProviderModel::update(int, class QList > *, bool) + ?doResetModel@HgDataProviderModel@@MAEXXZ @ 16 NONAME ; void HgDataProviderModel::doResetModel(void) + ?canFetchMore@HgCacheProxyModel@@UBE_NABVQModelIndex@@@Z @ 17 NONAME ; bool HgCacheProxyModel::canFetchMore(class QModelIndex const &) const + ?emitDataChanged@HgDataProviderModel@@IAEXHH_N@Z @ 18 NONAME ; void HgDataProviderModel::emitDataChanged(int, int, bool) + ?staticMetaObject@HgDataProviderModel@@2UQMetaObject@@B @ 19 NONAME ; struct QMetaObject const HgDataProviderModel::staticMetaObject + ?mapFromDataProviderIndex@HgCacheProxyModel@@ABEHH@Z @ 20 NONAME ; int HgCacheProxyModel::mapFromDataProviderIndex(int) const + ?sourceLayoutChanged@HgCacheProxyModel@@AAEXXZ @ 21 NONAME ; void HgCacheProxyModel::sourceLayoutChanged(void) + ?data@HgDataProviderModel@@UBE?AVQVariant@@ABVQModelIndex@@H@Z @ 22 NONAME ; class QVariant HgDataProviderModel::data(class QModelIndex const &, int) const + ?setSortCaseSensitivity@HgCacheProxyModel@@QAEXW4CaseSensitivity@Qt@@@Z @ 23 NONAME ; void HgCacheProxyModel::setSortCaseSensitivity(enum Qt::CaseSensitivity) + ?itemData@HgCacheProxyModel@@UBE?AV?$QMap@HVQVariant@@@@ABVQModelIndex@@@Z @ 24 NONAME ; class QMap HgCacheProxyModel::itemData(class QModelIndex const &) const + ?removeItems@HgDataProviderModel@@IAEXHH_N@Z @ 25 NONAME ; void HgDataProviderModel::removeItems(int, int, bool) + ?submit@HgCacheProxyModel@@UAE_NXZ @ 26 NONAME ; bool HgCacheProxyModel::submit(void) + ?sourceColumnsAboutToBeRemoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 27 NONAME ; void HgCacheProxyModel::sourceColumnsAboutToBeRemoved(class QModelIndex const &, int, int) + ?hasChildren@HgCacheProxyModel@@UBE_NABVQModelIndex@@@Z @ 28 NONAME ; bool HgCacheProxyModel::hasChildren(class QModelIndex const &) const + ?sourceColumnsRemoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 29 NONAME ; void HgCacheProxyModel::sourceColumnsRemoved(class QModelIndex const &, int, int) + ?trUtf8@HgDataProviderModel@@SA?AVQString@@PBD0H@Z @ 30 NONAME ; class QString HgDataProviderModel::trUtf8(char const *, char const *, int) + ?tr@HgDataProviderModel@@SA?AVQString@@PBD0H@Z @ 31 NONAME ; class QString HgDataProviderModel::tr(char const *, char const *, int) + ?setFilterRole@HgCacheProxyModel@@QAEXH@Z @ 32 NONAME ; void HgCacheProxyModel::setFilterRole(int) + ?setSortLocaleAware@HgCacheProxyModel@@QAEX_N@Z @ 33 NONAME ; void HgCacheProxyModel::setSortLocaleAware(bool) + ?trUtf8@HgCacheProxyModel@@SA?AVQString@@PBD0H@Z @ 34 NONAME ; class QString HgCacheProxyModel::trUtf8(char const *, char const *, int) + ?getStaticMetaObject@HgCacheProxyModel@@SAABUQMetaObject@@XZ @ 35 NONAME ; struct QMetaObject const & HgCacheProxyModel::getStaticMetaObject(void) + ?sourceColumnsAboutToBeMoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH0H@Z @ 36 NONAME ; void HgCacheProxyModel::sourceColumnsAboutToBeMoved(class QModelIndex const &, int, int, class QModelIndex const &, int) + ?clearCache@HgDataProviderModel@@IAEXXZ @ 37 NONAME ; void HgDataProviderModel::clearCache(void) + ??1HgDataProviderModel@@UAE@XZ @ 38 NONAME ; HgDataProviderModel::~HgDataProviderModel(void) + ?sourceColumnsMoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH0H@Z @ 39 NONAME ; void HgCacheProxyModel::sourceColumnsMoved(class QModelIndex const &, int, int, class QModelIndex const &, int) + ?isSortLocaleAware@HgCacheProxyModel@@QBE_NXZ @ 40 NONAME ; bool HgCacheProxyModel::isSortLocaleAware(void) const + ?isIndexValid@HgDataProviderModel@@IBE_NH@Z @ 41 NONAME ; bool HgDataProviderModel::isIndexValid(int) const + ?sortColumn@HgCacheProxyModel@@QBEHXZ @ 42 NONAME ; int HgCacheProxyModel::sortColumn(void) const + ?request@HgDataProviderModel@@QAEXV?$QList@H@@_N@Z @ 43 NONAME ; void HgDataProviderModel::request(class QList, bool) + ?resizeCache@HgCacheProxyModel@@QAEXHH@Z @ 44 NONAME ; void HgCacheProxyModel::resizeCache(int, int) + ?doInsertItem@HgDataProviderModel@@AAEXHPAV?$QList@U?$QPair@VQVariant@@H@@@@_N@Z @ 45 NONAME ; void HgDataProviderModel::doInsertItem(int, class QList > *, bool) + ?mapToDataProviderIndex@HgCacheProxyModel@@ABEHH@Z @ 46 NONAME ; int HgCacheProxyModel::mapToDataProviderIndex(int) const + ?qt_metacast@HgCacheProxyModel@@UAEPAXPBD@Z @ 47 NONAME ; void * HgCacheProxyModel::qt_metacast(char const *) + ?request@HgCacheProxyModel@@UAEXHHW4HgRequestOrder@HgBufferManagerObserver@@@Z @ 48 NONAME ; void HgCacheProxyModel::request(int, int, enum HgBufferManagerObserver::HgRequestOrder) + ?mimeTypes@HgCacheProxyModel@@UBE?AVQStringList@@XZ @ 49 NONAME ; class QStringList HgCacheProxyModel::mimeTypes(void) const + ?sortCaseSensitivity@HgCacheProxyModel@@QBE?AW4CaseSensitivity@Qt@@XZ @ 50 NONAME ; enum Qt::CaseSensitivity HgCacheProxyModel::sortCaseSensitivity(void) const + ?setItemData@HgCacheProxyModel@@UAE_NABVQModelIndex@@ABV?$QMap@HVQVariant@@@@@Z @ 51 NONAME ; bool HgCacheProxyModel::setItemData(class QModelIndex const &, class QMap const &) + ?staticMetaObject@HgCacheProxyModel@@2UQMetaObject@@B @ 52 NONAME ; struct QMetaObject const HgCacheProxyModel::staticMetaObject + ?rowCount@HgCacheProxyModel@@UBEHABVQModelIndex@@@Z @ 53 NONAME ; int HgCacheProxyModel::rowCount(class QModelIndex const &) const + ??_EHgDataProviderModel@@UAE@I@Z @ 54 NONAME ; HgDataProviderModel::~HgDataProviderModel(unsigned int) + ?newItem@HgDataProviderModel@@IAEXPAV?$QList@U?$QPair@VQVariant@@H@@@@_N@Z @ 55 NONAME ; void HgDataProviderModel::newItem(class QList > *, bool) + ?setHeaderData@HgCacheProxyModel@@UAE_NHW4Orientation@Qt@@ABVQVariant@@H@Z @ 56 NONAME ; bool HgCacheProxyModel::setHeaderData(int, enum Qt::Orientation, class QVariant const &, int) + ?releaseAll@HgCacheProxyModel@@AAEXXZ @ 57 NONAME ; void HgCacheProxyModel::releaseAll(void) + ?setSortRole@HgCacheProxyModel@@QAEXH@Z @ 58 NONAME ; void HgCacheProxyModel::setSortRole(int) + ?trUtf8@HgDataProviderModel@@SA?AVQString@@PBD0@Z @ 59 NONAME ; class QString HgDataProviderModel::trUtf8(char const *, char const *) + ?flags@HgCacheProxyModel@@UBE?AV?$QFlags@W4ItemFlag@Qt@@@@ABVQModelIndex@@@Z @ 60 NONAME ; class QFlags HgCacheProxyModel::flags(class QModelIndex const &) const + ?DataProvider@HgCacheProxyModel@@QAEPAVHgDataProviderModel@@XZ @ 61 NONAME ; class HgDataProviderModel * HgCacheProxyModel::DataProvider(void) + ?insertItem@HgDataProviderModel@@IAEXHU?$QPair@VQVariant@@H@@_N@Z @ 62 NONAME ; void HgDataProviderModel::insertItem(int, struct QPair, bool) + ?getData@HgDataProviderModel@@MBE?AVQVariant@@HH@Z @ 63 NONAME ; class QVariant HgDataProviderModel::getData(int, int) const + ?sourceColumnsAboutToBeInserted@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 64 NONAME ; void HgCacheProxyModel::sourceColumnsAboutToBeInserted(class QModelIndex const &, int, int) + ?data@HgCacheProxyModel@@UBE?AVQVariant@@ABVQModelIndex@@H@Z @ 65 NONAME ; class QVariant HgCacheProxyModel::data(class QModelIndex const &, int) const + ?createIcon@HgDataProviderModel@@IAE?AVQVariant@@HVQPixmap@@@Z @ 66 NONAME ; class QVariant HgDataProviderModel::createIcon(int, class QPixmap) + ?parent@HgCacheProxyModel@@UBE?AVQModelIndex@@ABV2@@Z @ 67 NONAME ; class QModelIndex HgCacheProxyModel::parent(class QModelIndex const &) const + ?parent@HgDataProviderModel@@UBE?AVQModelIndex@@ABV2@@Z @ 68 NONAME ; class QModelIndex HgDataProviderModel::parent(class QModelIndex const &) const + ?removeItem@HgDataProviderModel@@IAEXH_N@Z @ 69 NONAME ; void HgDataProviderModel::removeItem(int, bool) + ?setDataProvider@HgCacheProxyModel@@QAEXPAVHgDataProviderModel@@HH@Z @ 70 NONAME ; void HgCacheProxyModel::setDataProvider(class HgDataProviderModel *, int, int) + ?release@HgDataProviderModel@@QAEXV?$QList@H@@_N@Z @ 71 NONAME ; void HgDataProviderModel::release(class QList, bool) + ?qt_metacast@HgDataProviderModel@@UAEPAXPBD@Z @ 72 NONAME ; void * HgDataProviderModel::qt_metacast(char const *) + ?mapToSource@HgCacheProxyModel@@ABE?AVQModelIndex@@ABV2@@Z @ 73 NONAME ; class QModelIndex HgCacheProxyModel::mapToSource(class QModelIndex const &) const + ?sourceDataChanged@HgCacheProxyModel@@AAEXABVQModelIndex@@0@Z @ 74 NONAME ; void HgCacheProxyModel::sourceDataChanged(class QModelIndex const &, class QModelIndex const &) + ?sourceRowsAboutToBeRemoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 75 NONAME ; void HgCacheProxyModel::sourceRowsAboutToBeRemoved(class QModelIndex const &, int, int) + ?columnCount@HgCacheProxyModel@@UBEHABVQModelIndex@@@Z @ 76 NONAME ; int HgCacheProxyModel::columnCount(class QModelIndex const &) const + ?mapToSource@HgCacheProxyModel@@ABE?AVQModelIndex@@HH@Z @ 77 NONAME ; class QModelIndex HgCacheProxyModel::mapToSource(int, int) const + ?tr@HgDataProviderModel@@SA?AVQString@@PBD0@Z @ 78 NONAME ; class QString HgDataProviderModel::tr(char const *, char const *) + ?sourceRowsRemoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 79 NONAME ; void HgCacheProxyModel::sourceRowsRemoved(class QModelIndex const &, int, int) + ?sourceHeaderDataChanged@HgCacheProxyModel@@AAEXW4Orientation@Qt@@HH@Z @ 80 NONAME ; void HgCacheProxyModel::sourceHeaderDataChanged(enum Qt::Orientation, int, int) + ??1HgCacheProxyModel@@UAE@XZ @ 81 NONAME ; HgCacheProxyModel::~HgCacheProxyModel(void) + ?registerObserver@HgDataProviderModel@@QAEXPAVHgDataProviderModelObserver@@@Z @ 82 NONAME ; void HgDataProviderModel::registerObserver(class HgDataProviderModelObserver *) + ?sourceRowsAboutToBeMoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH0H@Z @ 83 NONAME ; void HgCacheProxyModel::sourceRowsAboutToBeMoved(class QModelIndex const &, int, int, class QModelIndex const &, int) + ??0HgCacheProxyModel@@QAE@PAVQObject@@@Z @ 84 NONAME ; HgCacheProxyModel::HgCacheProxyModel(class QObject *) + ?supportedDropActions@HgCacheProxyModel@@UBE?AV?$QFlags@W4DropAction@Qt@@@@XZ @ 85 NONAME ; class QFlags HgCacheProxyModel::supportedDropActions(void) const + ?updateIcon@HgDataProviderModel@@IAE_NHVQVariant@@_N@Z @ 86 NONAME ; bool HgDataProviderModel::updateIcon(int, class QVariant, bool) + ?index@HgDataProviderModel@@UBE?AVQModelIndex@@HHABV2@@Z @ 87 NONAME ; class QModelIndex HgDataProviderModel::index(int, int, class QModelIndex const &) const + ?sort@HgCacheProxyModel@@UAEXHW4SortOrder@Qt@@@Z @ 88 NONAME ; void HgCacheProxyModel::sort(int, enum Qt::SortOrder) + ?releasePixmap@HgDataProviderModel@@IAEXH@Z @ 89 NONAME ; void HgDataProviderModel::releasePixmap(int) + ?sourceRowsMoved@HgCacheProxyModel@@AAEXABVQModelIndex@@HH0H@Z @ 90 NONAME ; void HgCacheProxyModel::sourceRowsMoved(class QModelIndex const &, int, int, class QModelIndex const &, int) + ?removeColumns@HgCacheProxyModel@@UAE_NHHABVQModelIndex@@@Z @ 91 NONAME ; bool HgCacheProxyModel::removeColumns(int, int, class QModelIndex const &) + ?insertRows@HgCacheProxyModel@@UAE_NHHABVQModelIndex@@@Z @ 92 NONAME ; bool HgCacheProxyModel::insertRows(int, int, class QModelIndex const &) + ?tr@HgCacheProxyModel@@SA?AVQString@@PBD0H@Z @ 93 NONAME ; class QString HgCacheProxyModel::tr(char const *, char const *, int) + ?insertItem@HgDataProviderModel@@IAEXHPAV?$QList@U?$QPair@VQVariant@@H@@@@_N@Z @ 94 NONAME ; void HgDataProviderModel::insertItem(int, class QList > *, bool) + ?revert@HgCacheProxyModel@@UAEXXZ @ 95 NONAME ; void HgCacheProxyModel::revert(void) + ?dynamicSortFilter@HgCacheProxyModel@@QBE_NXZ @ 96 NONAME ; bool HgCacheProxyModel::dynamicSortFilter(void) const + ?data@HgDataProviderModel@@IBE?AVQVariant@@HH@Z @ 97 NONAME ; class QVariant HgDataProviderModel::data(int, int) const + ?rowCount@HgDataProviderModel@@UBEHABVQModelIndex@@@Z @ 98 NONAME ; int HgDataProviderModel::rowCount(class QModelIndex const &) const + ?setFilterCaseSensitivity@HgCacheProxyModel@@QAEXW4CaseSensitivity@Qt@@@Z @ 99 NONAME ; void HgCacheProxyModel::setFilterCaseSensitivity(enum Qt::CaseSensitivity) + ?count@HgCacheProxyModel@@ABEHXZ @ 100 NONAME ; int HgCacheProxyModel::count(void) const + ?sortOrder@HgCacheProxyModel@@QBE?AW4SortOrder@Qt@@XZ @ 101 NONAME ; enum Qt::SortOrder HgCacheProxyModel::sortOrder(void) const + ?removeRows@HgCacheProxyModel@@UAE_NHHABVQModelIndex@@@Z @ 102 NONAME ; bool HgCacheProxyModel::removeRows(int, int, class QModelIndex const &) + ?getStaticMetaObject@HgDataProviderModel@@SAABUQMetaObject@@XZ @ 103 NONAME ; struct QMetaObject const & HgDataProviderModel::getStaticMetaObject(void) + ?setBufferPosition@HgCacheProxyModel@@ABEXH@Z @ 104 NONAME ; void HgCacheProxyModel::setBufferPosition(int) const + ?dataUpdated@HgCacheProxyModel@@UAEXHH@Z @ 105 NONAME ; void HgCacheProxyModel::dataUpdated(int, int) + ?sourceRowsAboutToBeInserted@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 106 NONAME ; void HgCacheProxyModel::sourceRowsAboutToBeInserted(class QModelIndex const &, int, int) + ?fetchMore@HgCacheProxyModel@@UAEXABVQModelIndex@@@Z @ 107 NONAME ; void HgCacheProxyModel::fetchMore(class QModelIndex const &) + ?filterCaseSensitivity@HgCacheProxyModel@@QBE?AW4CaseSensitivity@Qt@@XZ @ 108 NONAME ; enum Qt::CaseSensitivity HgCacheProxyModel::filterCaseSensitivity(void) const + ?newItem@HgDataProviderModel@@IAEXU?$QPair@VQVariant@@H@@_N@Z @ 109 NONAME ; void HgDataProviderModel::newItem(struct QPair, bool) + ?setDynamicSortFilter@HgCacheProxyModel@@QAEX_N@Z @ 110 NONAME ; void HgCacheProxyModel::setDynamicSortFilter(bool) + ?sourceModelReset@HgCacheProxyModel@@AAEXXZ @ 111 NONAME ; void HgCacheProxyModel::sourceModelReset(void) + ?index@HgCacheProxyModel@@UBE?AVQModelIndex@@HHABV2@@Z @ 112 NONAME ; class QModelIndex HgCacheProxyModel::index(int, int, class QModelIndex const &) const + ?setIconMode@HgDataProviderModel@@QAEXW4HgDataProviderIconMode@1@@Z @ 113 NONAME ; void HgDataProviderModel::setIconMode(enum HgDataProviderModel::HgDataProviderIconMode) + ?count@HgDataProviderModel@@IBEHXZ @ 114 NONAME ; int HgDataProviderModel::count(void) const + ?sourceColumnsInserted@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 115 NONAME ; void HgCacheProxyModel::sourceColumnsInserted(class QModelIndex const &, int, int) + ?tr@HgCacheProxyModel@@SA?AVQString@@PBD0@Z @ 116 NONAME ; class QString HgCacheProxyModel::tr(char const *, char const *) + ?qt_metacall@HgCacheProxyModel@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 117 NONAME ; int HgCacheProxyModel::qt_metacall(enum QMetaObject::Call, int, void * *) + ?setData@HgCacheProxyModel@@UAE_NABVQModelIndex@@ABVQVariant@@H@Z @ 118 NONAME ; bool HgCacheProxyModel::setData(class QModelIndex const &, class QVariant const &, int) + ?mimeData@HgCacheProxyModel@@UBEPAVQMimeData@@ABV?$QList@VQModelIndex@@@@@Z @ 119 NONAME ; class QMimeData * HgCacheProxyModel::mimeData(class QList const &) const + ?iconMode@HgDataProviderModel@@QAE?AW4HgDataProviderIconMode@1@XZ @ 120 NONAME ; enum HgDataProviderModel::HgDataProviderIconMode HgDataProviderModel::iconMode(void) + ?update@HgDataProviderModel@@IAE_NHVQVariant@@H_N@Z @ 121 NONAME ; bool HgDataProviderModel::update(int, class QVariant, int, bool) + ?match@HgCacheProxyModel@@UBE?AV?$QList@VQModelIndex@@@@ABVQModelIndex@@HABVQVariant@@HV?$QFlags@W4MatchFlag@Qt@@@@@Z @ 122 NONAME ; class QList HgCacheProxyModel::match(class QModelIndex const &, int, class QVariant const &, int, class QFlags) const + ?sourceRowsInserted@HgCacheProxyModel@@AAEXABVQModelIndex@@HH@Z @ 123 NONAME ; void HgCacheProxyModel::sourceRowsInserted(class QModelIndex const &, int, int) + ?release@HgCacheProxyModel@@UAEXHH@Z @ 124 NONAME ; void HgCacheProxyModel::release(int, int) + ?resetModel@HgDataProviderModel@@QAEXXZ @ 125 NONAME ; void HgDataProviderModel::resetModel(void) + ?span@HgCacheProxyModel@@UBE?AVQSize@@ABVQModelIndex@@@Z @ 126 NONAME ; class QSize HgCacheProxyModel::span(class QModelIndex const &) const + ?insertColumns@HgCacheProxyModel@@UAE_NHHABVQModelIndex@@@Z @ 127 NONAME ; bool HgCacheProxyModel::insertColumns(int, int, class QModelIndex const &) + ??_EHgCacheProxyModel@@UAE@I@Z @ 128 NONAME ; HgCacheProxyModel::~HgCacheProxyModel(unsigned int) + ?filterRole@HgCacheProxyModel@@QBEHXZ @ 129 NONAME ; int HgCacheProxyModel::filterRole(void) const + ?metaObject@HgDataProviderModel@@UBEPBUQMetaObject@@XZ @ 130 NONAME ; struct QMetaObject const * HgDataProviderModel::metaObject(void) const + ?resetIcon@HgDataProviderModel@@IAEXH@Z @ 131 NONAME ; void HgDataProviderModel::resetIcon(int) + ?sourceLayoutAboutToBeChanged@HgCacheProxyModel@@AAEXXZ @ 132 NONAME ; void HgCacheProxyModel::sourceLayoutAboutToBeChanged(void) + ?metaObject@HgCacheProxyModel@@UBEPBUQMetaObject@@XZ @ 133 NONAME ; struct QMetaObject const * HgCacheProxyModel::metaObject(void) const + ?getPixmap@HgDataProviderModel@@AAEPAVQPixmap@@H@Z @ 134 NONAME ; class QPixmap * HgDataProviderModel::getPixmap(int) + ?sourceModelAboutToBeReset@HgCacheProxyModel@@AAEXXZ @ 135 NONAME ; void HgCacheProxyModel::sourceModelAboutToBeReset(void) + ?qt_metacall@HgDataProviderModel@@UAEHW4Call@QMetaObject@@HPAPAX@Z @ 136 NONAME ; int HgDataProviderModel::qt_metacall(enum QMetaObject::Call, int, void * *) + ?filterKeyColumn@HgCacheProxyModel@@QBEHXZ @ 137 NONAME ; int HgCacheProxyModel::filterKeyColumn(void) const diff -r 4fa04caf0f43 -r 15f034b8a3b5 eabi/hgcacheproxymodelu.def --- a/eabi/hgcacheproxymodelu.def Fri Jun 11 14:43:11 2010 +0300 +++ b/eabi/hgcacheproxymodelu.def Wed Jun 23 19:25:46 2010 +0300 @@ -57,78 +57,81 @@ _ZN19HgDataProviderModel10createIconEi7QPixmap @ 56 NONAME _ZN19HgDataProviderModel10insertItemEi5QPairI8QVariantiEb @ 57 NONAME _ZN19HgDataProviderModel10insertItemEiP5QListI5QPairI8QVariantiEEb @ 58 NONAME - _ZN19HgDataProviderModel10removeItemEi @ 59 NONAME + _ZN19HgDataProviderModel10removeItemEib @ 59 NONAME _ZN19HgDataProviderModel10resetModelEv @ 60 NONAME _ZN19HgDataProviderModel10updateIconEi8QVariantb @ 61 NONAME _ZN19HgDataProviderModel11qt_metacallEN11QMetaObject4CallEiPPv @ 62 NONAME _ZN19HgDataProviderModel11qt_metacastEPKc @ 63 NONAME - _ZN19HgDataProviderModel11removeItemsEii @ 64 NONAME - _ZN19HgDataProviderModel12doInsertItemEiP5QListI5QPairI8QVariantiEEb @ 65 NONAME - _ZN19HgDataProviderModel13releasePixmapEi @ 66 NONAME - _ZN19HgDataProviderModel15emitDataChangedEiib @ 67 NONAME - _ZN19HgDataProviderModel16registerObserverEP27HgDataProviderModelObserver @ 68 NONAME - _ZN19HgDataProviderModel16staticMetaObjectE @ 69 NONAME DATA 16 - _ZN19HgDataProviderModel17resizeQPixmapPoolEi @ 70 NONAME - _ZN19HgDataProviderModel19getStaticMetaObjectEv @ 71 NONAME - _ZN19HgDataProviderModel6updateEi8QVariantib @ 72 NONAME - _ZN19HgDataProviderModel6updateEiP5QListI5QPairI8QVariantiEEb @ 73 NONAME - _ZN19HgDataProviderModel7newItemE5QPairI8QVariantiEb @ 74 NONAME - _ZN19HgDataProviderModel7newItemEP5QListI5QPairI8QVariantiEEb @ 75 NONAME - _ZN19HgDataProviderModel7releaseE5QListIiEb @ 76 NONAME - _ZN19HgDataProviderModel7requestE5QListIiEb @ 77 NONAME - _ZN19HgDataProviderModel9getPixmapEi @ 78 NONAME - _ZN19HgDataProviderModel9resetIconEi @ 79 NONAME - _ZN19HgDataProviderModelC2EP7QObject @ 80 NONAME - _ZN19HgDataProviderModelD0Ev @ 81 NONAME - _ZN19HgDataProviderModelD1Ev @ 82 NONAME - _ZN19HgDataProviderModelD2Ev @ 83 NONAME - _ZNK17HgCacheProxyModel10filterRoleEv @ 84 NONAME - _ZNK17HgCacheProxyModel10headerDataEiN2Qt11OrientationEi @ 85 NONAME - _ZNK17HgCacheProxyModel10metaObjectEv @ 86 NONAME - _ZNK17HgCacheProxyModel10sortColumnEv @ 87 NONAME - _ZNK17HgCacheProxyModel11columnCountERK11QModelIndex @ 88 NONAME - _ZNK17HgCacheProxyModel11hasChildrenERK11QModelIndex @ 89 NONAME - _ZNK17HgCacheProxyModel11mapToSourceERK11QModelIndex @ 90 NONAME - _ZNK17HgCacheProxyModel11mapToSourceEii @ 91 NONAME - _ZNK17HgCacheProxyModel12canFetchMoreERK11QModelIndex @ 92 NONAME - _ZNK17HgCacheProxyModel12filterRegExpEv @ 93 NONAME - _ZNK17HgCacheProxyModel15filterKeyColumnEv @ 94 NONAME - _ZNK17HgCacheProxyModel17dynamicSortFilterEv @ 95 NONAME - _ZNK17HgCacheProxyModel17isSortLocaleAwareEv @ 96 NONAME - _ZNK17HgCacheProxyModel17setBufferPositionEi @ 97 NONAME - _ZNK17HgCacheProxyModel19sortCaseSensitivityEv @ 98 NONAME - _ZNK17HgCacheProxyModel20supportedDropActionsEv @ 99 NONAME - _ZNK17HgCacheProxyModel21filterCaseSensitivityEv @ 100 NONAME - _ZNK17HgCacheProxyModel22mapToDataProviderIndexEi @ 101 NONAME - _ZNK17HgCacheProxyModel24mapFromDataProviderIndexEi @ 102 NONAME - _ZNK17HgCacheProxyModel4dataERK11QModelIndexi @ 103 NONAME - _ZNK17HgCacheProxyModel4spanERK11QModelIndex @ 104 NONAME - _ZNK17HgCacheProxyModel5buddyERK11QModelIndex @ 105 NONAME - _ZNK17HgCacheProxyModel5countEv @ 106 NONAME - _ZNK17HgCacheProxyModel5flagsERK11QModelIndex @ 107 NONAME - _ZNK17HgCacheProxyModel5indexEiiRK11QModelIndex @ 108 NONAME - _ZNK17HgCacheProxyModel5matchERK11QModelIndexiRK8QVarianti6QFlagsIN2Qt9MatchFlagEE @ 109 NONAME - _ZNK17HgCacheProxyModel6parentERK11QModelIndex @ 110 NONAME - _ZNK17HgCacheProxyModel8itemDataERK11QModelIndex @ 111 NONAME - _ZNK17HgCacheProxyModel8mimeDataERK5QListI11QModelIndexE @ 112 NONAME - _ZNK17HgCacheProxyModel8rowCountERK11QModelIndex @ 113 NONAME - _ZNK17HgCacheProxyModel8sortRoleEv @ 114 NONAME - _ZNK17HgCacheProxyModel9mimeTypesEv @ 115 NONAME - _ZNK17HgCacheProxyModel9sortOrderEv @ 116 NONAME - _ZNK19HgDataProviderModel10metaObjectEv @ 117 NONAME - _ZNK19HgDataProviderModel11columnCountERK11QModelIndex @ 118 NONAME - _ZNK19HgDataProviderModel4dataERK11QModelIndexi @ 119 NONAME - _ZNK19HgDataProviderModel4dataEii @ 120 NONAME - _ZNK19HgDataProviderModel5countEv @ 121 NONAME - _ZNK19HgDataProviderModel5indexEiiRK11QModelIndex @ 122 NONAME - _ZNK19HgDataProviderModel6parentERK11QModelIndex @ 123 NONAME - _ZNK19HgDataProviderModel8itemDataERK11QModelIndex @ 124 NONAME - _ZNK19HgDataProviderModel8rowCountERK11QModelIndex @ 125 NONAME - _ZTI17HgCacheProxyModel @ 126 NONAME - _ZTI19HgDataProviderModel @ 127 NONAME - _ZTV17HgCacheProxyModel @ 128 NONAME - _ZTV19HgDataProviderModel @ 129 NONAME - _ZThn12_N17HgCacheProxyModel11dataUpdatedEii @ 130 NONAME - _ZThn8_N17HgCacheProxyModel7releaseEii @ 131 NONAME - _ZThn8_N17HgCacheProxyModel7requestEiiN23HgBufferManagerObserver14HgRequestOrderE @ 132 NONAME + _ZN19HgDataProviderModel11removeItemsEiib @ 64 NONAME + _ZN19HgDataProviderModel11setIconModeENS_22HgDataProviderIconModeE @ 65 NONAME + _ZN19HgDataProviderModel12doInsertItemEiP5QListI5QPairI8QVariantiEEb @ 66 NONAME + _ZN19HgDataProviderModel13releasePixmapEi @ 67 NONAME + _ZN19HgDataProviderModel15emitDataChangedEiib @ 68 NONAME + _ZN19HgDataProviderModel16registerObserverEP27HgDataProviderModelObserver @ 69 NONAME + _ZN19HgDataProviderModel16staticMetaObjectE @ 70 NONAME DATA 16 + _ZN19HgDataProviderModel17resizeQPixmapPoolEi @ 71 NONAME + _ZN19HgDataProviderModel19getStaticMetaObjectEv @ 72 NONAME + _ZN19HgDataProviderModel6updateEi8QVariantib @ 73 NONAME + _ZN19HgDataProviderModel6updateEiP5QListI5QPairI8QVariantiEEb @ 74 NONAME + _ZN19HgDataProviderModel7newItemE5QPairI8QVariantiEb @ 75 NONAME + _ZN19HgDataProviderModel7newItemEP5QListI5QPairI8QVariantiEEb @ 76 NONAME + _ZN19HgDataProviderModel7releaseE5QListIiEb @ 77 NONAME + _ZN19HgDataProviderModel7requestE5QListIiEb @ 78 NONAME + _ZN19HgDataProviderModel8iconModeEv @ 79 NONAME + _ZN19HgDataProviderModel9clearItemEib @ 80 NONAME + _ZN19HgDataProviderModel9getPixmapEi @ 81 NONAME + _ZN19HgDataProviderModel9resetIconEi @ 82 NONAME + _ZN19HgDataProviderModelC2EP7QObject @ 83 NONAME + _ZN19HgDataProviderModelD0Ev @ 84 NONAME + _ZN19HgDataProviderModelD1Ev @ 85 NONAME + _ZN19HgDataProviderModelD2Ev @ 86 NONAME + _ZNK17HgCacheProxyModel10filterRoleEv @ 87 NONAME + _ZNK17HgCacheProxyModel10headerDataEiN2Qt11OrientationEi @ 88 NONAME + _ZNK17HgCacheProxyModel10metaObjectEv @ 89 NONAME + _ZNK17HgCacheProxyModel10sortColumnEv @ 90 NONAME + _ZNK17HgCacheProxyModel11columnCountERK11QModelIndex @ 91 NONAME + _ZNK17HgCacheProxyModel11hasChildrenERK11QModelIndex @ 92 NONAME + _ZNK17HgCacheProxyModel11mapToSourceERK11QModelIndex @ 93 NONAME + _ZNK17HgCacheProxyModel11mapToSourceEii @ 94 NONAME + _ZNK17HgCacheProxyModel12canFetchMoreERK11QModelIndex @ 95 NONAME + _ZNK17HgCacheProxyModel12filterRegExpEv @ 96 NONAME + _ZNK17HgCacheProxyModel15filterKeyColumnEv @ 97 NONAME + _ZNK17HgCacheProxyModel17dynamicSortFilterEv @ 98 NONAME + _ZNK17HgCacheProxyModel17isSortLocaleAwareEv @ 99 NONAME + _ZNK17HgCacheProxyModel17setBufferPositionEi @ 100 NONAME + _ZNK17HgCacheProxyModel19sortCaseSensitivityEv @ 101 NONAME + _ZNK17HgCacheProxyModel20supportedDropActionsEv @ 102 NONAME + _ZNK17HgCacheProxyModel21filterCaseSensitivityEv @ 103 NONAME + _ZNK17HgCacheProxyModel22mapToDataProviderIndexEi @ 104 NONAME + _ZNK17HgCacheProxyModel24mapFromDataProviderIndexEi @ 105 NONAME + _ZNK17HgCacheProxyModel4dataERK11QModelIndexi @ 106 NONAME + _ZNK17HgCacheProxyModel4spanERK11QModelIndex @ 107 NONAME + _ZNK17HgCacheProxyModel5buddyERK11QModelIndex @ 108 NONAME + _ZNK17HgCacheProxyModel5countEv @ 109 NONAME + _ZNK17HgCacheProxyModel5flagsERK11QModelIndex @ 110 NONAME + _ZNK17HgCacheProxyModel5indexEiiRK11QModelIndex @ 111 NONAME + _ZNK17HgCacheProxyModel5matchERK11QModelIndexiRK8QVarianti6QFlagsIN2Qt9MatchFlagEE @ 112 NONAME + _ZNK17HgCacheProxyModel6parentERK11QModelIndex @ 113 NONAME + _ZNK17HgCacheProxyModel8itemDataERK11QModelIndex @ 114 NONAME + _ZNK17HgCacheProxyModel8mimeDataERK5QListI11QModelIndexE @ 115 NONAME + _ZNK17HgCacheProxyModel8rowCountERK11QModelIndex @ 116 NONAME + _ZNK17HgCacheProxyModel8sortRoleEv @ 117 NONAME + _ZNK17HgCacheProxyModel9mimeTypesEv @ 118 NONAME + _ZNK17HgCacheProxyModel9sortOrderEv @ 119 NONAME + _ZNK19HgDataProviderModel10metaObjectEv @ 120 NONAME + _ZNK19HgDataProviderModel11columnCountERK11QModelIndex @ 121 NONAME + _ZNK19HgDataProviderModel4dataERK11QModelIndexi @ 122 NONAME + _ZNK19HgDataProviderModel4dataEii @ 123 NONAME + _ZNK19HgDataProviderModel5countEv @ 124 NONAME + _ZNK19HgDataProviderModel5indexEiiRK11QModelIndex @ 125 NONAME + _ZNK19HgDataProviderModel6parentERK11QModelIndex @ 126 NONAME + _ZNK19HgDataProviderModel8itemDataERK11QModelIndex @ 127 NONAME + _ZNK19HgDataProviderModel8rowCountERK11QModelIndex @ 128 NONAME + _ZTI17HgCacheProxyModel @ 129 NONAME + _ZTI19HgDataProviderModel @ 130 NONAME + _ZTV17HgCacheProxyModel @ 131 NONAME + _ZTV19HgDataProviderModel @ 132 NONAME + _ZThn12_N17HgCacheProxyModel11dataUpdatedEii @ 133 NONAME + _ZThn8_N17HgCacheProxyModel7releaseEii @ 134 NONAME + _ZThn8_N17HgCacheProxyModel7requestEiiN23HgBufferManagerObserver14HgRequestOrderE @ 135 NONAME diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/inc/HgContainer.h --- a/ganeswidgets/inc/HgContainer.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/inc/HgContainer.h Wed Jun 23 19:25:46 2010 +0300 @@ -19,7 +19,7 @@ #define HGCONTAINER_H #include -#include +#include #include #include "hgmediawalldataprovider.h" diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/inc/hgcenteritemarea.h --- a/ganeswidgets/inc/hgcenteritemarea.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/inc/hgcenteritemarea.h Wed Jun 23 19:25:46 2010 +0300 @@ -18,7 +18,7 @@ #ifndef HGCENTERICONAREA_H #define HGCENTERICONAREA_H -#include +#include class HgCenterItemArea: public HbWidget { diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/inc/hgindexfeedback.h --- a/ganeswidgets/inc/hgindexfeedback.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/inc/hgindexfeedback.h Wed Jun 23 19:25:46 2010 +0300 @@ -18,8 +18,8 @@ #ifndef HGINDEXFEEDBACK_H #define HGINDEXFEEDBACK_H -#include -#include +#include +#include #include class HbScrollBar; diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/inc/hglongpressvisualizer.h --- a/ganeswidgets/inc/hglongpressvisualizer.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/inc/hglongpressvisualizer.h Wed Jun 23 19:25:46 2010 +0300 @@ -19,7 +19,7 @@ #define HGLONGPRESSVISUALIZER_H #include -#include +#include #include #include "hgmediawalldataprovider.h" diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/src/HgContainer.cpp --- a/ganeswidgets/src/HgContainer.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/src/HgContainer.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -67,6 +67,8 @@ { FUNC_LOG; + setFlag(QGraphicsItem::ItemHasNoContents, false); + grabGesture(Qt::PanGesture); grabGesture(Qt::TapGesture); } @@ -477,7 +479,7 @@ mRenderer->draw(mSpring.startPos(), mSpring.pos(), mSpring.endPos(), springVel, painter, sceneTransform(), rect()); - painter->setRenderHint(QPainter::SmoothPixmapTransform, false); + painter->setRenderHint(QPainter::SmoothPixmapTransform, (hints.testFlag(QPainter::SmoothPixmapTransform)) ); } void HgContainer::resizeEvent(QGraphicsSceneResizeEvent *event) diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/src/hgcoverflowcontainer.cpp --- a/ganeswidgets/src/hgcoverflowcontainer.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/src/hgcoverflowcontainer.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include "hgcoverflowcontainer.h" #include "hgmediawallrenderer.h" #include "hgwidgetitem.h" @@ -46,9 +46,10 @@ // events void HgCoverflowContainer::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { + QPainter::RenderHints hints = painter->renderHints(); painter->setRenderHint(QPainter::Antialiasing, true); HgContainer::paint(painter, option, widget); - painter->setRenderHint(QPainter::Antialiasing, false); + painter->setRenderHint(QPainter::Antialiasing, (hints.testFlag(QPainter::Antialiasing)) ); } // from HgContainer diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/src/hgindexfeedback.cpp --- a/ganeswidgets/src/hgindexfeedback.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/src/hgindexfeedback.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -18,13 +18,13 @@ #include "hgindexfeedback.h" #include "hgindexfeedback_p.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include -#include +#include #include #include diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/src/hgindexfeedback_p.cpp --- a/ganeswidgets/src/hgindexfeedback_p.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/src/hgindexfeedback_p.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -18,11 +18,11 @@ #include "hgindexfeedback.h" #include "hgindexfeedback_p.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/src/hglongpressvisualizer.cpp --- a/ganeswidgets/src/hglongpressvisualizer.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/src/hglongpressvisualizer.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -27,7 +27,7 @@ active(false), spanAngle(0) { - + setFlag(QGraphicsItem::ItemHasNoContents, false); } HgLongPressVisualizer::~HgLongPressVisualizer() @@ -42,10 +42,14 @@ Q_UNUSED(widget); if (active) { + QPen oldPen = painter->pen(); + QPen pen( Qt::lightGray ); pen.setWidth(5); painter->setPen(pen); painter->drawArc(rect, 90*16, -spanAngle*16); + + painter->setPen(oldPen); //revert the painter to its old state } } diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/src/hgmediawall_p.cpp --- a/ganeswidgets/src/hgmediawall_p.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/src/hgmediawall_p.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -15,7 +15,7 @@ * */ -#include +#include #include "hgmediawall_p.h" #include "hgwidgetitem.h" #include "hgcoverflowcontainer.h" diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgcoveritem.h --- a/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgcoveritem.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgcoveritem.h Wed Jun 23 19:25:46 2010 +0300 @@ -18,8 +18,8 @@ #define HGCOVERITEM_H_ #include -#include -#include +#include +#include class HgCoverItem : public HbIconItem { diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgflipwidget.h --- a/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgflipwidget.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgflipwidget.h Wed Jun 23 19:25:46 2010 +0300 @@ -17,8 +17,8 @@ #ifndef HGFLIPWIDGET_H_ #define HGFLIPWIDGET_H_ -#include -#include +#include +#include class HbAction; class HbLabel; diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgitemsizedialog.h --- a/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgitemsizedialog.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgitemsizedialog.h Wed Jun 23 19:25:46 2010 +0300 @@ -17,10 +17,10 @@ #ifndef HGITEMSIZEDIALOG_H_ #define HGITEMSIZEDIALOG_H_ -#include -#include -#include -#include +#include +#include +#include +#include class HgItemSizeDialog : public HbDialog { diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgselectiondialog.h --- a/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgselectiondialog.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgselectiondialog.h Wed Jun 23 19:25:46 2010 +0300 @@ -18,7 +18,7 @@ #ifndef HGSELECTIONDIALOG_H #define HGSELECTIONDIALOG_H -#include +#include class HbPushButton; class HbLabel; diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgtestview.h --- a/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgtestview.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgtestview.h Wed Jun 23 19:25:46 2010 +0300 @@ -17,7 +17,7 @@ #ifndef HGTESTVIEW_H_ #define HGTESTVIEW_H_ -#include +#include class HbAction; class HbLabel; diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgetoptionsview.h --- a/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgetoptionsview.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgetoptionsview.h Wed Jun 23 19:25:46 2010 +0300 @@ -18,7 +18,7 @@ #ifndef HGWIDGETOPTIONSVIEW_H_ #define HGWIDGETOPTIONSVIEW_H_ -#include +#include #include #include "hgtestdefs.h" diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgettestalbumartmanager.h --- a/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgettestalbumartmanager.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgettestalbumartmanager.h Wed Jun 23 19:25:46 2010 +0300 @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include class HgWidgetTestAlbumArtManager : public QObject diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgettestdatamodel.h --- a/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgettestdatamodel.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgettestdatamodel.h Wed Jun 23 19:25:46 2010 +0300 @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include #include diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgettestview.h --- a/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgettestview.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgwidgettestview.h Wed Jun 23 19:25:46 2010 +0300 @@ -18,7 +18,7 @@ #ifndef HGWIDGETTESTVIEW_H_ #define HGWIDGETTESTVIEW_H_ -#include +#include #include #include "hgtestdefs.h" diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/src/hgflipwidget.cpp --- a/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgflipwidget.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgflipwidget.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -18,12 +18,12 @@ #include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include #include diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/src/hgitemsizedialog.cpp --- a/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgitemsizedialog.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgitemsizedialog.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -18,8 +18,8 @@ #include #include -#include -#include +#include +#include #include "trace.h" diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/src/hgselectiondialog.cpp --- a/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgselectiondialog.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgselectiondialog.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -15,9 +15,9 @@ * */ -#include -#include -#include +#include +#include +#include #include #include #include "hgselectiondialog.h" diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/src/hgtestview.cpp --- a/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgtestview.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgtestview.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -16,10 +16,10 @@ */ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include "hgtestview.h" #include "trace.h" diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgetoptionsview.cpp --- a/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgetoptionsview.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgetoptionsview.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -15,10 +15,10 @@ * */ -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgettestdatamodel.cpp --- a/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgettestdatamodel.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgettestdatamodel.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgettestview.cpp --- a/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgettestview.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgettestview.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -15,14 +15,14 @@ * */ -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include @@ -39,7 +39,7 @@ #include "hgcoveritem.h" #include #include -#include +#include static const int GRIDBUFFERSIZE(400); static const int COVERFLOWBUFFERSIZE(100); diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/fute/HgWidgetTest/src/main.cpp --- a/ganeswidgets/tsrc/fute/HgWidgetTest/src/main.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/fute/HgWidgetTest/src/main.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -15,8 +15,8 @@ * */ -#include -#include +#include +#include #include "hgwidgettestview.h" int main(int argc, char **argv) diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/unit/hbautotest.cpp --- a/ganeswidgets/tsrc/unit/hbautotest.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/unit/hbautotest.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -16,8 +16,8 @@ */ #include "hbautotest.h" -#include -#include +#include +#include const qreal STEP = 10; //How many pixels to drag before sending an event diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/unit/hbautotest.h --- a/ganeswidgets/tsrc/unit/hbautotest.h Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/unit/hbautotest.h Wed Jun 23 19:25:46 2010 +0300 @@ -19,7 +19,7 @@ #define HBAUTOTEST_H #include -#include +#include #include class HbMainWindow; diff -r 4fa04caf0f43 -r 15f034b8a3b5 ganeswidgets/tsrc/unit/unittest_ganeswidgets.cpp --- a/ganeswidgets/tsrc/unit/unittest_ganeswidgets.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/ganeswidgets/tsrc/unit/unittest_ganeswidgets.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -19,11 +19,11 @@ #include #include #include "hbautotest.h" -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include #include diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/src/hgbuffermanager.cpp --- a/hgcacheproxymodel/src/hgbuffermanager.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/src/hgbuffermanager.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,7 +13,7 @@ * * Description: * -* Version : %version: 5 % +* Version : %version: 6 % */ #include "hgbuffermanager.h" #include @@ -201,11 +201,24 @@ mBufferPosition = 0; } - //request new Buffer - mRequestStart = mBufferPosition; - mRequestCount = mBufferSize; - mResetOrdered = true; - calculate(); + if (mBufferPosition>1){ + mObserver->release(0, mBufferPosition-1); + } + + mObserver->request( mBufferPosition, + mBufferPosition + mBufferSize -1 ); + + if (mBufferPosition + mBufferSize < mTotalCount){ + mObserver->release(mBufferPosition + mBufferSize, mTotalCount); + } + + mDiff = 0; + mResetOrdered = false; + mRequestStart = 0; + mRequestCount = 0; + mReleaseStart = 0; + mReleaseCount = 0; + } void HgBufferManager::aboutToRemoveItem(int pos) diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/src/hgcacheproxymodel.cpp --- a/hgcacheproxymodel/src/hgcacheproxymodel.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/src/hgcacheproxymodel.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,7 +13,7 @@ * * Description: * -* Version : %version: 10 % +* Version : %version: 11 % */ #include #include @@ -582,20 +582,12 @@ { TX_ENTRY emit layoutAboutToBeChanged(); - mSupressBM = true; - releaseAll(); TX_EXIT } void HgCacheProxyModel::sourceLayoutChanged() { TX_ENTRY - mSupressBM = true; - if (mBufferManager){ - mCurrentPos = 0; - mBufferManager->resetBuffer( mCurrentPos, count() ); - } - mSupressBM = false; emit layoutChanged(); TX_EXIT } diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/src/hgdataprovidermodel.cpp --- a/hgcacheproxymodel/src/hgdataprovidermodel.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/src/hgdataprovidermodel.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,7 +13,7 @@ * * Description: * -* Version : %version: 12 % +* Version : %version: 15 % */ #include #include @@ -31,7 +31,8 @@ mCache(new QList*>()), mCacheSize(0), mUnallocatedPixmaps(0), - mObserver(0) + mObserver(0), + mIconMode(HgDataProviderIconHbIcon) { TX_ENTRY TX_EXIT @@ -250,6 +251,21 @@ doInsertItem(pos, &list, silent); } +void HgDataProviderModel::clearItem(int pos, bool silent) +{ + bool change = false; + if ( isIndexValid(pos)){ + mDataLock.lock(); + mCache->at(pos)->clear(); + mDataLock.unlock(); + change = true; + } + + if ( change && !silent){ + emit dataChanged( index(pos, 0), index(pos, 0) ); + } +} + void HgDataProviderModel::doInsertItem(int pos, QList< QPair< QVariant, int > >* list, bool silent) { if (pos >mCache->count() || pos <0){ @@ -274,12 +290,12 @@ } -void HgDataProviderModel::removeItem(int pos) +void HgDataProviderModel::removeItem(int pos, bool silent) { - removeItems(pos, 1); + removeItems(pos, 1, silent); } -void HgDataProviderModel::removeItems(int pos, int size) +void HgDataProviderModel::removeItems(int pos, int size, bool silent) { if (pos >=mCache->count()){ return; @@ -290,19 +306,26 @@ if (size >mCache->count()){ size = mCache->count(); - } else if (size <0){ + } + if (size <=0){ return; } + if (!silent){ + beginRemoveRows(QModelIndex(),pos, pos+size-1); + } else { + qWarning("Removing items without notifying might be danger."); + } - beginRemoveRows(QModelIndex(),pos, pos+size-1); mDataLock.lock(); for (int i=0; icount(); i++){ mCache->removeAt(pos); } mDataLock.unlock(); - endRemoveRows(); + + if (!silent) + endRemoveRows(); } - + void HgDataProviderModel::resetModel() { beginResetModel(); @@ -310,6 +333,16 @@ endResetModel(); } +void HgDataProviderModel::setIconMode(HgDataProviderModel::HgDataProviderIconMode mode) +{ + mIconMode = mode; +} + +HgDataProviderModel::HgDataProviderIconMode HgDataProviderModel::iconMode() +{ + return mIconMode; +} + void HgDataProviderModel::emitDataChanged(int from, int to, bool silent) { if ( !silent ){ @@ -348,7 +381,7 @@ mQPixmapsLock.lock(); if (mUsedPixmaps.contains(idx)) { QPixmap* pix = mUsedPixmaps.take(idx); - if ( ( mFreePixmaps.count() + mUsedPixmaps.count() + mUnallocatedPixmaps ) > ( mCacheSize + KQPixmapCacheEmergencyBuffer ) ) { + if ( ( mFreePixmaps.count() + mUsedPixmaps.count() + mUnallocatedPixmaps ) >= ( mCacheSize + KQPixmapCacheEmergencyBuffer ) ) { delete pix; //we have too many pixmaps } else { mFreePixmaps.append(pix); @@ -362,6 +395,7 @@ QVariant HgDataProviderModel::createIcon(int index, QPixmap aPixmap) { TX_ENTRY + QVariant res; QPixmap* pix = getPixmap(index); if (pix){ if ( pix->pixmapData() ) { @@ -372,10 +406,29 @@ mQPixmapsLock.lock(); mUsedPixmaps.insert(index, pix); mQPixmapsLock.unlock(); - return HbIcon(QIcon(*pix)); + switch (mIconMode){ + case HgDataProviderIconHbIcon : + res = HbIcon(QIcon(*pix)); + break; + case HgDataProviderIconQIcon : + res = QIcon(*pix); + break; + case HgDataProviderIconQImage : + res = pix->toImage(); + break; + case HgDataProviderIconQPixmap: + res = *pix; + break; + default: + break; + } } - TX_EXIT_ARGS( QString("No pixmap avilable")); - return QVariant(); + + if (res.isNull()){ + TX_EXIT_ARGS( QString("No pixmap avilable")); + } + + return res; } QPixmap* HgDataProviderModel::getPixmap(int idx) diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/hgcacheproxymodeltestapp.pro --- a/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/hgcacheproxymodeltestapp.pro Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/hgcacheproxymodeltestapp.pro Wed Jun 23 19:25:46 2010 +0300 @@ -10,7 +10,7 @@ # Description: TEMPLATE = app -CONFIG += qtestlib console hb +CONFIG += hb TARGET = hgcacheproxymodeltestapp DEPENDPATH += . \ @@ -25,6 +25,7 @@ -TCB } LIBS += -lhgcacheproxymodel \ + -lganeswidgets \ -lharvesterclient.dll \ -lmdeclient.dll \ -lthumbnailmanagerqt.dll \ diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/main.cpp --- a/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/main.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/main.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,16 +13,16 @@ * * Description: * -* Version : %version: 1 % +* Version : %version: 2 % */ #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include #include "mywindow.h" diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mydataprovider.cpp --- a/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mydataprovider.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mydataprovider.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,16 +13,13 @@ * * Description: * -* Version : %version: 5 % +* Version : %version: 7 % */ #include #include "hglogger.h" -#include +#include #include "mydataprovider.h" -//#include "x:\sf\mw\qt\src\openvg\qpixmapdata_vg_p.h" -//typedef VGImage (*pfnVgCreateEGLImageTargetKHR)(VGeglImageKHR); - const int KItemIdRole = Qt::UserRole+1; const int KThumbnailsPriority = EPriorityLess; //standard priority @@ -30,7 +27,7 @@ MyDataProvider::MyDataProvider(QObject *parent) : HgDataProviderModel(parent), -mDefaultIcon(new HbIcon(QIcon(QPixmap(":/icons/default.png")))), +mDefaultIcon(QIcon(QPixmap(":/icons/default.png"))), mScheduler(new CActiveSchedulerWait()), mWrapper( new ThumbnailManager() ), mThumbnailRequestPending(false), @@ -42,6 +39,7 @@ { // TX_ENTRY Q_UNUSED(parent); + mWrapper->setThumbnailSize( mThumbnailsize ); mWrapper->setQualityPreference( ThumbnailManager::OptimizeForPerformance ); @@ -54,7 +52,6 @@ MyDataProvider::~MyDataProvider() { // TX_ENTRY - delete mDefaultIcon; delete mWrapper; delete mScheduler; // TX_EXIT @@ -165,7 +162,7 @@ QVariant MyDataProvider::defaultIcon() const { - return *mDefaultIcon; + return mDefaultIcon; } void MyDataProvider::HandleSessionOpened(CMdESession& aSession, TInt aError) diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mydataprovider.h --- a/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mydataprovider.h Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mydataprovider.h Wed Jun 23 19:25:46 2010 +0300 @@ -13,7 +13,7 @@ * * Description: * -* Version : %version: 4 % +* Version : %version: 5 % */ #ifndef MYDATAPROVIDER2_H #define MYDATAPROVIDER2_H @@ -69,7 +69,7 @@ void testInsertItem(int pos, QList< QPair< QVariant, int > >* data); private: - HbIcon* mDefaultIcon; + QVariant mDefaultIcon; CActiveSchedulerWait* mScheduler; ThumbnailManager* mWrapper; QList mWaitingThumbnails; diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mywindow.cpp --- a/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mywindow.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mywindow.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,13 +13,13 @@ * * Description: * -* Version : %version: 5 % +* Version : %version: 8 % */ #include "mywindow.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -27,17 +27,21 @@ #include #include #include -#include -#include +#include +#include #include #include #include +#include +#include #include "mydataprovider.h" #include "hglogger.h" const int KGridViewCommand = 1; const int KListViewCommand = 2; +const int KMediaWallViewCommand = 3; +const int KHgGridViewCommand = 4; const int KSort1Command = 1101; const int KSort2Command = 1102; @@ -69,6 +73,10 @@ const int KRemoveCustomCommand = 2207; const int KShowImagesCommand = 2300; const int KShowAudioCommand = 2301; +const int KHbIconModeCommand = 2400; +const int KQIconModeCommand = 2401; +const int KQImageModeCommand = 2402; +const int KQPixmapModeCommand = 2403; const int KResetCommand = 10000; @@ -122,10 +130,16 @@ void MyWindow::addChangeViewMenu(HbMenu* parent) { HbMenu *viewSubMenu = parent->addMenu("Change view"); - HbAction* action = viewSubMenu->addAction("GridView"); + HbAction* action = viewSubMenu->addAction("Orbit Grid View"); action->setData(QVariant(KGridViewCommand)); - action = viewSubMenu->addAction("ListView"); + action = viewSubMenu->addAction("Orbit List View"); action->setData(QVariant(KListViewCommand)); + action = viewSubMenu->addAction("Hg MediaWall"); + action->setData(QVariant(KMediaWallViewCommand)); + action = viewSubMenu->addAction("Hg Grid"); + action->setData(QVariant(KHgGridViewCommand)); + + } void MyWindow::addCacheProxyModelMenu(HbMenu* parent) @@ -211,6 +225,15 @@ action = dpSubMenu->addAction("Show Audio"); action->setData(QVariant(KShowAudioCommand)); + action = dpSubMenu->addAction("HbIcon Mode"); + action->setData(QVariant(KHbIconModeCommand)); + action = dpSubMenu->addAction("QIcon Mode"); + action->setData(QVariant(KQIconModeCommand)); + action = dpSubMenu->addAction("QImage Mode"); + action->setData(QVariant(KQImageModeCommand)); + action = dpSubMenu->addAction("QPixmap Mode"); + action->setData(QVariant(KQPixmapModeCommand)); + } @@ -246,6 +269,20 @@ mView = view; break; } + case KMediaWallViewCommand : { + HgMediawall * view = new HgMediawall(); + view->setModel(mModel); + mMainView->setWidget( view ); + mView = view; + break; + } + case KHgGridViewCommand : { + HgGrid * view = new HgGrid(Qt::Vertical); + view->setModel(mModel); + mMainView->setWidget( view ); + mView = view; + break; + } case KSort1Command : { mModel->setSortRole(Qt::UserRole+2); mModel->sort(0); @@ -372,10 +409,11 @@ break; } case KInsertCustomCommand : { - int val = HbInputDialog::getInteger( QString("Insert at position:")); - QList< QPair< QVariant, int > >* data = new QList< QPair< QVariant, int > >(); - data->append( QPair< QVariant, int >(QString("NEW ITEM!!!!"), Qt::DisplayRole) ); - mMyDataProvider->testInsertItem(val, data); + //TODO fix me +// int val = HbInputDialog::getInteger( QString("Insert at position:")); +// QList< QPair< QVariant, int > >* data = new QList< QPair< QVariant, int > >(); +// data->append( QPair< QVariant, int >(QString("NEW ITEM!!!!"), Qt::DisplayRole) ); +// mMyDataProvider->testInsertItem(val, data); break; } case KRemove0Command : { @@ -407,8 +445,9 @@ break; } case KRemoveCustomCommand : { - int val = HbInputDialog::getInteger( QString("Remove from position:")); - mMyDataProvider->testRemoveItem(val); + //TODO fix me +// int val = HbInputDialog::getInteger( QString("Remove from position:")); +// mMyDataProvider->testRemoveItem(val); break; } case KShowImagesCommand : { @@ -421,6 +460,23 @@ mMyDataProvider->changeMode(1); break; } + + case KHbIconModeCommand : { + mMyDataProvider->setIconMode(HgDataProviderModel::HgDataProviderIconHbIcon); + break; + } + case KQIconModeCommand : { + mMyDataProvider->setIconMode(HgDataProviderModel::HgDataProviderIconQIcon); + break; + } + case KQImageModeCommand : { + mMyDataProvider->setIconMode(HgDataProviderModel::HgDataProviderIconQImage); + break; + } + case KQPixmapModeCommand : { + mMyDataProvider->setIconMode(HgDataProviderModel::HgDataProviderIconQPixmap); + break; + } case KResetCommand : { mMyDataProvider->resetModel(); break; diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mywindow.h --- a/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mywindow.h Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/fute/HgCacheProxyModelTestApp/src/mywindow.h Wed Jun 23 19:25:46 2010 +0300 @@ -13,26 +13,26 @@ * * Description: * -* Version : %version: 4 % +* Version : %version: 6 % */ #ifndef CONTENTWIDGET_H #define CONTENTWIDGET_H -#include +#include #include #include #include -#include +#include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include class QTimer; @@ -67,7 +67,7 @@ void addDataProviderMenu(HbMenu* parent); private: - HbAbstractItemView* mView; + HbWidget* mView; HgCacheProxyModel *mModel; MyDataProvider *mMyDataProvider; diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/unit/bmhelper.cpp --- a/hgcacheproxymodel/tsrc/unit/bmhelper.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/unit/bmhelper.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,7 +13,7 @@ * * Description: * -* Version : %version: 5 % +* Version : %version: 6 % */ #include "bmhelper.h" #include @@ -122,6 +122,22 @@ return mBuffer.count(); } +void BMHelper::resizeCache(int newSize) +{ + int diff = totalSize() - newSize; + + while (diff != 0){ + if (diff >0){ + remove(mBuffer.count()-1); + diff--; + }else{ + insert(mBuffer.count()); + diff++; + } + } + +} + void BMHelper::remove(int pos) { if ( pos <0 || pos > mBuffer.count()){ diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/unit/cacheproxyhelper.cpp --- a/hgcacheproxymodel/tsrc/unit/cacheproxyhelper.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/unit/cacheproxyhelper.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,58 +13,91 @@ * * Description: * -* Version : %version: 1 % +* Version : %version: 3 % */ #include "cacheproxyhelper.h" +#include + CacheProxyHelper::CacheProxyHelper(HgCacheProxyModel *model, QObject *parent): QObject(parent), mModel(model) { ASSERT(mModel!=0); - - connect(mModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), - this, SLOT(slotDataChanged(QModelIndex,QModelIndex))); + bool res; - connect(mModel, SIGNAL(headerDataChanged(Qt::Orientation,int,int)), - this, SLOT(slotHeaderDataChanged(Qt::Orientation,int,int))); + res = connect(mModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), + this, SLOT(slotDataChanged(QModelIndex,QModelIndex))); + QCOMPARE(res, true); - connect(mModel, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), + res = connect(mModel, SIGNAL(headerDataChanged(Qt::Orientation,int,int)), + this, SLOT(slotHeaderDataChanged(Qt::Orientation,int,int))); + QCOMPARE(res, true); + + res = connect(mModel, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), this, SLOT(slotRowsAboutToBeInserted(QModelIndex,int,int))); + QCOMPARE(res, true); - connect(mModel, SIGNAL(rowsInserted(QModelIndex,int,int)), + res = connect(mModel, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(slotRowsInserted(QModelIndex,int,int))); + QCOMPARE(res, true); - connect(mModel, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)), + res = connect(mModel, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)), this, SLOT(slotColumnsAboutToBeInserted(QModelIndex,int,int))); + QCOMPARE(res, true); - connect(mModel, SIGNAL(columnsInserted(QModelIndex,int,int)), + res = connect(mModel, SIGNAL(columnsInserted(QModelIndex,int,int)), this, SLOT(slotColumnsInserted(QModelIndex,int,int))); + QCOMPARE(res, true); - connect(mModel, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), + res = connect(mModel, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), this, SLOT(slotRowsAboutToBeRemoved(QModelIndex,int,int))); + QCOMPARE(res, true); + + res = connect(mModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), + this, SLOT(slotRowsRemoved(QModelIndex,int,int))); + QCOMPARE(res, true); - connect(mModel, SIGNAL(rowsRemoved(QModelIndex,int,int)), - this, SLOT(slotRowsRemoved(QModelIndex,int,int))); - - connect(mModel, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)), + res = connect(mModel, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)), this, SLOT(slotColumnsAboutToBeRemoved(QModelIndex,int,int))); + QCOMPARE(res, true); - connect(mModel, SIGNAL(columnsRemoved(QModelIndex,int,int)), + res = connect(mModel, SIGNAL(columnsRemoved(QModelIndex,int,int)), this, SLOT(slotColumnsRemoved(QModelIndex,int,int))); + QCOMPARE(res, true); - connect(mModel, SIGNAL(layoutAboutToBeChanged()), + res = connect(mModel, SIGNAL(layoutAboutToBeChanged()), this, SLOT(slotLayoutAboutToBeChanged())); + QCOMPARE(res, true); - connect(mModel, SIGNAL(layoutChanged()), + res = connect(mModel, SIGNAL(layoutChanged()), this, SLOT(slotLayoutChanged())); + QCOMPARE(res, true); + + res = connect(mModel, SIGNAL(modelAboutToBeReset()), + this, SLOT(slotModelAboutToBeReset())); + QCOMPARE(res, true); + + res = connect(mModel, SIGNAL(modelReset()), + this, SLOT(slotModelReset())); + QCOMPARE(res, true); - connect(mModel, SIGNAL(modelAboutToBeReset()), - this, SLOT(slotModelAboutToBeReset())); - - connect(mModel, SIGNAL(modelReset()), - this, SLOT(slotModelReset())); - + res = connect(mModel, SIGNAL(rowsAboutToBeMoved(const QModelIndex&, int, int, const QModelIndex&, int)), + this, SLOT(slotRowsAboutToBeMoved(const QModelIndex&, int, int, const QModelIndex&, int))); + QCOMPARE(res, true); + + res = connect(mModel, SIGNAL(rowsMoved(const QModelIndex&, int, int, const QModelIndex&, int)), + this, SLOT(slotRowsMoved(const QModelIndex&, int, int, const QModelIndex&, int))); + QCOMPARE(res, true); + + res = connect(mModel, SIGNAL(columnsAboutToBeMoved(const QModelIndex&, int, int, const QModelIndex&, int)), + this, SLOT(slotColumnsAboutToBeMoved(const QModelIndex&, int, int, const QModelIndex&, int))); + QCOMPARE(res, true); + + res = connect(mModel, SIGNAL(columnsMoved(const QModelIndex&, int, int, const QModelIndex&, int)), + this, SLOT(slotColumnsMoved(const QModelIndex&, int, int, const QModelIndex&, int))); + QCOMPARE(res, true); + } CacheProxyHelper::~CacheProxyHelper() @@ -181,6 +214,39 @@ mSignalModelReset = true; } + +void CacheProxyHelper::slotRowsAboutToBeMoved(const QModelIndex&, int from, int to, const QModelIndex&, int) +{ + QPair< int, int > p; + p.first = from; + p.second = to; + mSignalRowsAboutToBeMoved.append(p); +} + +void CacheProxyHelper::slotRowsMoved(const QModelIndex&, int from, int to, const QModelIndex&, int) +{ + QPair< int, int > p; + p.first = from; + p.second = to; + mSignalRowsMoved.append(p); +} + +void CacheProxyHelper::slotColumnsAboutToBeMoved(const QModelIndex&, int from, int to, const QModelIndex&, int) +{ + QPair< int, int > p; + p.first = from; + p.second = to; + mSignalColumnsAboutToBeMoved.append(p); +} + +void CacheProxyHelper::slotColumnsMoved(const QModelIndex&, int from, int to, const QModelIndex&, int) +{ + QPair< int, int > p; + p.first = from; + p.second = to; + mSignalColumnsMoved.append(p); +} + QList< QPair< int, int > > CacheProxyHelper::getSignalDataChanged() { QList< QPair< int, int > > res = mSignalDataChanged; @@ -279,6 +345,32 @@ return res; } +QList< QPair< int, int > > CacheProxyHelper::getSignalRowsAboutToBeMoved() +{ + QList< QPair< int, int > > res = mSignalRowsAboutToBeMoved; + mSignalRowsAboutToBeMoved.clear(); + return res; +} + +QList< QPair< int, int > > CacheProxyHelper::getSignalRowsMoved() +{ + QList< QPair< int, int > > res = mSignalRowsMoved; + mSignalRowsMoved.clear(); + return res; +} + +QList< QPair< int, int > > CacheProxyHelper::getSignalColumnsAboutToBeMoved() +{ + QList< QPair< int, int > > res = mSignalColumnsAboutToBeMoved; + mSignalColumnsAboutToBeMoved.clear(); + return res; +} + +QList< QPair< int, int > > CacheProxyHelper::getSignalColumnsMoved() +{ + QList< QPair< int, int > > res = mSignalColumnsMoved; + mSignalColumnsMoved.clear(); + return res; +} - diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/unit/cacheproxyhelper.h --- a/hgcacheproxymodel/tsrc/unit/cacheproxyhelper.h Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/unit/cacheproxyhelper.h Wed Jun 23 19:25:46 2010 +0300 @@ -42,6 +42,11 @@ void slotLayoutChanged(); void slotModelAboutToBeReset(); void slotModelReset(); + void slotRowsAboutToBeMoved(const QModelIndex&, int, int, const QModelIndex&, int); + void slotRowsMoved(const QModelIndex&, int, int, const QModelIndex&, int); + void slotColumnsAboutToBeMoved(const QModelIndex&, int, int, const QModelIndex&, int); + void slotColumnsMoved(const QModelIndex&, int, int, const QModelIndex&, int); + public: QList< QPair< int, int > > getSignalDataChanged(); @@ -58,6 +63,10 @@ bool getSignalLayoutChanged(); bool getSignalModelAboutToBeReset(); bool getSignalModelReset(); + QList< QPair< int, int > > getSignalRowsAboutToBeMoved(); + QList< QPair< int, int > > getSignalRowsMoved(); + QList< QPair< int, int > > getSignalColumnsAboutToBeMoved(); + QList< QPair< int, int > > getSignalColumnsMoved(); private: HgCacheProxyModel* mModel; @@ -76,6 +85,10 @@ bool mSignalLayoutChanged; bool mSignalModelAboutToBeReset; bool mSignalModelReset; + QList< QPair< int, int > > mSignalRowsAboutToBeMoved; + QList< QPair< int, int > > mSignalRowsMoved; + QList< QPair< int, int > > mSignalColumnsAboutToBeMoved; + QList< QPair< int, int > > mSignalColumnsMoved; }; diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/unit/dataproviderhelper.cpp --- a/hgcacheproxymodel/tsrc/unit/dataproviderhelper.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/unit/dataproviderhelper.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,10 +13,11 @@ * * Description: * -* Version : %version: 5 % +* Version : %version: 6 % */ #include "dataproviderhelper.h" #include +#include const int KRole1 = Qt::UserRole+1; const int KRole2 = Qt::UserRole+2; @@ -43,26 +44,33 @@ newItem(&list, true); } - connect(this, SIGNAL(dataChanged(QModelIndex,QModelIndex)), - this, SLOT(slotDataUpdated(QModelIndex,QModelIndex))); + bool res = connect(this, SIGNAL(dataChanged(QModelIndex,QModelIndex)), + this, SLOT(slotDataUpdated(QModelIndex,QModelIndex))); + QCOMPARE(res, true); - connect(this, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), - this, SLOT(slotRowsAboutToBeInserted(QModelIndex,int,int))); - - connect(this, SIGNAL(rowsInserted(QModelIndex,int,int)), - this, SLOT(slotRowsInserted(QModelIndex,int,int))); + res = connect(this, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)), + this, SLOT(slotRowsAboutToBeInserted(QModelIndex,int,int))); + QCOMPARE(res, true); + + res = connect(this, SIGNAL(rowsInserted(QModelIndex,int,int)), + this, SLOT(slotRowsInserted(QModelIndex,int,int))); + QCOMPARE(res, true); - connect(this, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), - this, SLOT(slotRowsAboutToBeRemoved(QModelIndex,int,int))); - - connect(this, SIGNAL(rowsRemoved(QModelIndex,int,int)), - this, SLOT(slotRowsRemoved(QModelIndex,int,int))); + res = connect(this, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)), + this, SLOT(slotRowsAboutToBeRemoved(QModelIndex,int,int))); + QCOMPARE(res, true); + + res = connect(this, SIGNAL(rowsRemoved(QModelIndex,int,int)), + this, SLOT(slotRowsRemoved(QModelIndex,int,int))); + QCOMPARE(res, true); - connect(this, SIGNAL(modelAboutToBeReset()), - this, SLOT(slotModelAboutToBeReset())); + res = connect(this, SIGNAL(modelAboutToBeReset()), + this, SLOT(slotModelAboutToBeReset())); + QCOMPARE(res, true); - connect(this, SIGNAL(modelReset()), - this, SLOT(slotModelReset())); + res = connect(this, SIGNAL(modelReset()), + this, SLOT(slotModelReset())); + QCOMPARE(res, true); } DataProviderHelper::~DataProviderHelper() @@ -313,6 +321,49 @@ endResetModel(); } +bool DataProviderHelper::testEmitColumnsAboutToBeMoved(int from, int to) +{ + return beginMoveColumns(parent(index(0,0)), from, to, parent(index(0,0)), 0); +} + +void DataProviderHelper::testEmitColumnsMoved(int from, int to) +{ + endMoveColumns(); +} + +bool DataProviderHelper::testEmitRowsAboutToBeMoved(int from, int to) +{ + return beginMoveRows(parent(index(0,0)), from, to, parent(index(0,0)), 0); +} + +void DataProviderHelper::testEmitRowsMoved(int from, int to) +{ + endMoveRows(); +} + +void DataProviderHelper::testChangeIconMode(HgDataProviderModel::HgDataProviderIconMode mode) +{ + setIconMode(mode); +} + +HgDataProviderModel::HgDataProviderIconMode DataProviderHelper::testIconMode() +{ + return iconMode(); +} + +void DataProviderHelper::testClearItem(int pos, bool silent ) +{ + clearItem(pos, silent); +} +QModelIndex DataProviderHelper::testCreateIndex(int row, int col) +{ + return createIndex(row, col); +} +int DataProviderHelper::getCount() +{ + return count(); +} + void DataProviderHelper::dataUpdated(int from, int to) { QPair< int, int > p; diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/unit/dataproviderhelper.h --- a/hgcacheproxymodel/tsrc/unit/dataproviderhelper.h Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/unit/dataproviderhelper.h Wed Jun 23 19:25:46 2010 +0300 @@ -76,6 +76,19 @@ void testEmitLayoutChanged(); void testEmitModelAboutToBeReset(); void testEmitModelReset(); + + bool testEmitColumnsAboutToBeMoved(int from, int to); + void testEmitColumnsMoved(int from, int to); + bool testEmitRowsAboutToBeMoved(int from, int to); + void testEmitRowsMoved(int from, int to); + + + void testChangeIconMode(HgDataProviderIconMode mode); + HgDataProviderIconMode testIconMode(); + + void testClearItem(int pos, bool silent); + QModelIndex testCreateIndex(int row, int col); + int getCount(); //from HgDataProviderModelObserver public: diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/unit/test_hgcacheproxydatamodel.cpp --- a/hgcacheproxymodel/tsrc/unit/test_hgcacheproxydatamodel.cpp Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/unit/test_hgcacheproxydatamodel.cpp Wed Jun 23 19:25:46 2010 +0300 @@ -13,7 +13,7 @@ * * Description: * -* Version : %version: 8 % +* Version : %version: 10 % */ #include #include @@ -25,6 +25,11 @@ #include "dataproviderhelper.h" #include "cacheproxyhelper.h" #include +#include +#include +#include +#include + // ======== MEMBER FUNCTIONS ======== void TestCacheProxy::testQAbstractItemModel(QAbstractItemModel* model, int rows, int columns) @@ -84,10 +89,7 @@ QVERIFY(idx.isValid() == false); QVERIFY(model->columnCount() == columns); QVERIFY(model->rowCount() == rows); - -// QVERIFY(model->hasChildren() == false); -// QVERIFY(model->headerData(0, Qt::Horizontal).isValid == false); - + } void TestCacheProxy::initTestCase() @@ -384,6 +386,24 @@ QCOMPARE(bmh->totalSize(), totalsize); + bm->aboutToRemoveItem(totalsize+10); + bmh->remove(totalsize+10); + bm->removedItem(totalsize+10); + QVERIFY(bmh->isIntergal(bufferSize)); +// totalsize--; //no item remove since totalsize+200 is outside + QCOMPARE(bmh->totalSize(), totalsize); + + + bm->resetBuffer(0, 10); + bmh->resizeCache(10); + bm->aboutToRemoveItem(1); + bmh->remove(1); + bm->removedItem(1); + QCOMPARE(bmh->totalSize(), 9); + + bmh->resizeCache(totalsize); + bm->resetBuffer(0, totalsize); + //insert bm->setPosition(0); @@ -440,6 +460,15 @@ QVERIFY(bmh->isIntergal(bufferSize)); // totalsize++; //no insert QCOMPARE(bmh->totalSize(), totalsize); + + bm->setPosition(2*totalsize); + bm->aboutToInsertItem(2*totalsize); + bmh->insert(2*totalsize); + bm->insertedItem(2*totalsize); + QVERIFY(bmh->isIntergal(bufferSize)); +// totalsize++; //no insert + QCOMPARE(bmh->totalSize(), totalsize); + } @@ -619,6 +648,23 @@ res = dph->data(idx, Qt::DecorationRole); QVERIFY(res == dph->defaultIcon()); + dph->testClearItem(2, false); + updates = dph->getSignalDataUpdated(); + QVERIFY(updates.count() == 1); //1 update + QVERIFY(updates[0].first == 2); //for 2 + QVERIFY(updates[0].second == 2); //for 2 + QVERIFY(dph->itemData(idx).count() == 0 ); //for 2 + + QVERIFY(dph->itemData( dph->testCreateIndex(999999, 0)).count() == 0 ); + + dph->testClearItem(2, true); + updates = dph->getSignalDataUpdated(); + QVERIFY(updates.count() == 0); //no updates + + dph->testClearItem(-10, true); + updates = dph->getSignalDataUpdated(); + QVERIFY(updates.count() == 0); //no updates + idx = dph->index(3, 0); res = dph->data(idx, Qt::DecorationRole); QVERIFY(res == dph->defaultIcon()); @@ -838,7 +884,7 @@ res = dph->data(idx, Qt::DisplayRole); QCOMPARE(res.isValid(), false); - + } void TestCacheProxy::testDP_QPixmapPool() @@ -885,6 +931,60 @@ dph->resizeQPixmapPool(1); res = dph->testCreateIcon(10, pix); QVERIFY(res.isValid() == false); + + dph->resizeQPixmapPool(110); + for ( int i = 0; i < 100; i ++) + dph->testCreateIcon(i, pix); + + for ( int i = 20; i < 40; i ++) + dph->testReleasePixmap(i); + + dph->resizeQPixmapPool(50); + dph->testReleasePixmap(5); + + dph->resizeQPixmapPool(1); + dph->testReleasePixmap(0); + dph->testReleasePixmap(2); + dph->testReleasePixmap(1); + dph->resizeQPixmapPool(10); + + + +} + +void TestCacheProxy::testDP_IconMode() +{ + dph = new DataProviderHelper(100); + QCOMPARE( dph->testIconMode(), HgDataProviderModel::HgDataProviderIconHbIcon); + dph->resizeQPixmapPool(10); + QPixmap pix; + QVariant res = dph->testCreateIcon(0, pix); + QVERIFY(res.isValid() == true); + QVERIFY(res.canConvert()); + + dph->testChangeIconMode(HgDataProviderModel::HgDataProviderIconHbIcon); + res = dph->testCreateIcon(0, pix); + QVERIFY(res.isValid() == true); + QVERIFY(res.canConvert()); + + dph->testChangeIconMode(HgDataProviderModel::HgDataProviderIconQIcon); + res = dph->testCreateIcon(0, pix); + QVERIFY(res.isValid() == true); + QVERIFY(res.canConvert()); + + dph->testChangeIconMode(HgDataProviderModel::HgDataProviderIconQImage); + res = dph->testCreateIcon(0, pix); + QVERIFY(res.isValid() == true); + QVERIFY(res.canConvert()); + + dph->testChangeIconMode(HgDataProviderModel::HgDataProviderIconQPixmap); + res = dph->testCreateIcon(0, pix); + QVERIFY(res.isValid() == true); + QVERIFY(res.canConvert()); + + dph->testChangeIconMode( (HgDataProviderModel::HgDataProviderIconMode)10 ); + res = dph->testCreateIcon(0, pix); + QVERIFY(res.isValid() == false); } void TestCacheProxy::testCP_QAbstractItemModel() @@ -912,6 +1012,65 @@ dph->testRemoveItems(0, 1);//should remove item + QModelIndex idx = cp->index(0,0); + QCOMPARE(cp->hasChildren(idx), true); + QSize s1 = cp->span(idx); + QSize s2 = cp->span(cp->index(1, 0)); + QVERIFY(s1 == s2); + cp->submit(); + cp->revert(); + Qt::ItemFlags f1 = cp->flags(idx); + Qt::ItemFlags f2 = cp->flags(cp->index(1, 0)); + QVERIFY(f1 == f2); + + QVariant res = cp->headerData(0, Qt::Horizontal, Qt::DecorationRole); + QCOMPARE(res.isValid(), false); + //default implementation ignores that + cp->setHeaderData(0, Qt::Horizontal, QString("headerdata"), Qt::DecorationRole); + res = cp->headerData(0, Qt::Horizontal, Qt::DecorationRole); + QCOMPARE(res.isValid(), false); + + QStringList li = cp->mimeTypes(); + QCOMPARE(li.count(), 1); + + QModelIndexList li2; + li2<< idx; + QMimeData* md1 = cp->mimeData(li2); + QVERIFY(md1 != NULL); + QCOMPARE(cp->dropMimeData(NULL, Qt::MoveAction, 10, 0, QModelIndex() ), false); + QCOMPARE(cp->supportedDragActions(), Qt::CopyAction); + + QCOMPARE(cp->canFetchMore(idx), false); + cp->fetchMore(idx); + + QModelIndex idx2 = cp->buddy(idx); + QCOMPARE(idx2.row(), idx.row()); + QCOMPARE(idx2.column(), idx.column()); + + li2 = cp->match(idx, Qt::DisplayRole, QString("ITEM"), 1000, Qt::MatchContains); + QCOMPARE(li2.count(), dph->getCount()); + + + + cp->setDataProvider(NULL); + QVERIFY(cp->DataProvider() == NULL); + idx = cp->index(100,0); + res = dph->data(idx, Qt::DisplayRole); + QCOMPARE(res.isValid(), false); + + QCOMPARE(cp->insertRows(0, 10), false); //default implementation returns false + QCOMPARE(cp->removeRows(0, 10), false);//default implementation returns false + + QCOMPARE(cp->insertRow(0), false); //default implementation returns false + QCOMPARE(cp->removeRow(0), false);//default implementation returns false + + QCOMPARE(cp->insertColumns(0, 10), false); //default implementation returns false + QCOMPARE(cp->removeColumns(0, 10), false);//default implementation returns false + + QCOMPARE(cp->insertColumn(0), false); //default implementation returns false + QCOMPARE(cp->removeColumn(0), false);//default implementation returns false + + } void TestCacheProxy::testCP_SignalsForward() @@ -960,6 +1119,67 @@ QVERIFY(cp->columnCount() == 1); QVERIFY(cp->rowCount() == 1000); + cph->getSignalDataChanged(); + dph->testEmitDataChanged(dph->index(0,0), dph->index(10,0)); + resList = cph->getSignalDataChanged(); + QCOMPARE(resList.count(), 1); + QCOMPARE(resList[0].first, 0); + QCOMPARE(resList[0].second, 10); + + cph->getSignalColumnsAboutToBeInserted(); + cph->getSignalColumnsInserted(); + dph->testEmitColumnsInsert(dph->index(0,0),0, 10); + resList = cph->getSignalColumnsAboutToBeInserted(); + QCOMPARE(resList.count(), 1); + QCOMPARE(resList[0].first, 0); + QCOMPARE(resList[0].second, 10); + resList = cph->getSignalColumnsInserted(); + QCOMPARE(resList.count(), 1); + QCOMPARE(resList[0].first, 0); + QCOMPARE(resList[0].second, 10); + + cph->getSignalColumnsAboutToBeRemoved(); + cph->getSignalColumnsRemoved(); + dph->testEmitColumnsRemove(dph->index(0,0),0, 10); + resList = cph->getSignalColumnsAboutToBeRemoved(); + QCOMPARE(resList.count(), 1); + QCOMPARE(resList[0].first, 0); + QCOMPARE(resList[0].second, 10); + resList = cph->getSignalColumnsRemoved(); + QCOMPARE(resList.count(), 1); + QCOMPARE(resList[0].first, 0); + QCOMPARE(resList[0].second, 10); + +// cph->getSignalColumnsAboutToBeMoved(); +// cph->getSignalColumnsMoved(); +// QCOMPARE(dph->testEmitColumnsAboutToBeMoved(0, 10), false); +// resList = cph->getSignalColumnsAboutToBeMoved(); +// QCOMPARE(resList.count(), 0); + +// dph->testEmitColumnsMoved(0, 10); +// resList = cph->getSignalColumnsMoved(); +// QCOMPARE(resList.count(), 0); + + +// cph->getSignalRowsAboutToBeMoved(); +// cph->getSignalRowsMoved(); +// QCOMPARE(dph->testEmitRowsAboutToBeMoved(0, 10), false); +// resList = cph->getSignalRowsAboutToBeMoved(); +// QCOMPARE(resList.count(), 0); + +// dph->testEmitRowsMoved(0, 10); +// resList = cph->getSignalRowsMoved(); +// QCOMPARE(resList.count(), 0); + + + cph->getSignalHeaderDataChanged(); + dph->testEmitHeaderDataChanged(Qt::Horizontal, 0, 0); + resList = cph->getSignalHeaderDataChanged(); + QCOMPARE(resList.count(), 1); + QCOMPARE(resList[0].first, 0); + QCOMPARE(resList[0].second, 0); + + } void TestCacheProxy::testCP_ResizeCache() @@ -1065,6 +1285,10 @@ cp->setDataProvider(NULL, 50, 20); res = cp->data(idx, v); QCOMPARE(res.isValid(), false); + cp->request(0, 100, HgBufferManagerObserver::HgRequestOrderAscending); + QCOMPARE(dph->getLastRequest().count(), 0); + cp->release(0, 100); + QCOMPARE(dph->getLastRelease().count(), 0); } diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/unit/test_hgcacheproxydatamodel.h --- a/hgcacheproxymodel/tsrc/unit/test_hgcacheproxydatamodel.h Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/unit/test_hgcacheproxydatamodel.h Wed Jun 23 19:25:46 2010 +0300 @@ -13,7 +13,7 @@ * * Description: * -* Version : %version: 5 % +* Version : %version: 6 % */ #ifndef TestCacheProxy_H #define TestCacheProxy_H @@ -55,6 +55,7 @@ void testDP_RequestReleaseAndData(); void testDP_CacheManagment(); void testDP_QPixmapPool(); + void testDP_IconMode(); //HgCacheProxyModel void testCP_QAbstractItemModel(); diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgcacheproxymodel/tsrc/unit/unittest_hgcacheproxymodel.pro --- a/hgcacheproxymodel/tsrc/unit/unittest_hgcacheproxymodel.pro Fri Jun 11 14:43:11 2010 +0300 +++ b/hgcacheproxymodel/tsrc/unit/unittest_hgcacheproxymodel.pro Wed Jun 23 19:25:46 2010 +0300 @@ -15,9 +15,10 @@ #fix that later #CONFIG += symbian_test +CONFIG += hb +INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE $$APP_LAYER_SYSTEMINCLUDE + INCLUDEPATH += . \ - $$APP_LAYER_SYSTEMINCLUDE \ - $$MW_LAYER_SYSTEMINCLUDE \ ../../inc TARGET.CAPABILITY = ALL -TCB diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgwidgets_plat/ganeswidgets_api/inc/hgwidgets.h --- a/hgwidgets_plat/ganeswidgets_api/inc/hgwidgets.h Fri Jun 11 14:43:11 2010 +0300 +++ b/hgwidgets_plat/ganeswidgets_api/inc/hgwidgets.h Wed Jun 23 19:25:46 2010 +0300 @@ -19,9 +19,9 @@ #define HGWIDGET_H #include -#include +#include #include -#include +#include #ifdef BUILD_HG_WIDGETS # define HG_WIDGETS_EXPORT Q_DECL_EXPORT diff -r 4fa04caf0f43 -r 15f034b8a3b5 hgwidgets_plat/hgcacheproxymodel_api/inc/hgdataprovidermodel.h --- a/hgwidgets_plat/hgcacheproxymodel_api/inc/hgdataprovidermodel.h Fri Jun 11 14:43:11 2010 +0300 +++ b/hgwidgets_plat/hgcacheproxymodel_api/inc/hgdataprovidermodel.h Wed Jun 23 19:25:46 2010 +0300 @@ -13,7 +13,7 @@ * * Description: * -* Version : %version: 8 % +* Version : %version: 11 % */ #ifndef HGDATAPROVIDERMODEL_H_ #define HGDATAPROVIDERMODEL_H_ @@ -79,13 +79,14 @@ void newItem(QPair< QVariant, int > item, bool silent = true); void insertItem(int pos, QList< QPair< QVariant, int > >* list = NULL, bool silent = true); void insertItem(int pos, QPair< QVariant, int > item, bool silent = true); + void clearItem(int pos, bool silent = false); private: void doInsertItem(int pos, QList< QPair< QVariant, int > >* list, bool silent); protected: - void removeItem(int pos); - void removeItems(int pos, int size); + void removeItem(int pos, bool silent = false); + void removeItems(int pos, int size, bool silent = false); virtual QVariant defaultIcon() const = 0; inline bool containsRole(int idx, int role) const; @@ -93,10 +94,20 @@ public: void resetModel(); - + + enum HgDataProviderIconMode { + HgDataProviderIconHbIcon, + HgDataProviderIconQIcon, + HgDataProviderIconQImage, + HgDataProviderIconQPixmap + }; + + void setIconMode(HgDataProviderIconMode mode); + HgDataProviderIconMode iconMode(); + protected: virtual void doResetModel() {}; - virtual QVariant getData(int idx, int role) const {return QVariant(); }; + virtual QVariant getData(int idx, int role) const {Q_UNUSED(idx); Q_UNUSED(role); return QVariant(); }; // helpers fot emits protected: @@ -123,6 +134,7 @@ QMutex mQPixmapsLock; QMutex mDataLock; HgDataProviderModelObserver *mObserver; + HgDataProviderIconMode mIconMode; }; inline bool HgDataProviderModel::isIndexValid(int idx) const