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

List:       kde-panel-devel
Subject:    Copy text to clipboard from javascript plasmoid
From:       Nikola_Milenkoviæ <electronik87 () gmail ! com>
Date:       2010-02-27 15:20:28
Message-ID: 713e6eb41002270720y23998804r58fec9c986975f7f () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

is there a way to copy text to clipboard from javascript plasmoid?
In Ruby, that's simple:

Qt::Application.clipboard.text = @line_edit.text

from:
http://salout.github.com/blog/2010/02/07/simple_ruby_plasmoid.html

Or it's a job for data engine?

[Attachment #5 (text/html)]

Hi,<br><br>is there a way to copy text to clipboard from javascript plasmoid?<br>In \
Ruby, that&#39;s simple:<br><pre><code class="ruby"><span class="no">Qt</span><span \
class="o">::</span><span class="no">Application</span><span class="o">.</span><span \
class="n">clipboard</span><span class="o">.</span><span class="n">text</span> <span \
class="o">=</span> <span class="vi">@line_edit</span><span class="o">.</span><span \
class="n">text</span></code></pre> from:<br><a \
href="http://salout.github.com/blog/2010/02/07/simple_ruby_plasmoid.html">http://salout.github.com/blog/2010/02/07/simple_ruby_plasmoid.html</a><br><br>Or \
it&#39;s a job for data engine?<br>



_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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