apply rtl only to feed titles in feed list
This commit is contained in:
parent
cd8ba3da17
commit
15ed8a7f5f
1 changed files with 8 additions and 2 deletions
|
@ -82,8 +82,14 @@ QVariant Feed::data(int column, int role) const {
|
|||
return QVariant();
|
||||
}
|
||||
|
||||
case TEXT_DIRECTION_ROLE:
|
||||
case TEXT_DIRECTION_ROLE: {
|
||||
if (column == FDS_MODEL_TITLE_INDEX) {
|
||||
return isRtl() ? Qt::LayoutDirection::RightToLeft : Qt::LayoutDirection::LayoutDirectionAuto;
|
||||
}
|
||||
else {
|
||||
return Qt::LayoutDirection::LayoutDirectionAuto;
|
||||
}
|
||||
}
|
||||
|
||||
case Qt::ItemDataRole::ForegroundRole:
|
||||
switch (status()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue