major 'firzifikation'
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#include <xqitem.h>
|
||||
|
||||
|
||||
//! firz
|
||||
|
||||
XQModelSection::XQModelSection(const QModelIndex& aModelIndex, XQNodePtr aSheetNode)
|
||||
: modelIndex{ aModelIndex }, sheetRootNode{ aSheetNode }
|
||||
{
|
||||
@@ -23,24 +25,32 @@ XQModelSection::XQModelSection(const QModelIndex& aModelIndex, XQNodePtr aSheetN
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
|
||||
bool XQModelSection::operator==(const XQModelSection& other) const
|
||||
{
|
||||
return modelIndex == other.modelIndex && sheetRootNode == other.sheetRootNode;
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
|
||||
bool XQModelSection::isValid() const
|
||||
{
|
||||
return modelIndex.isValid() && sheetRootNode;
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
|
||||
int XQModelSection::XQModelSection::row() const
|
||||
{
|
||||
return modelIndex.row();
|
||||
}
|
||||
|
||||
|
||||
//! firz
|
||||
|
||||
XQItem& XQModelSection::XQModelSection::headerItem() const
|
||||
{
|
||||
return XQItem::xqItemFromIndex( modelIndex );
|
||||
|
Reference in New Issue
Block a user