mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: Give ChatFormHeader an out-of-line destructor.
This makes the class more widely usable, since deallocating an object of this class no longer needs to have the `CallConfirmWidget` definition present. The header file forward-declares `CallConfirmWidget`, so it's not a complete type if only `chatformheader.h` is included.
This commit is contained in:
parent
a12bb068d0
commit
4fa257bf66
|
@ -156,6 +156,8 @@ ChatFormHeader::ChatFormHeader(QWidget* parent)
|
|||
Translator::registerHandler(std::bind(&ChatFormHeader::retranslateUi, this), this);
|
||||
}
|
||||
|
||||
ChatFormHeader::~ChatFormHeader() = default;
|
||||
|
||||
void ChatFormHeader::setName(const QString& newName)
|
||||
{
|
||||
nameLabel->setText(newName);
|
||||
|
|
|
@ -55,6 +55,7 @@ public:
|
|||
};
|
||||
|
||||
ChatFormHeader(QWidget* parent = nullptr);
|
||||
~ChatFormHeader();
|
||||
|
||||
void setName(const QString& newName);
|
||||
void setMode(Mode mode);
|
||||
|
|
Loading…
Reference in New Issue
Block a user