1
0
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:
sudden6 2017-03-19 14:36:01 +01:00
parent f07daaf159
commit f0cec44a8c
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
4 changed files with 6 additions and 4 deletions

View File

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

View File

@ -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,

View File

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

View File

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