forked from aya/aya
Initial commit
This commit is contained in:
25
client/common/GrayChatBar.hpp
Normal file
25
client/common/GrayChatBar.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
#include <QLineEdit>
|
||||
#include <QVBoxLayout>
|
||||
#include <QKeyEvent>
|
||||
|
||||
class GrayChatBar : public QLineEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GrayChatBar(QWidget* parent = nullptr);
|
||||
void focus();
|
||||
|
||||
protected:
|
||||
void focusInEvent(QFocusEvent* e) override;
|
||||
void focusOutEvent(QFocusEvent* e) override;
|
||||
void keyPressEvent(QKeyEvent* e) override;
|
||||
void mousePressEvent(QMouseEvent* e) override;
|
||||
void handleEnteredText(const QString& text);
|
||||
void setVisibility(bool visible);
|
||||
|
||||
Q_SIGNALS:
|
||||
void returnPressed();
|
||||
void enteredText(const QString& text);
|
||||
};
|
||||
Reference in New Issue
Block a user