Krita Source Code Documentation
Loading...
Searching...
No Matches
__CategorizedListModelBase Class Reference

#include <kis_categorized_list_model.h>

+ Inheritance diagram for __CategorizedListModelBase:

Public Types

enum  AdditionalRoles {
  IsHeaderRole = Qt::UserRole + 1 , ExpandCategoryRole = Qt::UserRole + 2 , SortRole = Qt::UserRole + 3 , isLockedRole = Qt::UserRole + 4 ,
  isLockableRole = Qt::UserRole + 5 , isToggledRole = Qt::UserRole + 6
}
 

Public Member Functions

 __CategorizedListModelBase (QObject *parent)
 
 ~__CategorizedListModelBase () override
 

Private Slots

void slotBeginInsertRow (int row)
 
void slotBeginRemoveRow (int row)
 
void slotEndInsertRow ()
 
void slotEndRemoveRow ()
 
void slotRowChanged (int row)
 

Detailed Description

Definition at line 14 of file kis_categorized_list_model.h.

Member Enumeration Documentation

◆ AdditionalRoles

Enumerator
IsHeaderRole 
ExpandCategoryRole 
SortRole 
isLockedRole 
isLockableRole 
isToggledRole 

Definition at line 19 of file kis_categorized_list_model.h.

Constructor & Destructor Documentation

◆ __CategorizedListModelBase()

__CategorizedListModelBase::__CategorizedListModelBase ( QObject * parent)

Definition at line 9 of file kis_categorized_list_model.cpp.

10 : QAbstractListModel(parent)
11{
12}

◆ ~__CategorizedListModelBase()

__CategorizedListModelBase::~__CategorizedListModelBase ( )
override

Definition at line 14 of file kis_categorized_list_model.cpp.

15{
16
17}

Member Function Documentation

◆ slotBeginInsertRow

void __CategorizedListModelBase::slotBeginInsertRow ( int row)
inlineprivateslot

Definition at line 39 of file kis_categorized_list_model.h.

39 {
40 beginInsertRows(QModelIndex(), row, row);
41 }

◆ slotBeginRemoveRow

void __CategorizedListModelBase::slotBeginRemoveRow ( int row)
inlineprivateslot

Definition at line 47 of file kis_categorized_list_model.h.

47 {
48 beginRemoveRows(QModelIndex(), row, row);
49 }

◆ slotEndInsertRow

void __CategorizedListModelBase::slotEndInsertRow ( )
inlineprivateslot

Definition at line 43 of file kis_categorized_list_model.h.

43 {
44 endInsertRows();
45 }

◆ slotEndRemoveRow

void __CategorizedListModelBase::slotEndRemoveRow ( )
inlineprivateslot

Definition at line 51 of file kis_categorized_list_model.h.

51 {
52 endRemoveRows();
53 }

◆ slotRowChanged

void __CategorizedListModelBase::slotRowChanged ( int row)
inlineprivateslot

Definition at line 34 of file kis_categorized_list_model.h.

34 {
35 QModelIndex changedIndex(index(row));
36 Q_EMIT dataChanged(changedIndex, changedIndex);
37 }

The documentation for this class was generated from the following files: