You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
784 B
C++
35 lines
784 B
C++
#pragma once
|
|
#include <iPlugin_global.h>
|
|
#include <QStringList>
|
|
#include <QComboBox>
|
|
#include <QHeaderView>
|
|
#include <QDebug>
|
|
#include <QPainter>
|
|
|
|
#include <QListWidget>
|
|
#include <QRadioButton>
|
|
#include <QStandardItem>
|
|
|
|
// 为了QCombobox下拉列表添加QRadioButton复选框创建ZxListViewEx
|
|
class I_PLUGIN_EXPORT ZxListViewEx : public QListWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ZxListViewEx(QWidget* parent, const QString& sCurSel, QStringList *listItemAlls, QComboBox* pComboBox);
|
|
|
|
//返回用户选择项的用户自定义数据
|
|
QString getSelectItems();
|
|
|
|
private slots:
|
|
|
|
// Radio状态改变
|
|
void slotRadioChanged(bool);
|
|
|
|
private:
|
|
|
|
// 相关的变量,主要为控制
|
|
QComboBox* m_pComboBox;
|
|
QList<QRadioButton*> m_listRadioButtons;
|
|
};
|