From 07282927056b7ac98dd4e4e2b11a340e53706d0f Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 29 Oct 2006 08:47:59 +0000 Subject: [PATCH] use the right arrows in RtL layout svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=599951 --- ui/presentationwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/presentationwidget.cpp b/ui/presentationwidget.cpp index caa04f310..451b8ff83 100644 --- a/ui/presentationwidget.cpp +++ b/ui/presentationwidget.cpp @@ -292,8 +292,8 @@ void PresentationWidget::paintEvent( QPaintEvent * pe ) m_topBar = new KToolBar( this, "presentationBar" ); m_topBar->setIconSize( 32 ); m_topBar->setMovingEnabled( false ); - m_topBar->insertButton( "1leftarrow", 2, SIGNAL( clicked() ), this, SLOT( slotPrevPage() ) ); - m_topBar->insertButton( "1rightarrow", 3, SIGNAL( clicked() ), this, SLOT( slotNextPage() ) ); + m_topBar->insertButton( QApplication::reverseLayout() ? "1rightarrow" : "1leftarrow", 2, SIGNAL( clicked() ), this, SLOT( slotPrevPage() ) ); + m_topBar->insertButton( QApplication::reverseLayout() ? "1leftarrow" : "1rightarrow", 3, SIGNAL( clicked() ), this, SLOT( slotNextPage() ) ); m_topBar->insertButton( "exit", 1, SIGNAL( clicked() ), this, SLOT( close() ) ); m_topBar->setGeometry( 0, 0, m_width, 32 + 10 ); m_topBar->alignItemRight( 1 );