1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[RTL] Force AdBlockTreeWidget and treeTags to be as LTR widgets.

This commit is contained in:
S. Razi Alavizadeh 2014-05-29 01:03:04 +04:30
parent 4ea5974914
commit 7fc0c8d06d
2 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ AdBlockTreeWidget::AdBlockTreeWidget(AdBlockSubscription* subscription, QWidget*
setDefaultItemShowMode(TreeWidget::ItemsExpanded);
setHeaderHidden(true);
setAlternatingRowColors(true);
setLayoutDirection(Qt::LeftToRight);
connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextMenuRequested(QPoint)));
connect(this, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this, SLOT(itemChanged(QTreeWidgetItem*)));

View File

@ -52,6 +52,7 @@ SiteInfo::SiteInfo(WebView* view, QWidget* parent)
{
setAttribute(Qt::WA_DeleteOnClose);
ui->setupUi(this);
ui->treeTags->setLayoutDirection(Qt::LeftToRight);
ListItemDelegate* delegate = new ListItemDelegate(24, ui->listWidget);
delegate->setUpdateParentHeight(true);