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.
nmWATI/Include/iBase/iProperty/PtyItems/ZxDoubleSpinEdit.h

38 lines
558 B
C

#pragma once
#include <QSpinBox>
#include "iProperty_global.h"
class I_PROPERTY_EXPORT ZxDoubleSpinEdit
: public QDoubleSpinBox
{
Q_OBJECT
public:
ZxDoubleSpinEdit(QWidget *parent = 0);
protected:
virtual void focusInEvent(QFocusEvent *e);
virtual void focusOutEvent(QFocusEvent * e);
virtual void mousePressEvent(QMouseEvent * e);
void setAutoSelectAll(bool bAuto);
bool isAutoSelectAll() const;
private:
bool eventFilter(QObject *o, QEvent *e);
private:
bool m_bClickFocusIn : 1;
bool m_bAutoSelectAll : 1;
};