<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>92936</bug_id>
          
          <creation_ts>2004-11-08 22:44:15 +0000</creation_ts>
          <short_desc>copy text from documentation</short_desc>
          <delta_ts>2004-11-22 12:35:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>quanta</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="ratko">ratko</reporter>
          <assigned_to name="András Manţia">amantia</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>284104</commentid>
    <comment_count>0</comment_count>
    <who name="ratko">ratko</who>
    <bug_when>2004-11-08 22:44:16 +0000</bug_when>
    <thetext>Version:           3.3.0 (using KDE 3.3.1,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-2)
OS:                Linux (i686) release 2.6.8

php documentation is really handy in quanta,
but the examples in it (or any other text) cannot be copied into a file you are working on.

copy - paste just isn&apos;t working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>285562</commentid>
    <comment_count>1</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2004-11-13 20:41:22 +0000</bug_when>
    <thetext>Just select and paste with the middle mouse button. Copy/Paste is not working, indeed. But that&apos;s a bug, not a missing feature. ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>288001</commentid>
    <comment_count>2</comment_count>
    <who name="András Manţia">amantia</who>
    <bug_when>2004-11-22 12:35:37 +0000</bug_when>
    <thetext>CVS commit by amantia: 

Enable full copy/paste from documentation and preview. Until now it worked only with the mouse through the selection.

BUG: 92936


  M +3 -0      ChangeLog   1.321
  M +10 -2     data/dtep/html/o.tag   1.6
  M +1 -1      src/document.cpp   1.330
  M +16 -2     src/quanta.cpp   1.651


--- kdewebdev/quanta/ChangeLog  #1.320:1.321
@@ -38,4 +38,7 @@
         - don&apos;t try to add a newly created action to a non-existent All toolbar.
         - don&apos;t crash on exit if the user removed an action
+        - enable full copy/paste from documentation and preview. Until now it worked 
+          only with the mouse through the selection. [#92936]
+
 
   - behavioral/user interface changes:

--- kdewebdev/quanta/data/dtep/html/o.tag  #1.5:1.6
@@ -206,12 +206,20 @@
     &lt;/attr&gt;
 
-    &lt;attr name=&quot;selected&quot; type=&quot;check&quot;&gt;
+    &lt;attr name=&quot;selected&quot; type=&quot;list&quot;&gt;
         &lt;text&gt;Selected&lt;/text&gt;
+        &lt;textlocation col=&quot;0&quot; row=&quot;1&quot; /&gt;
         &lt;location col=&quot;1&quot; row=&quot;1&quot; /&gt;
+        &lt;items&gt;
+          &lt;item&gt;selected&lt;/item&gt;
+        &lt;/items&gt;
     &lt;/attr&gt;
 
-    &lt;attr name=&quot;disabled&quot; type=&quot;check&quot;&gt;
+    &lt;attr name=&quot;disabled&quot; type=&quot;list&quot;&gt;
         &lt;text&gt;Disabled&lt;/text&gt;
+        &lt;textlocation col=&quot;0&quot; row=&quot;2&quot; /&gt;
         &lt;location col=&quot;1&quot; row=&quot;2&quot; /&gt;
+        &lt;items&gt;
+          &lt;item&gt;disabled&lt;/item&gt;
+        &lt;/items&gt;
     &lt;/attr&gt;
 

--- kdewebdev/quanta/src/quanta.cpp  #1.650:1.651
@@ -4652,10 +4652,24 @@ void QuantaApp::slotCopy()
     return;
   }
-  if(w)
+  if (w)
   {
     KTextEditor::ClipboardInterface* clip = dynamic_cast&lt;KTextEditor::ClipboardInterface*&gt;(w-&gt;view());
-    if(clip)
+    if (clip)
       clip-&gt;copy();
   }
+  if (m_htmlPart-&gt;view()-&gt;hasFocus())
+  {
+    QString selection = m_htmlPart-&gt;selectedText();
+    QClipboard *cb = QApplication::clipboard();
+    cb-&gt;setText(selection, QClipboard::Clipboard);
+  }
+  else
+  if (m_htmlPartDoc-&gt;view()-&gt;hasFocus())
+  {
+    QString selection = m_htmlPartDoc-&gt;selectedText();
+    QClipboard *cb = QApplication::clipboard();
+    cb-&gt;setText(selection, QClipboard::Clipboard);
+  }
+
 }
 


</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>