mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix: silence various warnings
This commit is contained in:
parent
f07daaf159
commit
f0cec44a8c
|
@ -72,6 +72,7 @@ QString ChatLineContent::getSelectedText() const
|
||||||
|
|
||||||
void ChatLineContent::fontChanged(const QFont& font)
|
void ChatLineContent::fontChanged(const QFont& font)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(font);
|
||||||
}
|
}
|
||||||
|
|
||||||
qreal ChatLineContent::getAscent() const
|
qreal ChatLineContent::getAscent() const
|
||||||
|
|
|
@ -46,11 +46,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
GroupInviteForm::GroupInviteForm()
|
GroupInviteForm::GroupInviteForm()
|
||||||
: createButton(new QPushButton(this))
|
: headWidget(new QWidget(this))
|
||||||
|
, headLabel(new QLabel(this))
|
||||||
|
, createButton(new QPushButton(this))
|
||||||
, inviteBox(new QGroupBox(this))
|
, inviteBox(new QGroupBox(this))
|
||||||
, scroll(new QScrollArea(this))
|
, scroll(new QScrollArea(this))
|
||||||
, headLabel(new QLabel(this))
|
|
||||||
, headWidget(new QWidget(this))
|
|
||||||
{
|
{
|
||||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||||
connect(createButton, &QPushButton::clicked,
|
connect(createButton, &QPushButton::clicked,
|
||||||
|
|
|
@ -37,10 +37,10 @@
|
||||||
|
|
||||||
GroupInviteWidget::GroupInviteWidget(QWidget* parent, const GroupInvite& invite)
|
GroupInviteWidget::GroupInviteWidget(QWidget* parent, const GroupInvite& invite)
|
||||||
: QWidget(parent)
|
: QWidget(parent)
|
||||||
, widgetLayout(new QHBoxLayout(this))
|
|
||||||
, acceptButton(new QPushButton(this))
|
, acceptButton(new QPushButton(this))
|
||||||
, rejectButton(new QPushButton(this))
|
, rejectButton(new QPushButton(this))
|
||||||
, inviteMessageLabel(new CroppingLabel(this))
|
, inviteMessageLabel(new CroppingLabel(this))
|
||||||
|
, widgetLayout(new QHBoxLayout(this))
|
||||||
, inviteInfo(invite)
|
, inviteInfo(invite)
|
||||||
{
|
{
|
||||||
connect(acceptButton, &QPushButton::clicked, [=]() { emit accepted(inviteInfo); });
|
connect(acceptButton, &QPushButton::clicked, [=]() { emit accepted(inviteInfo); });
|
||||||
|
|
|
@ -2063,6 +2063,7 @@ QString Widget::getStatusIconPath(Status status)
|
||||||
case Status::Offline:
|
case Status::Offline:
|
||||||
return ":/img/status/dot_offline.svg";
|
return ":/img/status/dot_offline.svg";
|
||||||
}
|
}
|
||||||
|
assert(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Preparing needed to set correct size of icons for GTK tray backend
|
//Preparing needed to set correct size of icons for GTK tray backend
|
||||||
|
|
Loading…
Reference in New Issue
Block a user