Bug 132505 - [PATCH] Speak selected page viewer text.
Summary: [PATCH] Speak selected page viewer text.
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-16 17:43 UTC by KDEfanboy
Modified: 2006-08-17 12:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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");
     }
 }