Bug 132505

Summary: [PATCH] Speak selected page viewer text.
Product: [Applications] akregator Reporter: KDEfanboy <KDE.fanboy>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description KDEfanboy 2006-08-16 17:43:31 UTC
Version:           unknown (using KDE 3.5.4, compiled sources)
OS:                Linux

Just a small patch to fill the TODO.

--- akregator_view.cpp  (revision 573539)
+++ akregator_view.cpp  (working copy)
@@ -1394,7 +1394,7 @@
     }
     else
     {
-        // TODO: read selected page viewer
+        SpeechClient::self()->slotSpeak(static_cast<PageViewer *>(m_currentFrame->part())->selectedText(), "en");
     }
 }
Comment 1 Frank Osterfeld 2006-08-17 12:22:08 UTC
SVN commit 573838 by osterfeld:

speak selected pageviewer text if the speak action is executed while a pageviewer is shown.
Patch by "KDEFanBoy"
BUG: 132505


 M  +4 -1      akregator_view.cpp  


--- branches/KDE/3.5/kdepim/akregator/src/akregator_view.cpp #573837:573838
@@ -1394,7 +1394,10 @@
     }
     else
     {
-        // TODO: read selected page viewer
+        QString selectedText = static_cast<PageViewer *>(m_currentFrame->part())->selectedText();
+        
+        if (!selectedText.isEmpty())
+            SpeechClient::self()->slotSpeak(selectedText, "en");
     }
 }