#pragma once #include #include "iProperty_global.h" class ZxSymbolPullList; class I_PROPERTY_EXPORT ZxSymbolPicker : public QWidget { Q_OBJECT public: explicit ZxSymbolPicker(QWidget* parent = 0); void setSymbol(int symbolNo); int getSymbol(); protected slots: void sltSymbolChanged(int symbolNo); protected: virtual void onSymbolChanged(int symbolNo); virtual void paintEvent(QPaintEvent *); virtual void mousePressEvent(QMouseEvent *e); virtual void resizeEvent(QResizeEvent *); protected: int m_symbolNo; ZxSymbolPullList *m_pSymbolMenu; };