update: add dray trigger task.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#ifndef CUSTOM_TABLEWIDET_H
|
||||
#define CUSTOM_TABLEWIDET_H
|
||||
|
||||
#include <QTableWidget>
|
||||
#include <FileTrans.h>
|
||||
#include <QDropEvent>
|
||||
#include <QTableWidget>
|
||||
|
||||
class CustomTableWidget : public QTableWidget
|
||||
{
|
||||
@@ -11,6 +12,16 @@ public:
|
||||
explicit CustomTableWidget(QWidget* parent = nullptr);
|
||||
~CustomTableWidget() override;
|
||||
|
||||
signals:
|
||||
void sigTasks(const QVector<TransTask>& tasks);
|
||||
|
||||
public:
|
||||
void setIsRemote(bool isRemote);
|
||||
void setBasePathCall(const std::function<QString()>& call);
|
||||
void setOtherSidePathCall(const std::function<QString()>& call);
|
||||
void setOwnIDCall(const std::function<QString()>& call);
|
||||
void setRemoteIDCall(const std::function<QString()>& call);
|
||||
|
||||
protected:
|
||||
void dropEvent(QDropEvent* event) override;
|
||||
void dragEnterEvent(QDragEnterEvent* event);
|
||||
@@ -18,7 +29,12 @@ protected:
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
|
||||
protected:
|
||||
bool isRemote_{false};
|
||||
QPoint startPos_;
|
||||
std::function<QString()> basePathCall_;
|
||||
std::function<QString()> otherSideCall_;
|
||||
std::function<QString()> oidCall_;
|
||||
std::function<QString()> ridCall_;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user