Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ee47e765 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Port to QListWidget

parent e9e795e5
......@@ -24,7 +24,7 @@
#include <QMouseEvent>
TokenPool::TokenPool(QWidget *parent)
: KListWidget(parent)
: QListWidget(parent)
{
setAcceptDrops(true);
}
......@@ -68,7 +68,7 @@ TokenPool::mousePressEvent(QMouseEvent *event)
if (event->button() == Qt::LeftButton) {
m_startPos = event->pos(); //store the start position
}
KListWidget::mousePressEvent(event); //feed it to parent's event
QListWidget::mousePressEvent(event); //feed it to parent's event
}
//Executed on mouse move, handles start of drag.
......@@ -81,7 +81,7 @@ TokenPool::mouseMoveEvent(QMouseEvent *event)
performDrag(event);
}
}
KListWidget::mouseMoveEvent(event);
QListWidget::mouseMoveEvent(event);
}
//This doesn't do much since TokenPool doesn't accept objects.
......
......@@ -21,11 +21,11 @@
#include "Token.h"
#include <KListWidget>
#include <QListWidget>
#include <QMap>
//Holds a number of icons representing parts of the filename that will become tokens when dropped on the TokenLayoutWidget.
class TokenPool : public KListWidget
class TokenPool : public QListWidget
{
Q_OBJECT
Q_PROPERTY(QString mimeType READ mimeType WRITE setMimeType)
......
......@@ -22,7 +22,7 @@
</widget>
</item>
<item>
<widget class="KListWidget" name="keyList" >
<widget class="QListWidget" name="keyList" >
<property name="toolTip" >
<string>Select Keys to Export</string>
</property>
......@@ -35,7 +35,7 @@
</widget>
<customwidgets>
<customwidget>
<class>KListWidget</class>
<class>QListWidget</class>
<extends>QListWidget</extends>
<header>klistwidget.h</header>
</customwidget>
......
......@@ -22,7 +22,7 @@
</widget>
</item>
<item>
<widget class="KListWidget" name="keyList" >
<widget class="QListWidget" name="keyList" >
<property name="toolTip" >
<string>Select Keys to Use</string>
</property>
......@@ -38,7 +38,7 @@
</widget>
<customwidgets>
<customwidget>
<class>KListWidget</class>
<class>QListWidget</class>
<extends>QListWidget</extends>
<header>klistwidget.h</header>
</customwidget>
......
......@@ -26,7 +26,7 @@
#include <qradiobutton.h>
#include <QVBoxLayout>
#include <klistwidget.h>
#include <QListWidget>
#include <klocale.h>
#include <kpluginfactory.h>
......
......@@ -259,7 +259,7 @@ in place of your status message.</string>
</widget>
</item>
<item>
<widget class="KListWidget" name="kcfg_SelectedMediaPlayer"/>
<widget class="QListWidget" name="kcfg_SelectedMediaPlayer"/>
</item>
</layout>
</item>
......@@ -303,7 +303,7 @@ in place of your status message.</string>
</widget>
<customwidgets>
<customwidget>
<class>KListWidget</class>
<class>QListWidget</class>
<extends>QListWidget</extends>
<header>klistwidget.h</header>
</customwidget>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment