20 lines
313 B
C++
20 lines
313 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <QLineEdit>
|
||
|
|
#include <QContextMenuEvent>
|
||
|
|
|
||
|
|
namespace Bloom::Widgets
|
||
|
|
{
|
||
|
|
class TextInput: public QLineEdit
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit TextInput(QWidget* parent = nullptr);
|
||
|
|
|
||
|
|
protected:
|
||
|
|
void contextMenuEvent(QContextMenuEvent* event) override;
|
||
|
|
|
||
|
|
};
|
||
|
|
}
|