reworked model sections.

This commit is contained in:
2025-08-14 21:36:39 +02:00
parent a6fb7e82bd
commit 0d7ab33c74
13 changed files with 79 additions and 70 deletions

View File

@@ -16,10 +16,9 @@
#define XQMODELSECTIONLIST_H
#include <QPersistentModelIndex>
#include <xqnode.h>
#include <xqmaptor.h>
class XQItem;
#include <xqmaptor.h>
#include <xqitem.h>
/**
* @brief Struct containing data for a header section
@@ -54,11 +53,11 @@ public:
XQModelSectionList() = default;
virtual ~XQModelSectionList() = default;
void addSectionEntry(const QModelIndex& idx, XQNodePtr sheetNode );
void createSectionEntry(const XQItemList& list, const XQNodePtr& sheetNode );
bool hasValidSection(const QString& sectionKey) const;
const XQModelSection& sectionFromRow( int row ) const;
const XQModelSection& sectionxqItemFromIndex( const QModelIndex& index ) const;
const XQModelSection& sectionFromIndex( const QModelIndex& index ) const;
int firstRow(const QModelIndex& idx) const;
int lastRow(const QModelIndex& idx) const;