31 lines
533 B
C++
31 lines
533 B
C++
#ifndef LINESTYLEVIEW_H
|
|
#define LINESTYLEVIEW_H
|
|
|
|
#include <QTableView>
|
|
|
|
#pragma execution_character_set("utf-8")
|
|
|
|
class LineStyleView :public QTableView
|
|
{
|
|
|
|
Q_OBJECT
|
|
public:
|
|
LineStyleView(QWidget *parent);
|
|
~LineStyleView();
|
|
signals:
|
|
void signalSelectLineStyleChanged(int style,int lineWidth);
|
|
|
|
private slots:
|
|
void slotCellPressed(const QModelIndex &mIndex);
|
|
|
|
// QWidget interface
|
|
protected:
|
|
virtual void resizeEvent(QResizeEvent *);
|
|
private:
|
|
int m_currentStyle;
|
|
int m_currentLineWidth;
|
|
|
|
};
|
|
|
|
#endif // LINESTYLEVIEW_H
|