remorked sections.

This commit is contained in:
2025-09-05 21:42:40 +02:00
parent b8f0893d59
commit 3887748c1a
7 changed files with 44 additions and 67 deletions

View File

@@ -36,9 +36,9 @@ public:
bool operator==(const XQModelSection& other) const;
bool isValid() const;
int row() const;
int firstRow() const;
QModelIndex persistentModelIndex() const;
QModelIndex startIndex() const;
XQNodePtr sectionRootNode() const;
XQNodePtr sheetRootNode() const;
XQNodePtr contentRootNode() const;
@@ -59,7 +59,7 @@ protected:
Q_DECLARE_METATYPE(XQModelSection)
//! Erste und letzte ziele einer XQModelSection
struct XQSectionPos
struct XQSectionRange
{
int firstRow{-1};
int lastRow{-1};
@@ -74,19 +74,12 @@ public:
bool hasValidSection(const QString& sectionKey) const;
const XQModelSection& sectionByKey( const QString& sectionKey );
const XQModelSection& sectionByKey( const QString& sectionKey ) const;
const XQModelSection& sectionByRow( int row ) const;
const XQModelSection& sectionByIndex( const QModelIndex& index ) const;
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();
int lastRow(const XQModelSection& section ) const;
XQSectionRange sectionRange(const XQModelSection &section) const;
void dump()const;