mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-25 01:10:19 -05:00
fixed compilation on ubuntu 18.04
This commit is contained in:
parent
712c7e5fb1
commit
7a873c3b53
@ -514,13 +514,13 @@ void GxsChannelPostsWidgetWithModel::keyPressEvent(QKeyEvent *e)
|
|||||||
|
|
||||||
if(e->key() == Qt::Key_Left && index.column()==0)
|
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();
|
e->accept();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(e->key() == Qt::Key_Right && index.column()==n)
|
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();
|
e->accept();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user