| Home · All Classes · Main Classes · Deprecated |
00001 /*************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Nokia Corporation (directui@nokia.com) 00006 ** 00007 ** This file is part of libmeegotouch. 00008 ** 00009 ** If you have questions regarding the use of this file, please contact 00010 ** Nokia at directui@nokia.com. 00011 ** 00012 ** This library is free software; you can redistribute it and/or 00013 ** modify it under the terms of the GNU Lesser General Public 00014 ** License version 2.1 as published by the Free Software Foundation 00015 ** and appearing in the file LICENSE.LGPL included in the packaging 00016 ** of this file. 00017 ** 00018 ****************************************************************************/ 00019 00020 #ifndef MLISTMODEL_H 00021 #define MLISTMODEL_H 00022 00023 #include <QHash> 00024 #include <QAbstractItemModel> 00025 #include <QRectF> 00026 #include <QModelIndexList> 00027 #include <QItemSelectionModel> 00028 00029 #include <mwidgetmodel.h> 00030 #include "mabstractcellcreator.h" 00031 00039 class M_CORE_EXPORT MListModel : public MWidgetModel 00040 { 00041 Q_OBJECT 00042 M_MODEL_INTERNAL(MListModel) 00043 00044 private: 00049 M_MODEL_PTR_PROPERTY(QAbstractItemModel *, itemModel, ItemModel, true, 0) 00050 00051 00055 M_MODEL_PTR_PROPERTY(MCellCreator *, cellCreator, CellCreator, true, 0) 00056 00057 00061 M_MODEL_PTR_PROPERTY(MCellCreator *, headerCreator, HeaderCreator, true, 0) 00062 00063 00067 M_MODEL_PROPERTY(QModelIndex, firstVisibleItem, FirstVisibleItem, false, QModelIndex()) 00068 00073 M_MODEL_PROPERTY(QModelIndex, lastVisibleItem, LastVisibleItem, false, QModelIndex()) 00074 00079 M_MODEL_PROPERTY(bool, showGroups, ShowGroups, true, false) 00080 00085 M_MODEL_PROPERTY(int, columns, Columns, true, 1) 00086 00091 M_MODEL_PTR_PROPERTY(QItemSelectionModel *, selectionModel, SelectionModel, true, NULL) 00092 00097 M_MODEL_PROPERTY(bool, listIsMoving, ListIsMoving, true, false) 00098 00103 M_MODEL_PROPERTY(QModelIndex, scrollToIndex, ScrollToIndex, false, QModelIndex()) 00104 00110 M_MODEL_PROPERTY(int, scrollHint, ScrollHint, true, 0) 00111 00116 M_MODEL_PROPERTY(QPointF, longTap, LongTap, true, QPointF()) 00117 00122 M_MODEL_PROPERTY(bool, longTapEnabled, LongTapEnabled, true, false) 00123 00127 M_MODEL_PROPERTY(bool, listIndexVisible, ListIndexVisible, true, false) 00128 00134 M_MODEL_PROPERTY(int, listIndexDisplayMode, ListIndexDisplayMode, true, 0) 00135 }; 00136 00137 #endif 00138
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:14:21 (PDT) Doxygen 1.7.1 |
MeeGo Touch |