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

remotes/origin/falkon
S. Razi Alavizadeh 12 years ago
parent 4ea5974914
commit 7fc0c8d06d
  1. 1
      src/lib/adblock/adblocktreewidget.cpp
  2. 1
      src/lib/other/siteinfo.cpp

@ -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*)));

@ -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);

Loading…
Cancel
Save