This commit is contained in:
2025-09-05 17:12:38 +02:00
parent 9c6f7688d7
commit b8f0893d59
6 changed files with 53 additions and 51 deletions

View File

@@ -20,9 +20,10 @@
#include <xqmaptor.h>
#include <xqitem.h>
/**
* @brief Struct containing data for a header section
*/
//! Daten zur beschreibung einer 'sektion' des models.
class XQModelSection
{
@@ -57,8 +58,15 @@ protected:
Q_DECLARE_METATYPE(XQModelSection)
//! Erste und letzte ziele einer XQModelSection
struct XQSectionPos
{
int firstRow{-1};
int lastRow{-1};
};
//! 'maptor' struktur, die alle sections enthält
//! struktur, die alle sections enthält
class XQSectionManager
{
@@ -72,9 +80,13 @@ public:
const XQModelSection& createSection(const QString& sectionKey, const QModelIndex& modelIndex, XQNodePtr sheetNode);
/*
int firstRow(const QModelIndex& idx) const;
int lastRow(const QModelIndex& idx) const;
int lastRow(const XQModelSection& section) const;
*/
XQSectionPos sectionPos();
void dump()const;