major 'firzifikation'
This commit is contained in:
@@ -69,9 +69,9 @@ XQItemDelegate::XQItemDelegate( XQViewModel& modelView)
|
||||
}
|
||||
|
||||
|
||||
XQTreeTable* XQItemDelegate::treeView() const
|
||||
XQTreeTable* XQItemDelegate::treeTable() const
|
||||
{
|
||||
return _modelView.treeView();
|
||||
return _modelView.treeTable();
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ XQItem& XQItemDelegate::xqItemFromIndex( const QModelIndex& index ) const
|
||||
QWidget* XQItemDelegate::prepareHeaderOption(const QStyleOptionViewItem& option, const QModelIndex& index, QStyleOptionHeader& headerOption) const
|
||||
{
|
||||
// use the header as "parent" for style init
|
||||
QWidget* srcWidget = treeView()->header();
|
||||
QWidget* srcWidget = treeTable()->header();
|
||||
headerOption.initFrom(srcWidget);
|
||||
headerOption.text = index.data(Qt::DisplayRole).toString();
|
||||
headerOption.rect = option.rect;
|
||||
|
Reference in New Issue
Block a user