schema_editor/comdel/display/library_list.h

35 lines
698 B
C
Raw Permalink Normal View History

//
// Created by bbr on 22.05.22..
//
#ifndef SCHEMEEDITOR_LIBRARY_LIST_H
#define SCHEMEEDITOR_LIBRARY_LIST_H
#include <QListWidget>
#include <QList>
#include <QMimeData>
namespace display {
2022-05-27 06:18:17 +00:00
class LibraryList : public QListWidget {
Q_OBJECT
public:
LibraryList(QWidget *parent);
protected:
2022-05-27 06:18:17 +00:00
QMimeData *mimeData(const QList<QListWidgetItem *> items) const override;
};
2022-05-27 06:18:17 +00:00
class LibraryListItem : public QListWidgetItem {
public:
std::string mimeType;
std::string value;
LibraryListItem(std::string title, std::string mimeType, std::string value, QListWidget *parent);
};
} // display
#endif //SCHEMEEDITOR_LIBRARY_LIST_H