summaryrefslogtreecommitdiffstats
path: root/tdelirc/kcmlirc/modeslist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdelirc/kcmlirc/modeslist.cpp')
-rw-r--r--tdelirc/kcmlirc/modeslist.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/tdelirc/kcmlirc/modeslist.cpp b/tdelirc/kcmlirc/modeslist.cpp
new file mode 100644
index 0000000..1665e64
--- /dev/null
+++ b/tdelirc/kcmlirc/modeslist.cpp
@@ -0,0 +1,33 @@
+//
+//
+// C++ Implementation: $MODULE$
+//
+// Description:
+//
+//
+// Author: Gav Wood <gav@kde.org>, (C) 2003
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#include <tqwidget.h>
+
+#include <kdebug.h>
+
+#include "modeslist.h"
+
+ModesList::ModesList(TQWidget *parent, const char *name) : TDEListView(parent, name)
+{
+ setAcceptDrops(true);
+ setDropVisualizer(false);
+ setDropHighlighter(true);
+}
+
+bool ModesList::acceptDrag(TQDropEvent *) const
+{
+ // TODO: make safer by checking source/mime type
+ // TODO: make safer by only allowing drops on the correct remote control's modes
+ return true;
+}
+
+#include "modeslist.moc"