mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
7ec3049844
* It seems due to deficiencies in Qt's design, there will be a substantial need for these small custom subclasses just to add basic functionality that should have been present in the original. So we'll adopt a naming scheme of QFooBar -> RDFooBar for this 'almost the same widget' type subclassing, compared to more custom/changed ones.
22 lines
309 B
C++
22 lines
309 B
C++
#pragma once
|
|
#include <QLineEdit>
|
|
|
|
class RDLineEdit : public QLineEdit
|
|
{
|
|
private:
|
|
Q_OBJECT
|
|
public:
|
|
explicit RDLineEdit(QWidget *parent = 0);
|
|
~RDLineEdit();
|
|
|
|
signals:
|
|
void enter();
|
|
void leave();
|
|
|
|
public slots:
|
|
|
|
protected:
|
|
void focusInEvent(QFocusEvent *e);
|
|
void focusOutEvent(QFocusEvent *e);
|
|
};
|