New custom TextInput widget (derived from QLineEdit) to use for text input fields. It currently just removes the default (theme-based) icons from context menu actions

This commit is contained in:
Nav
2021-12-19 18:30:41 +00:00
parent cb5afddd0f
commit a923c18403
7 changed files with 56 additions and 6 deletions

View File

@@ -0,0 +1,19 @@
#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;
};
}