Fix linux build with problems overriding functions

This commit is contained in:
baldurk
2017-04-22 02:25:03 +01:00
parent 18b62495d6
commit 04bfcdff71
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -125,7 +125,7 @@ public:
return widget->m_headers.count();
}
bool hasChildren(const QModelIndex &parent) const
bool hasChildren(const QModelIndex &parent) const override
{
if(!parent.isValid())
return widget->m_root->childCount() > 0;
@@ -345,7 +345,7 @@ void RDTreeWidgetItem::setWidget(RDTreeWidget *widget)
void RDTreeWidgetItem::dataChanged(int role)
{
if(m_widget)
m_widget->dataChanged(this, role);
m_widget->itemDataChanged(this, role);
}
RDTreeWidgetItem *RDTreeWidgetItem::takeChild(int index)
@@ -596,7 +596,7 @@ void RDTreeWidget::currentChanged(const QModelIndex &current, const QModelIndex
QTreeView::currentChanged(current, previous);
}
void RDTreeWidget::dataChanged(RDTreeWidgetItem *item, int role)
void RDTreeWidget::itemDataChanged(RDTreeWidgetItem *item, int role)
{
if(m_queueUpdates)
{
+1 -1
View File
@@ -202,7 +202,7 @@ private:
void currentChanged(const QModelIndex &current, const QModelIndex &previous) override;
void setModel(QAbstractItemModel *model) override {}
void dataChanged(RDTreeWidgetItem *item, int role);
void itemDataChanged(RDTreeWidgetItem *item, int role);
friend class RDTreeWidgetModel;
friend class RDTreeWidgetItem;