[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kig/modes
From:       Pino Toscano <toscano.pino () tiscali ! it>
Date:       2007-04-03 22:28:11
Message-ID: 1175639291.564819.25011.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 650128 by pino:

use the proper icons in RtL mode


 M  +6 -4      historydialog.cc  


--- trunk/KDE/kdeedu/kig/modes/historydialog.cc #650127:650128
@@ -48,19 +48,21 @@
 
   mtotalsteps = mch->count() + 1;
 
-  mwidget->buttonFirst->setIcon( KIcon( "arrow-left-double" ) );
+  bool reversed = layoutDirection() == Qt::RightToLeft;
+
+  mwidget->buttonFirst->setIcon( KIcon( reversed ? "arrow-right-double" : "arrow-left-double" ) );
   connect( mwidget->buttonFirst, SIGNAL( clicked() ), this, SLOT( goToFirst() ) );
 
-  mwidget->buttonBack->setIcon( KIcon( "arrow-left" ) );
+  mwidget->buttonBack->setIcon( KIcon( reversed ? "arrow-right" : "arrow-left" ) );
   connect( mwidget->buttonBack, SIGNAL( clicked() ), this, SLOT( goBack() ) );
 
   mwidget->editStep->setValidator( new KIntValidator( 1, mtotalsteps, mwidget->editStep ) );
   mwidget->labelSteps->setText( QString::number( mtotalsteps ) );
 
-  mwidget->buttonNext->setIcon( KIcon( "arrow-right" ) );
+  mwidget->buttonNext->setIcon( KIcon( reversed ? "arrow-left" : "arrow-right" ) );
   connect( mwidget->buttonNext, SIGNAL( clicked() ), this, SLOT( goToNext() ) );
 
-  mwidget->buttonLast->setIcon( KIcon( "arrow-right-double" ) );
+  mwidget->buttonLast->setIcon( KIcon( reversed ? "arrow-left-double" : "arrow-right-double" ) );
   connect( mwidget->buttonLast, SIGNAL( clicked() ), this, SLOT( goToLast() ) );
 
   updateWidgets();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic