Commit a76486c1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: remove extra ;

parent 059c0e43
Pipeline #45512 passed with stage
in 12 minutes and 35 seconds
......@@ -2320,7 +2320,7 @@ void Agenda::setHolidayMask(QVector<bool> *mask)
void Agenda::contentsMousePressEvent(QMouseEvent *event)
{
Q_UNUSED(event);
Q_UNUSED(event)
}
QSize Agenda::sizeHint() const
......
......@@ -1041,7 +1041,7 @@ void AgendaItem::paintEvent(QPaintEvent *ev)
void AgendaItem::drawRoundedRect(QPainter *p, const QRect &rect, bool selected, const QColor &bgColor, bool frame, int ft, bool roundTop, bool roundBottom)
{
Q_UNUSED(ft);
Q_UNUSED(ft)
if (!mValid) {
return;
}
......
......@@ -474,7 +474,7 @@ void AgendaView::Private::calendarIncidenceChanged(const KCalendarCore::Incidenc
void AgendaView::Private::calendarIncidenceDeleted(const KCalendarCore::Incidence::Ptr &incidence,
const KCalendarCore::Calendar *calendar)
{
Q_UNUSED(calendar);
Q_UNUSED(calendar)
if (!incidence || incidence->uid().isEmpty()) {
qCWarning(CALENDARVIEW_LOG) << "invalid incidence or empty uid: " << incidence;
Q_ASSERT(false);
......@@ -1647,7 +1647,7 @@ QDate AgendaView::endDate() const
void AgendaView::showDates(const QDate &start, const QDate &end, const QDate &preferredMonth)
{
Q_UNUSED(preferredMonth);
Q_UNUSED(preferredMonth)
if (!d->mSelectedDates.isEmpty()
&& d->mSelectedDates.first() == start
&& d->mSelectedDates.last() == end) {
......@@ -1673,7 +1673,7 @@ void AgendaView::showDates(const QDate &start, const QDate &end, const QDate &pr
void AgendaView::showIncidences(const Akonadi::Item::List &incidences, const QDate &date)
{
Q_UNUSED(date);
Q_UNUSED(date)
if (!calendar()) {
qCCritical(CALENDARVIEW_LOG) << "No Calendar set";
......@@ -1943,9 +1943,9 @@ void AgendaView::updateEventIndicatorBottom(int newY)
void AgendaView::slotIncidencesDropped(const QList<QUrl> &items, const QPoint &gpos, bool allDay)
{
Q_UNUSED(items);
Q_UNUSED(gpos);
Q_UNUSED(allDay);
Q_UNUSED(items)
Q_UNUSED(gpos)
Q_UNUSED(allDay)
#ifdef AKONADI_PORT_DISABLED // one item -> multiple items, Incidence* -> akonadi item url
// (we might have to fetch the items here first!)
......
......@@ -328,7 +328,7 @@ QSize TimeLabels::sizeHint() const
void TimeLabels::contextMenuEvent(QContextMenuEvent *event)
{
Q_UNUSED(event);
Q_UNUSED(event)
QMenu popup(this);
QAction *editTimeZones = popup.addAction(QIcon::fromTheme(QStringLiteral("document-properties")),
......
......@@ -435,9 +435,9 @@ void EventView::clearSelection()
bool EventView::eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay) const
{
Q_UNUSED(startDt);
Q_UNUSED(endDt);
Q_UNUSED(allDay);
Q_UNUSED(startDt)
Q_UNUSED(endDt)
Q_UNUSED(allDay)
return false;
}
......@@ -458,7 +458,7 @@ void EventView::doSaveConfig(KConfigGroup &)
QPair<QDateTime, QDateTime> EventView::actualDateRange(const QDateTime &start, const QDateTime &end,
const QDate &preferredMonth) const
{
Q_UNUSED(preferredMonth);
Q_UNUSED(preferredMonth)
return qMakePair(start, end);
}
......@@ -655,7 +655,7 @@ QString EventView::iconForItem(const Akonadi::Item &item)
void EventView::onCollectionChanged(const Akonadi::Collection &collection, const QSet<QByteArray> &changedAttributes)
{
Q_UNUSED(collection);
Q_UNUSED(collection)
if (changedAttributes.contains("AccessRights")) {
setChanges(changes() | EventViews::EventView::ResourcesChanged);
updateView();
......
......@@ -205,7 +205,7 @@ JournalFrame::~JournalFrame()
bool JournalFrame::eventFilter(QObject *object, QEvent *event)
{
Q_UNUSED(object);
Q_UNUSED(object)
// object is our QTextBrowser
if (!mJournal.isValid()) {
......
......@@ -148,7 +148,7 @@ void JournalView::showDates(const QDate &start, const QDate &end, const QDate &)
void JournalView::showIncidences(const Akonadi::Item::List &incidences, const QDate &date)
{
Q_UNUSED(date);
Q_UNUSED(date)
clearEntries();
for (const Akonadi::Item &i : incidences) {
if (const KCalendarCore::Journal::Ptr j = CalendarSupport::journal(i)) {
......@@ -189,7 +189,7 @@ void JournalView::newJournal()
bool JournalView::eventFilter(QObject *object, QEvent *event)
{
Q_UNUSED(object);
Q_UNUSED(object)
switch (event->type()) {
case QEvent::MouseButtonDblClick:
Q_EMIT newJournalSignal(QDate());
......
......@@ -362,7 +362,7 @@ void ListView::updateView()
void ListView::showDates(const QDate &start, const QDate &end, const QDate &preferredMonth)
{
Q_UNUSED(preferredMonth);
Q_UNUSED(preferredMonth)
clear();
d->mStartDate = start;
......
......@@ -32,8 +32,8 @@ QRectF ScrollIndicator::boundingRect() const
void ScrollIndicator::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
Q_UNUSED(option);
Q_UNUSED(widget);
Q_UNUSED(option)
Q_UNUSED(widget)
painter->setRenderHint(QPainter::Antialiasing);
......
......@@ -456,7 +456,7 @@ void IncidenceMonthItem::updateDates(int startOffset, int endOffset)
void IncidenceMonthItem::updateSelection(const Akonadi::Item &incidence, const QDate &date)
{
Q_UNUSED(date);
Q_UNUSED(date)
setSelected(incidence == akonadiItem());
}
......@@ -718,14 +718,14 @@ bool HolidayMonthItem::greaterThanFallback(const MonthItem *other) const
void HolidayMonthItem::finalizeMove(const QDate &newStartDate)
{
Q_UNUSED(newStartDate);
Q_UNUSED(newStartDate)
Q_ASSERT(false);
}
void HolidayMonthItem::finalizeResize(const QDate &newStartDate, const QDate &newEndDate)
{
Q_UNUSED(newStartDate);
Q_UNUSED(newEndDate);
Q_UNUSED(newStartDate)
Q_UNUSED(newEndDate)
Q_ASSERT(false);
}
......
......@@ -361,7 +361,7 @@ public:
QString text(bool end) const override
{
Q_UNUSED(end);
Q_UNUSED(end)
return mName;
}
......
......@@ -412,7 +412,7 @@ int MonthScene::totalHeight()
void MonthScene::wheelEvent(QGraphicsSceneWheelEvent *event)
{
Q_UNUSED(event); // until we figure out what to do in here
Q_UNUSED(event) // until we figure out what to do in here
/* int numDegrees = -event->delta() / 8;
int numSteps = numDegrees / 15;
......
......@@ -78,7 +78,7 @@ MonthViewPrivate::MonthViewPrivate(MonthView *qq)
void MonthViewPrivate::addIncidence(const Akonadi::Item &incidence)
{
Q_UNUSED(incidence);
Q_UNUSED(incidence)
//TODO: add some more intelligence here...
q->setChanges(q->changes() | EventView::IncidencesAdded);
reloadTimer.start(50);
......@@ -132,7 +132,7 @@ void MonthViewPrivate::calendarIncidenceChanged(const KCalendarCore::Incidence::
void MonthViewPrivate::calendarIncidenceDeleted(const KCalendarCore::Incidence::Ptr &incidence, const KCalendarCore::Calendar *calendar)
{
Q_UNUSED(calendar);
Q_UNUSED(calendar)
Q_ASSERT(!incidence->uid().isEmpty());
scene->removeIncidence(incidence->uid());
}
......@@ -321,14 +321,14 @@ bool MonthView::eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &al
void MonthView::showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
{
Q_UNUSED(incidenceList);
Q_UNUSED(date);
Q_UNUSED(incidenceList)
Q_UNUSED(date)
}
void MonthView::changeIncidenceDisplay(const Akonadi::Item &incidence, int action)
{
Q_UNUSED(incidence);
Q_UNUSED(action);
Q_UNUSED(incidence)
Q_UNUSED(action)
//TODO: add some more intelligence here...
......@@ -426,9 +426,9 @@ void MonthView::moveFwdMonth()
void MonthView::showDates(const QDate &start, const QDate &end, const QDate &preferedMonth)
{
Q_UNUSED(start);
Q_UNUSED(end);
Q_UNUSED(preferedMonth);
Q_UNUSED(start)
Q_UNUSED(end)
Q_UNUSED(preferedMonth)
d->triggerDelayedReload(DatesChanged);
}
......
......@@ -402,7 +402,7 @@ int MultiAgendaView::currentDateCount() const
void MultiAgendaView::showDates(const QDate &start, const QDate &end, const QDate &preferredMonth)
{
Q_UNUSED(preferredMonth);
Q_UNUSED(preferredMonth)
d->mStartDate = start;
d->mEndDate = end;
slotResizeScrollView();
......
......@@ -280,7 +280,7 @@ int TimelineView::currentDateCount() const
void TimelineView::showDates(const QDate &start, const QDate &end, const QDate &preferredMonth)
{
Q_UNUSED(preferredMonth);
Q_UNUSED(preferredMonth)
Q_ASSERT_X(calendar(), "showDates()", "set a Akonadi::ETMCalendar");
Q_ASSERT_X(start.isValid(), "showDates()", "start date must be valid");
Q_ASSERT_X(end.isValid(), "showDates()", "end date must be valid");
......@@ -366,8 +366,8 @@ void TimelineView::showDates(const QDate &start, const QDate &end, const QDate &
void TimelineView::showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
{
Q_UNUSED(incidenceList);
Q_UNUSED(date);
Q_UNUSED(incidenceList)
Q_UNUSED(date)
}
void TimelineView::updateView()
......
......@@ -226,7 +226,7 @@ void IncidenceTreeModel::Private::onDataChanged(const QModelIndex &begin, const
const bool res = q->beginMoveRows(/**fromParent*/ index.parent(), fromRow,
fromRow, newParentIndex, toRow);
Q_ASSERT(res);
Q_UNUSED(res);
Q_UNUSED(res)
// Now that beginmoveRows() was called, we can do the actual moving:
if (newParentNode) {
......@@ -268,7 +268,7 @@ void IncidenceTreeModel::Private::onRowsAboutToBeInserted(const QModelIndex &par
{
// We are a reparenting proxy, the source proxy is flat
Q_ASSERT(!parent.isValid());
Q_UNUSED(parent);
Q_UNUSED(parent)
// Nothing to do yet. We don't know if all the new incidences in this range belong to the same
// parent yet.
}
......@@ -299,7 +299,7 @@ void IncidenceTreeModel::Private::onRowsInserted(const QModelIndex &parent, int
//QElapsedTimer timer;
//timer.start();
Q_ASSERT(!parent.isValid());
Q_UNUSED(parent);
Q_UNUSED(parent)
Q_ASSERT(begin <= end);
PreNode::List nodes;
for (int i = begin; i <= end; ++i) {
......@@ -454,7 +454,7 @@ void IncidenceTreeModel::Private::onRowsAboutToBeRemoved(const QModelIndex &pare
//QElapsedTimer timer;
//timer.start();
Q_ASSERT(!parent.isValid());
Q_UNUSED(parent);
Q_UNUSED(parent)
Q_ASSERT(begin <= end);
// First, gather nodes to remove
......@@ -548,9 +548,9 @@ void IncidenceTreeModel::Private::removeNode(const Node::Ptr &node)
void IncidenceTreeModel::Private::onRowsRemoved(const QModelIndex &parent, int begin, int end)
{
Q_UNUSED(parent);
Q_UNUSED(begin);
Q_UNUSED(end);
Q_UNUSED(parent)
Q_UNUSED(begin)
Q_UNUSED(end)
// Nothing to do here, see comment on ::onRowsAboutToBeRemoved()
}
......
......@@ -88,8 +88,8 @@ void TodoCompleteDelegate::initStyleOptionProgressBar(
QWidget *TodoCompleteDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(option);
Q_UNUSED(index);
Q_UNUSED(option)
Q_UNUSED(index)
auto slider = new TodoCompleteSlider(parent);
......@@ -115,7 +115,7 @@ void TodoCompleteDelegate::setModelData(QWidget *editor, QAbstractItemModel *mod
void TodoCompleteDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(index);
Q_UNUSED(index)
editor->setGeometry(option.rect);
}
......@@ -147,8 +147,8 @@ TodoPriorityDelegate::TodoPriorityDelegate(QObject *parent)
QWidget *TodoPriorityDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(option);
Q_UNUSED(index);
Q_UNUSED(option)
Q_UNUSED(index)
auto combo = new QComboBox(parent);
......@@ -182,7 +182,7 @@ void TodoPriorityDelegate::setModelData(QWidget *editor, QAbstractItemModel *mod
void TodoPriorityDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(index);
Q_UNUSED(index)
editor->setGeometry(option.rect);
}
......@@ -197,8 +197,8 @@ TodoDueDateDelegate::TodoDueDateDelegate(QObject *parent)
QWidget *TodoDueDateDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(option);
Q_UNUSED(index);
Q_UNUSED(option)
Q_UNUSED(index)
auto dateEdit = new KDateComboBox(parent);
......@@ -221,7 +221,7 @@ void TodoDueDateDelegate::setModelData(QWidget *editor, QAbstractItemModel *mode
void TodoDueDateDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(index);
Q_UNUSED(index)
editor->setGeometry(QStyle::alignedRect(QApplication::layoutDirection(), Qt::AlignCenter,
editor->size(), option.rect));
}
......@@ -237,8 +237,8 @@ TodoCategoriesDelegate::TodoCategoriesDelegate(QObject *parent)
QWidget *TodoCategoriesDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(option);
Q_UNUSED(index);
Q_UNUSED(option)
Q_UNUSED(index)
return new Akonadi::TagSelectionComboBox(parent);
}
......@@ -257,7 +257,7 @@ void TodoCategoriesDelegate::setModelData(QWidget *editor, QAbstractItemModel *m
void TodoCategoriesDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
Q_UNUSED(index);
Q_UNUSED(index)
editor->setGeometry(option.rect);
}
......
......@@ -131,11 +131,11 @@ void TodoModel::Private::onRowsAboutToBeMoved(const QModelIndex &sourceParent, i
int sourceEnd, const QModelIndex &destinationParent,
int destinationRow)
{
Q_UNUSED(sourceParent);
Q_UNUSED(sourceStart);
Q_UNUSED(sourceEnd);
Q_UNUSED(destinationParent);
Q_UNUSED(destinationRow);
Q_UNUSED(sourceParent)
Q_UNUSED(sourceStart)
Q_UNUSED(sourceEnd)
Q_UNUSED(destinationParent)
Q_UNUSED(destinationRow)
/* Disabled for now, layoutAboutToBeChanged() is emitted
q->beginMoveRows( q->mapFromSource( sourceParent ), sourceStart, sourceEnd,
q->mapFromSource( destinationParent ), destinationRow );
......@@ -680,8 +680,8 @@ QMimeData *TodoModel::mimeData(const QModelIndexList &indexes) const
bool TodoModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
{
Q_UNUSED(row);
Q_UNUSED(column);
Q_UNUSED(row)
Q_UNUSED(column)
if (action != Qt::MoveAction) {
qCWarning(CALENDARVIEW_LOG) << "No action other than MoveAction currently supported!"; //TODO
......
......@@ -602,14 +602,14 @@ void TodoView::setIncidenceChanger(Akonadi::IncidenceChanger *changer)
void TodoView::showDates(const QDate &start, const QDate &end, const QDate &)
{
// There is nothing to do here for the Todo View
Q_UNUSED(start);
Q_UNUSED(end);
Q_UNUSED(start)
Q_UNUSED(end)
}
void TodoView::showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
{
Q_UNUSED(incidenceList);
Q_UNUSED(date);
Q_UNUSED(incidenceList)
Q_UNUSED(date)
}
void TodoView::updateView()
......@@ -764,7 +764,7 @@ void TodoView::contextMenu(const QPoint &pos)
void TodoView::selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
{
Q_UNUSED(deselected);
Q_UNUSED(deselected)
QModelIndexList selection = selected.indexes();
if (selection.isEmpty() || !selection[0].isValid()) {
Q_EMIT incidenceSelected(Akonadi::Item(), QDate());
......
......@@ -35,7 +35,7 @@ bool TodoViewView::isEditing(const QModelIndex &index) const
bool TodoViewView::eventFilter(QObject *watched, QEvent *event)
{
Q_UNUSED(watched);
Q_UNUSED(watched)
if (event->type() == QEvent::ContextMenu) {
auto e = static_cast<QContextMenuEvent *>(event);
......
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