Commit 14c3e865 authored by Andreas Traczyk's avatar Andreas Traczyk

project: header/warnings cleanup

Change-Id: Ie3fb90bd2f55f39c9903ca690881295dca77551b
parent 07f8349e
......@@ -36,5 +36,8 @@ BannedListModel::rowCount(const QModelIndex &index) const
bool
BannedListModel::setData(const QModelIndex& index, const QVariant& value, int role)
{
Q_UNUSED(index);
Q_UNUSED(value);
Q_UNUSED(role);
return 1;
}
\ No newline at end of file
......@@ -144,6 +144,8 @@ CallWidget::CallWidget(QWidget* parent) :
connect(ui->mainActivitySplitter, &QSplitter::splitterMoved,
[this](int pos, int index) {
Q_UNUSED(index);
Q_UNUSED(pos);
QSettings settings;
settings.setValue(SettingsKey::mainSplitterState, ui->mainActivitySplitter->saveState());
});
......@@ -748,7 +750,6 @@ CallWidget::slotVideoViewDestroyed(const std::string& callid)
{
auto convUid = LRCInstance::getSelectedConvUid();
auto currentConversationModel = LRCInstance::getCurrentConversationModel();
auto callModel = LRCInstance::getCurrentCallModel();
auto conversation = Utils::getConversationFromUid(convUid, *currentConversationModel);
if (conversation != currentConversationModel->allFilteredConversations().end() &&
callid != conversation->callId) {
......
......@@ -1322,7 +1322,7 @@ Copy and share it with your friends!
<height>420</height>
</size>
</property>
<layout class="QVBoxLayout" name="callInvite" stretch="0,2,1,2,1,9">
<layout class="QVBoxLayout" name="callInviteLayout" stretch="0,2,1,2,1,9">
<property name="spacing">
<number>0</number>
</property>
......
......@@ -36,8 +36,10 @@ void ConversationsFilterWidget::updateBadges()
updateNotifier(Type::PENDING);
}
void ConversationsFilterWidget::resizeEvent(QResizeEvent * event)
void
ConversationsFilterWidget::resizeEvent(QResizeEvent* event)
{
Q_UNUSED(event);
updateBadges();
}
......
......@@ -869,7 +869,7 @@
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QWidget" name="verticalWidget" native="true">
<widget class="QWidget" name="verticalWidget1" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
......
......@@ -62,6 +62,9 @@ void
RegNameDialog::nameRegistrationResultSlot(const std::string& accountId,
lrc::api::account::RegisterNameStatus status, const std::string& registerdName)
{
Q_UNUSED(accountId);
Q_UNUSED(registerdName);
gif->stop();
if(status == lrc::api::account::RegisterNameStatus::SUCCESS) {
......
......@@ -137,6 +137,7 @@ SettingsWidget::SettingsWidget(QWidget* parent)
accountAddedConnection_ = connect(&LRCInstance::accountModel(),
&lrc::api::NewAccountModel::accountAdded,
[this, toDisconnect](const std::string& accountId) {
Q_UNUSED(accountId);
setConnections();
QObject::disconnect(*toDisconnect);
});
......
......@@ -178,6 +178,7 @@ VideoView::showChatviewIfToggled()
void
VideoView::simulateShowChatview(bool checked)
{
Q_UNUSED(checked);
overlay_->simulateShowChatview(true);
}
......
......@@ -20,12 +20,12 @@
#include <QWidget>
#include <QPainter>
#include <QMutex>
#include <memory>
#include "video/renderer.h"
#include "video/previewmanager.h"
#include "callmodel.h"
class VideoWidget : public QWidget
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment