use the layout direction of the parent treewidget

svn path=/trunk/playground/graphics/okular/; revision=561525
remotes/origin/old/work/newpageview
Pino Toscano 20 years ago
parent 9fbfc1cb39
commit cc447bd3dc
  1. 3
      ui/toc.cpp

@ -8,7 +8,6 @@
***************************************************************************/
// qt/kde includes
#include <qapplication.h>
#include <qheaderview.h>
#include <qlayout.h>
#include <qstringlist.h>
@ -56,7 +55,7 @@ class TOCItem : public QTreeWidgetItem
void setSelected( bool selected )
{
setIcon( 0, selected ? KIcon( QApplication::layoutDirection() == Qt::RightToLeft ? "1leftarrow" : "1rightarrow" ) : QIcon() );
setIcon( 0, selected ? KIcon( treeWidget()->layoutDirection() == Qt::RightToLeft ? "1leftarrow" : "1rightarrow" ) : QIcon() );
}
private:

Loading…
Cancel
Save