summaryrefslogtreecommitdiffstats
path: root/kdelirc/kcmlirc/modeslist.cpp
blob: a18212979ebd3be46f6aa5e50563e518fb121fc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 *tqparent, const char *name) : KListView(tqparent, 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"