Skip to content
Snippets Groups Projects
Commit 14c3e865 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

project: header/warnings cleanup

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