diff --git a/kcms/touchpad/src/kcm/xlib/testarea.cpp b/kcms/touchpad/src/kcm/xlib/testarea.cpp --- a/kcms/touchpad/src/kcm/xlib/testarea.cpp +++ b/kcms/touchpad/src/kcm/xlib/testarea.cpp @@ -20,22 +20,16 @@ #include #include -#include -#include #include #include TestArea::TestArea(QWidget *parent) : QWidget(parent) { m_ui.setupUi(this); - QStandardItemModel *model = new QStandardItemModel(m_ui.listView); - m_ui.listView->setModel(model); - QScopedPointer item( - new QStandardItem(QIcon::fromTheme("folder"), i18n("Drag me"))); - model->appendRow(item.data()); - item.take(); + m_ui.listWidget->addItem(new QListWidgetItem(QIcon::fromTheme("folder"), + i18n("Drag me"), m_ui.listWidget)); Plasma::Theme defaultTheme; QString wallpaper = defaultTheme.wallpaperPath(); diff --git a/kcms/touchpad/src/kcm/xlib/ui/testarea.ui b/kcms/touchpad/src/kcm/xlib/ui/testarea.ui --- a/kcms/touchpad/src/kcm/xlib/ui/testarea.ui +++ b/kcms/touchpad/src/kcm/xlib/ui/testarea.ui @@ -46,7 +46,7 @@ - + Qt::NoFocus