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

List:       kde-commits
Subject:    kdeaddons/konq-plugins/rellinks
From:       Meni Livne <livne () kde ! org>
Date:       2004-07-14 8:18:31
Message-ID: 20040714081831.9BE3F9245 () office ! kde ! org
[Download RAW message or body]

CVS commit by livne: 

Fix for RTL mode.


  M +7 -4      plugin_rellinks.cpp   1.32


--- kdeaddons/konq-plugins/rellinks/plugin_rellinks.cpp  #1.31:1.32
@@ -22,4 +22,5 @@
 
 // Qt includes
+#include <qapplication.h>
 #include <qtimer.h>
 
@@ -101,14 +102,16 @@ RelLinksPlugin::RelLinksPlugin(QObject *
     kaction_map["up"]->setWhatsThis( i18n("<p>This link references the immediate parent of the current \
document.</p>") );  
-    kaction_map["begin"] =  new KAction( i18n("&First"), "2leftarrow", KShortcut("Ctrl+Alt+F"), this,  \
SLOT(goFirst()), actionCollection(), "rellinks_first" ); +    bool isRTL = QApplication::reverseLayout();
+
+    kaction_map["begin"] =  new KAction( i18n("&First"), isRTL ? "2rightarrow" : "2leftarrow", \
KShortcut("Ctrl+Alt+F"), this,  SLOT(goFirst()), actionCollection(), "rellinks_first" );  \
kaction_map["begin"]->setWhatsThis( i18n("<p>This link type tells search engines which document is \
considered by the author to be the starting point of the collection.</p>") );  
-    kaction_map["prev"] =  new KAction( i18n("&Previous"), "1leftarrow", KShortcut("Ctrl+Alt+P"), this,  \
SLOT(goPrevious()), actionCollection(), "rellinks_previous" ); +    kaction_map["prev"] =  new KAction( \
i18n("&Previous"), isRTL ? "1rightarrow" : "1leftarrow", KShortcut("Ctrl+Alt+P"), this,  \
                SLOT(goPrevious()), actionCollection(), "rellinks_previous" );
     kaction_map["prev"]->setWhatsThis( i18n("<p>This link references the previous document in an ordered \
series of documents.</p>") );  
-    kaction_map["next"] =  new KAction( i18n("&Next"), "1rightarrow", KShortcut("Ctrl+Alt+N"), this,  \
SLOT(goNext()), actionCollection(), "rellinks_next" ); +    kaction_map["next"] =  new KAction( \
i18n("&Next"), isRTL ? "1leftarrow" : "1rightarrow", KShortcut("Ctrl+Alt+N"), this,  SLOT(goNext()), \
                actionCollection(), "rellinks_next" );
     kaction_map["next"]->setWhatsThis( i18n("<p>This link references the next document in an ordered \
series of documents.</p>") );  
-    kaction_map["last"] =  new KAction( i18n("&Last"), "2rightarrow", KShortcut("Ctrl+Alt+L"), this,  \
SLOT(goLast()), actionCollection(), "rellinks_last" ); +    kaction_map["last"] =  new KAction( \
i18n("&Last"), isRTL ? "2leftarrow" : "2rightarrow", KShortcut("Ctrl+Alt+L"), this,  SLOT(goLast()), \
                actionCollection(), "rellinks_last" );
     kaction_map["last"]->setWhatsThis( i18n("<p>This link references the end of a sequence of \
documents.</p>") );  


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

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