Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
cyber_chat_button.h
Go to the documentation of this file.
1#ifndef CYBER_CHAT_BUTTON_H
2#define CYBER_CHAT_BUTTON_H
3
4#include <QPushButton>
5
13class CyberChatButton final : public QPushButton {
14 Q_OBJECT
15
16public:
23 explicit CyberChatButton(const QString &text, QWidget *parent = nullptr);
24
25protected:
32 void paintEvent(QPaintEvent *event) override;
33};
34
35#endif //CYBER_CHAT_BUTTON_H
void paintEvent(QPaintEvent *event) override
Overridden paint event handler. Draws the custom cyberpunk button appearance. Renders the clipped bac...
Definition cyber_chat_button.cpp:10
CyberChatButton(const QString &text, QWidget *parent=nullptr)
Constructs a CyberChatButton. Initializes the button with the given text and sets the cursor to a poi...
Definition cyber_chat_button.cpp:6