1
0
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:
iphydf 2018-07-19 21:13:15 +00:00
parent a12bb068d0
commit 4fa257bf66
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -55,6 +55,7 @@ public:
};
ChatFormHeader(QWidget* parent = nullptr);
~ChatFormHeader();
void setName(const QString& newName);
void setMode(Mode mode);