logplus/logPlus/preqtablewidget.h

46 lines
1.1 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef PREQTABLEWIDGET_H
#define PREQTABLEWIDGET_H
#include <QTableWidget>
#include "qmytreewidget.h"
#include "forminfo.h"
#pragma execution_character_set("utf-8")
class PreQTableWidget : public QTableWidget
{
Q_OBJECT
public:
explicit PreQTableWidget(QWidget *parent = 0);
protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void dragEnterEvent(QDragEnterEvent *event);
void dragMoveEvent(QDragMoveEvent *event);
void dropEvent(QDropEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
private slots:
void ChangedItem();
private:
void performDrag();
QPoint startPos;
public:
QString m_strUuid;
QString m_strWellName;
QString m_strTrackName;
bool m_press;//判断鼠标是否按下
bool m_AddSuc;
//QStringList m_listLineName;//会漏掉第1条曲线因为在track添加的
public:
QStringList getListLineName(QString strLineName, QList<float> &listMin, QList<float> &listMax, QStringList &strListOtherScaleType);
};
#endif // PREQTABLEWIDGET_H