RTL fixes

This commit is contained in:
craig.p.drummond
2014-06-20 17:58:28 +00:00
parent dd39f0e50d
commit 478b73c2c1
18 changed files with 44 additions and 38 deletions

View File

@@ -150,7 +150,7 @@ QAction * ActionItemDelegate::getAction(const QModelIndex &index) const
}
QAbstractItemView *view=(QAbstractItemView *)parent();
bool rtl = Qt::RightToLeft==QApplication::layoutDirection();
bool rtl = QApplication::isRightToLeft();
QListView *lv=qobject_cast<QListView *>(view);
GroupedView *gv=lv ? 0 : qobject_cast<GroupedView *>(view);
ActionPos actionPos=gv ? AP_HBottom : (lv && QListView::ListMode!=lv->viewMode() && index.child(0, 0).isValid() ? AP_VTop : AP_HMiddle);