remorked sections.
This commit is contained in:
@@ -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 §ion) const;
|
||||
|
||||
void dump()const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user