[Kde-bindings] KDE/kdebindings/csharp
Arno Rehn
kde at arnorehn.de
Sun Aug 3 18:13:21 UTC 2008
SVN commit 841632 by arnorehn:
* Make use of KUrl.List in the KWrite example. This makes drag&drop work.
CCMAIL: kde-bindings at kde.org
M +1 -1 kimono/src/kimono.cpp
M +4 -0 ktexteditor/ChangeLog
M +11 -11 ktexteditor/examples/kwrite/kwritemain.cs
--- trunk/KDE/kdebindings/csharp/kimono/src/kimono.cpp #841631:841632
@@ -1,5 +1,5 @@
/***************************************************************************
- soprano.cpp - description
+ kimono.cpp - description
-------------------
begin : Mon Sep 10 2007
copyright : (C) 2007 by Arno Rehn
--- trunk/KDE/kdebindings/csharp/ktexteditor/ChangeLog #841631:841632
@@ -1,3 +1,7 @@
+2008-08-03 Arno Rehn <arno at arnorehn.de>
+
+* Make use of KUrl.List in the KWrite example. This makes drag&drop work.
+
2008-07-31 Arno Rehn <arno at arnorehn.de>
* KWrite example:
--- trunk/KDE/kdebindings/csharp/ktexteditor/examples/kwrite/kwritemain.cs #841631:841632
@@ -320,10 +320,10 @@
}
protected override void DragEnterEvent(QDragEnterEvent e) {
-// KUrl.List uriList = KUrl.List.FromMimeData(e.MimeData());
-// if (!uriList.IsEmpty()) {
-// e.Accept();
-// }
+ KUrl.List uriList = KUrl.List.FromMimeData(e.MimeData());
+ if (uriList.Count != 0) {
+ e.Accept();
+ }
}
protected override void DropEvent(QDropEvent e) {
@@ -332,15 +332,15 @@
[Q_SLOT("SlotDropEvent(QDropEvent*)")]
public void SlotDropEvent(QDropEvent e) {
-// KUrl.List textlist = KUrl.List.FromMimeData(e.mimeData());
+ KUrl.List textlist = KUrl.List.FromMimeData(e.MimeData());
-// if (textlist.IsEmpty()) {
-// return;
-// }
+ if (textlist.Count == 0) {
+ return;
+ }
-// for (KUrl.List.Iterator i=textlist.begin(); i != textlist.end(); ++i) {
-// SlotOpen(i);
-// }
+ foreach (KUrl url in textlist) {
+ SlotOpen(url);
+ }
}
[Q_SLOT()]
More information about the Kde-bindings
mailing list