Warning, file /multimedia/amarok/src/widgets/PrettyTreeRoles.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /**************************************************************************************** 0002 * Copyright (c) 2013 Ralf Engels <ralf-engels@gmx.de> * 0003 * * 0004 * This program is free software; you can redistribute it and/or modify it under * 0005 * the terms of the GNU General Public License as published by the Free Software * 0006 * Foundation; either version 2 of the License, or (at your option) any later * 0007 * version. * 0008 * * 0009 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0010 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0011 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0012 * * 0013 * You should have received a copy of the GNU General Public License along with * 0014 * this program. If not, see <http://www.gnu.org/licenses/>. * 0015 ****************************************************************************************/ 0016 0017 #ifndef AMAROK_PRETTY_TREE_ROLES_H 0018 #define AMAROK_PRETTY_TREE_ROLES_H 0019 0020 namespace PrettyTreeRoles 0021 { 0022 /** Roles used for the PrettyTreeDelegate and some models. 0023 The numbers start at the strange index to reduce the possibility that 0024 different roles from different models clash. 0025 */ 0026 enum CustomRolesId 0027 { 0028 SortRole = Qt::UserRole + 51, 0029 FilterRole = Qt::UserRole + 52, 0030 ByLineRole = Qt::UserRole + 53, 0031 /** Boolean value whether given collection knows about used and total capacity */ 0032 HasCapacityRole = Qt::UserRole + 54, 0033 /** Number of bytes used by music and other files in collection (float) */ 0034 UsedCapacityRole = Qt::UserRole + 55, 0035 /** Total capacity of the collection in bytes (float) */ 0036 TotalCapacityRole = Qt::UserRole + 56, 0037 /** The number of collection actions */ 0038 DecoratorRoleCount = Qt::UserRole + 57, 0039 0040 /** The collection actions */ 0041 DecoratorRole = Qt::UserRole + 58, 0042 0043 /** True if the item has a cover that should be displayed */ 0044 HasCoverRole = Qt::UserRole + 59, 0045 0046 YearRole = Qt::UserRole + 60 0047 }; 0048 } 0049 0050 #endif