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.
32 lines
502 B
C++
32 lines
502 B
C++
#pragma once
|
|
|
|
#include "iDlgBase.h"
|
|
#include "iGuiGridPty_global.h"
|
|
|
|
// 这是内部嵌套用的QComboBox
|
|
class X_GUI_GRIDPTY_EXPORT QComboBoxEx : public QComboBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QComboBoxEx(QWidget *parent = 0);
|
|
~QComboBoxEx();
|
|
|
|
void setActive(bool b);
|
|
bool isActive();
|
|
|
|
signals:
|
|
|
|
void sigActivated(bool);
|
|
|
|
protected:
|
|
|
|
virtual void focusInEvent(QFocusEvent *e);
|
|
virtual void focusOutEvent(QFocusEvent *e);
|
|
virtual void showPopup();
|
|
|
|
private:
|
|
|
|
bool m_bActive;
|
|
};
|