QRect indexRect( const int, int* = 0 );
void swapSections( const int, const int );
+ int spanedSection( const int index );
virtual QSize sizeHint() const;
return r;
}
+int QtxTable::Header::spanedSection( const int index )
+{
+ SpanRange range = findSpanRange( index );
+ return range.first;
+}
+
QHeader* QtxTable::Header::mainHeader() const
{
if ( !table() )
mySelectAll->setGeometry( frameWidth(), frameWidth(), leftMargin(), topMargin() );
}
+int QtxTable::headerSpanedSection( const Orientation o, const int headIdx, const int index )
+{
+ Header* hdr = (Header*)(headIdx < 0 ? header( o ) : header( o, headIdx ));
+ if ( hdr )
+ return hdr->spanedSection( index );
+ else
+ return index;
+}
+
#endif
void setVerticalSpan( const Orientation, const int, const int, const int );
void setHorizontalSpan( const Orientation, const int, const int, const int );
+ int headerSpanedSection( const Orientation, const int headIdx, const int index );
+
QColor headerForegroundColor( const Orientation, const int, const int ) const;
QColor headerBackgroundColor( const Orientation, const int, const int ) const;
void setHeaderForegroundColor( const Orientation, const int, const int, const QColor& );