41 lines
661 B
C++
41 lines
661 B
C++
#ifndef FORMHEAD_H
|
|
#define FORMHEAD_H
|
|
|
|
#include <QWidget>
|
|
#include <QTableWidgetItem>
|
|
|
|
#pragma execution_character_set("utf-8")
|
|
|
|
namespace Ui {
|
|
class FormHead;
|
|
}
|
|
|
|
class FormHead : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit FormHead(QWidget *parent = nullptr, int indexID=0);
|
|
~FormHead();
|
|
|
|
private:
|
|
Ui::FormHead *ui;
|
|
|
|
public:
|
|
int m_indexID;
|
|
|
|
public:
|
|
void Init();
|
|
void Add(QString strLineName, QColor lineColor);
|
|
|
|
public slots:
|
|
void onItemClicked(QTableWidgetItem *item);
|
|
void s_AddLine();
|
|
void s_DelOne();
|
|
|
|
private slots:
|
|
void on_tableWidget_customContextMenuRequested(const QPoint &pos);
|
|
};
|
|
|
|
#endif // FORMHEAD_H
|