fixed compilation on ubuntu 18.04

This commit is contained in:
csoler 2023-10-12 20:18:21 +02:00
parent 712c7e5fb1
commit 7a873c3b53

View File

@ -514,13 +514,13 @@ void GxsChannelPostsWidgetWithModel::keyPressEvent(QKeyEvent *e)
if(e->key() == Qt::Key_Left && index.column()==0)
{
ui->postsTree->setCurrentIndex(index.siblingAtColumn(n));
ui->postsTree->setCurrentIndex(index.sibling(index.row(),n));
e->accept();
return;
}
if(e->key() == Qt::Key_Right && index.column()==n)
{
ui->postsTree->setCurrentIndex(index.siblingAtColumn(0));
ui->postsTree->setCurrentIndex(index.sibling(index.row(),0));
e->accept();
return;
}