LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
unhidelistmodel.cpp
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#include "unhidelistmodel.h"
10
11namespace LC::Util
12{
14 : RoleNamesMixin<QStandardItemModel> (parent)
15 {
17 { Roles::ItemClass, QByteArrayLiteral ("itemClass") },
18 { Roles::ItemName, QByteArrayLiteral ("itemName") },
19 { Roles::ItemDescription, QByteArrayLiteral ("itemDescr") },
20 { Roles::ItemIcon, QByteArrayLiteral ("itemIcon") },
21 });
22 }
23}
Wraps differences between role names handling in Qt4 and Qt5.
void setRoleNames(const QHash< int, QByteArray > &roleNames)
UnhideListModel(QObject *parent)
Constructs the model with the given parent.
@ ItemDescription
The description of the item represented by this row.
@ ItemIcon
The URL of the icon of the item represented by this row.
@ ItemName
The name of the item represented by this row.
@ ItemClass
The unique ID of the item represented by this row.