Added BCTransmitter & woker thread.
This commit is contained in:
32
bcitemdelegate.h
Normal file
32
bcitemdelegate.h
Normal file
@@ -0,0 +1,32 @@
|
||||
// BCItemDelegate.h
|
||||
#ifndef BCITEMDELEGATE_H
|
||||
#define BCITEMDELEGATE_H
|
||||
|
||||
|
||||
#include <QStyledItemDelegate>
|
||||
|
||||
class BCItemDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
explicit BCItemDelegate(QObject *parent = nullptr);
|
||||
|
||||
// WICHTIG: Zuständig für die normale Anzeige (ohne Editor)
|
||||
QString displayText(const QVariant& dataValue, const QLocale& locale) const override;
|
||||
|
||||
// Zuständig für den Edit-Modus (Doppelklick)
|
||||
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
void setEditorData(QWidget *editor, const QModelIndex &index) const override;
|
||||
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
|
||||
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
|
||||
QSize sizeHint(const QStyleOptionViewItem &option,const QModelIndex &index) const override;
|
||||
|
||||
private:
|
||||
QString formatDisplayString(const QModelIndex &index) const;
|
||||
};
|
||||
|
||||
|
||||
#endif // BCITEMDELEGATE_H
|
||||
Reference in New Issue
Block a user