Commit 540ded8e authored by David Jarvie's avatar David Jarvie
Browse files

clazy etc fixes

parent 04e3baee
Pipeline #34511 failed with stage
in 76 minutes and 54 seconds
/*
* buttongroup.cpp - QButtonGroup with an extra signal
* Program: kalarm
* SPDX-FileCopyrightText: 2002, 2004, 2005, 2008 David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2002-2020 David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
......@@ -14,7 +14,7 @@
ButtonGroup::ButtonGroup(QObject* parent)
: QButtonGroup(parent)
{
connect(this, SIGNAL(buttonClicked(QAbstractButton*)), SIGNAL(buttonSet(QAbstractButton*)));
connect(this, QOverload<QAbstractButton*>::of(&QButtonGroup::buttonClicked), this, &ButtonGroup::buttonSet);
}
/******************************************************************************
......
......@@ -172,7 +172,7 @@ void LineEdit::dropEvent(QDropEvent* e)
}
}
if (newEmails.count())
if (!newEmails.isEmpty())
{
newText = newEmails.join(QLatin1Char(','));
const int c = cursorPosition();
......
......@@ -41,7 +41,7 @@ bool ShellProcess::start(OpenMode openMode)
return false;
}
connect(this, &QIODevice::bytesWritten, this, &ShellProcess::writtenStdin);
connect(this, SIGNAL(finished(int,QProcess::ExitStatus)), SLOT(slotExited(int,QProcess::ExitStatus)));
connect(this, &QProcess::finished, this, &ShellProcess::slotExited);
connect(this, &QProcess::readyReadStandardOutput, this, &ShellProcess::stdoutReady);
connect(this, &QProcess::readyReadStandardError, this, &ShellProcess::stderrReady);
const QStringList args{ QStringLiteral("-c"), mCommand };
......@@ -94,8 +94,8 @@ void ShellProcess::writeStdin(const char* buffer, int bufflen)
mStdinQueue.enqueue(scopy);
if (doWrite)
{
mStdinBytes = mStdinQueue.head().length();
write(mStdinQueue.head());
mStdinBytes = qAsConst(mStdinQueue).head().length();
write(qAsConst(mStdinQueue).head());
}
}
......@@ -114,8 +114,8 @@ void ShellProcess::writtenStdin(qint64 bytes)
mStdinQueue.dequeue(); // free the buffer which has now been written
if (!mStdinQueue.isEmpty())
{
mStdinBytes = mStdinQueue.head().length();
write(mStdinQueue.head());
mStdinBytes = qAsConst(mStdinQueue).head().length();
write(qAsConst(mStdinQueue).head());
}
else if (mStdinExit)
kill();
......
/*
* spinbox.cpp - spin box with read-only option and shift-click step value
* Program: kalarm
* SPDX-FileCopyrightText: 2002-2019 David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2002-2020 David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
......@@ -50,7 +50,7 @@ void SpinBox::init()
// Detect when the text field is edited
connect(lineEdit(), &QLineEdit::textChanged, this, &SpinBox::textEdited);
connect(this, static_cast<void (SpinBox::*)(int)>(&SpinBox::valueChanged), this, &SpinBox::valueChange);
connect(this, &SpinBox::valueChanged, this, &SpinBox::valueChange);
}
void SpinBox::setReadOnly(bool ro)
......@@ -112,8 +112,8 @@ void SpinBox::stepBy(int steps)
void SpinBox::addValue(int change, bool current)
{
int newval = value() + change;
int maxval = current ? QSpinBox::maximum() : mMaxValue;
int minval = current ? QSpinBox::minimum() : mMinValue;
const int maxval = current ? QSpinBox::maximum() : mMaxValue;
const int minval = current ? QSpinBox::minimum() : mMinValue;
if (wrapping())
{
int range = maxval - minval + 1;
......@@ -136,7 +136,7 @@ void SpinBox::valueChange()
{
if (!mSuppressSignals)
{
int val = value();
const int val = value();
if (mShiftMinBound && val >= mMinValue)
{
// Reinstate the minimum bound now that the value has returned to the normal range.
......@@ -177,7 +177,7 @@ bool SpinBox::eventFilter(QObject* obj, QEvent* e)
{
// Up and down arrow keys step the value
QKeyEvent* ke = (QKeyEvent*)e;
int key = ke->key();
const int key = ke->key();
if (key == Qt::Key_Up)
step = 1;
else if (key == Qt::Key_Down)
......@@ -201,7 +201,7 @@ bool SpinBox::eventFilter(QObject* obj, QEvent* e)
if ((ie->modifiers() & (Qt::ShiftModifier | Qt::AltModifier)) == Qt::ShiftModifier)
{
// Shift stepping
int val = value();
const int val = value();
if (step > 0)
step = mLineShiftStep - val % mLineShiftStep;
else
......@@ -251,7 +251,7 @@ bool SpinBox::clickEvent(QMouseEvent* e)
e->accept();
return true;
}
bool shift = (e->modifiers() & (Qt::ShiftModifier | Qt::AltModifier)) == Qt::ShiftModifier;
const bool shift = (e->modifiers() & (Qt::ShiftModifier | Qt::AltModifier)) == Qt::ShiftModifier;
if (setShiftStepping(shift, mCurrentButton))
{
e->accept();
......@@ -265,7 +265,7 @@ void SpinBox::wheelEvent(QWheelEvent* e)
{
if (mReadOnly)
return; // discard the event
bool shift = (e->modifiers() & (Qt::ShiftModifier | Qt::AltModifier)) == Qt::ShiftModifier;
const bool shift = (e->modifiers() & (Qt::ShiftModifier | Qt::AltModifier)) == Qt::ShiftModifier;
if (setShiftStepping(shift, (e->angleDelta().y() > 0 ? UP : DOWN)))
{
e->accept();
......@@ -294,7 +294,7 @@ void SpinBox::mouseMoveEvent(QMouseEvent* e)
// The mouse has moved to a new spin button.
// Set normal or shift stepping as appropriate.
mCurrentButton = newButton;
bool shift = (e->modifiers() & (Qt::ShiftModifier | Qt::AltModifier)) == Qt::ShiftModifier;
const bool shift = (e->modifiers() & (Qt::ShiftModifier | Qt::AltModifier)) == Qt::ShiftModifier;
if (setShiftStepping(shift, mCurrentButton))
{
e->accept();
......@@ -319,15 +319,15 @@ void SpinBox::keyReleaseEvent(QKeyEvent* e)
bool SpinBox::keyEvent(QKeyEvent* e)
{
int key = e->key();
int state = e->modifiers();
const int key = e->key();
const int state = e->modifiers();
if ((QApplication::mouseButtons() & Qt::LeftButton)
&& (key == Qt::Key_Shift || key == Qt::Key_Alt))
{
// The left mouse button is down, and the Shift or Alt key has changed
if (mReadOnly)
return true; // discard the event
bool shift = (state & (Qt::ShiftModifier | Qt::AltModifier)) == Qt::ShiftModifier;
const bool shift = (state & (Qt::ShiftModifier | Qt::AltModifier)) == Qt::ShiftModifier;
if ((!shift && mShiftMouse) || (shift && !mShiftMouse))
{
// The effective shift state has changed.
......@@ -356,9 +356,9 @@ bool SpinBox::setShiftStepping(bool shift, int currentButton)
* Then, if the mouse button is held down, the spin widget will continue to
* step by the shift amount.
*/
int val = value();
int step = (currentButton == UP) ? mLineShiftStep : (currentButton == DOWN) ? -mLineShiftStep : 0;
int adjust = shiftStepAdjustment(val, step);
const int val = value();
const int step = (currentButton == UP) ? mLineShiftStep : (currentButton == DOWN) ? -mLineShiftStep : 0;
const int adjust = shiftStepAdjustment(val, step);
mShiftMouse = true;
if (adjust)
{
......@@ -374,8 +374,8 @@ bool SpinBox::setShiftStepping(bool shift, int currentButton)
// to the minimum value if that has a special text unless it is
// already at the minimum value + 1.
int newval = val + adjust + step;
int svt = specialValueText().isEmpty() ? 0 : 1;
int minval = mMinValue + svt;
const int svt = specialValueText().isEmpty() ? 0 : 1;
const int minval = mMinValue + svt;
if (newval <= minval || newval >= mMaxValue)
{
// Stepping to the minimum or maximum value
......@@ -390,7 +390,7 @@ bool SpinBox::setShiftStepping(bool shift, int currentButton)
// If the interim value will lie outside the spinbox's range,
// temporarily adjust the range to allow the value to be set.
int tempval = val + adjust;
const int tempval = val + adjust;
if (tempval < mMinValue)
{
QSpinBox::setMinimum(tempval);
......@@ -405,7 +405,7 @@ bool SpinBox::setShiftStepping(bool shift, int currentButton)
// Don't process changes since this new value will be stepped immediately
mSuppressSignals = true;
bool blocked = signalsBlocked();
const bool blocked = signalsBlocked();
blockSignals(true);
addValue(adjust, true);
blockSignals(blocked);
......
......@@ -80,9 +80,8 @@ void SpinBox2::init()
mSpinMirror = new SpinMirror(mUpdown2, mSpinbox, this);
mSpinbox->installEventFilter(this);
mUpdown2->installEventFilter(this);
connect(mSpinbox, SIGNAL(valueChanged(int)), SLOT(valueChange()));
connect(mSpinbox, SIGNAL(valueChanged(int)), SIGNAL(valueChanged(int)));
connect(mSpinbox, SIGNAL(valueChanged(QString)), SIGNAL(valueChanged(QString)));
connect(mSpinbox, &QSpinBox::valueChanged, this, &SpinBox2::valueChange);
connect(mSpinbox, &QSpinBox::valueChanged, this, &SpinBox2::valueChanged);
connect(mUpdown2, &SpinBox::stepped, this, &SpinBox2::stepPage);
connect(mUpdown2, &ExtraSpinBox::painted, this, &SpinBox2::paintTimer);
}
......
This diff is collapsed.
/*
* stackedwidgets.cpp - group of stacked widgets
* Program: kalarm
* SPDX-FileCopyrightText: 2008 David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2008, 2020 David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
......@@ -26,11 +26,8 @@ StackedScrollWidget::StackedScrollWidget(StackedScrollGroup* group, QWidget* par
}
StackedScrollGroup::StackedScrollGroup(QDialog* dlg, QObject* tabParent)
: StackedGroupT<QScrollArea>(tabParent),
mDialog(dlg),
mMinHeight(-1),
mHeightReduction(0),
mSized(false)
: StackedGroupT<QScrollArea>(tabParent)
, mDialog(dlg)
{
}
......@@ -44,7 +41,7 @@ StackedScrollGroup::StackedScrollGroup(QDialog* dlg, QObject* tabParent)
*/
QSize StackedScrollGroup::minimumSizeHint() const
{
QSize s = maxMinimumSizeHint();
const QSize s = maxMinimumSizeHint();
if (!s.isEmpty() && mMinHeight > 0 && mMinHeight < s.height())
return QSize(s.width() + mWidgets[0]->style()->pixelMetric(QStyle::PM_ScrollBarExtent), mMinHeight);
return s;
......@@ -56,12 +53,12 @@ QSize StackedScrollGroup::minimumSizeHint() const
QSize StackedScrollGroup::maxMinimumSizeHint() const
{
QSize sz;
for (int i = 0, count = mWidgets.count(); i < count; ++i)
for (const auto& sw : mWidgets)
{
QWidget* w = static_cast<StackedScrollWidget*>(mWidgets[i])->widget();
QWidget* w = static_cast<StackedScrollWidget*>(sw)->widget();
if (!w)
return QSize();
QSize s = w->minimumSizeHint();
const QSize s = w->minimumSizeHint();
if (!s.isValid())
return QSize();
sz = sz.expandedTo(s);
......@@ -85,18 +82,18 @@ QSize StackedScrollGroup::adjustSize(bool force)
// scroll widget contents widgets.
mMinHeight = -1;
mHeightReduction = 0;
QSize s = maxMinimumSizeHint();
const QSize s = maxMinimumSizeHint();
if (s.isEmpty())
return QSize();
int maxTabHeight = s.height();
for (int i = 0, count = mWidgets.count(); i < count; ++i)
const int maxTabHeight = s.height();
for (auto& sw : mWidgets)
{
mWidgets[i]->setMinimumHeight(maxTabHeight);
QWidget* w = static_cast<StackedScrollWidget*>(mWidgets[i])->widget();
sw->setMinimumHeight(maxTabHeight);
QWidget* w = static_cast<StackedScrollWidget*>(sw)->widget();
if (w)
w->resize(s);
}
for (QWidget* w = mWidgets[0]->parentWidget(); w && w != mDialog; w = w->parentWidget())
for (QWidget* w = mWidgets.at(0)->parentWidget(); w && w != mDialog; w = w->parentWidget())
{
w->setMinimumHeight(0);
w->adjustSize();
......@@ -110,12 +107,12 @@ QSize StackedScrollGroup::adjustSize(bool force)
// available, so use a guess of 25 pixels.
decoration = 25;
}
int desk = Desktop::workArea().height();
const int desk = Desktop::workArea().height();
// There is no stored size, or the deferral group is visible.
// Allow the tab contents to be scrolled vertically if that is necessary
// to avoid the dialog exceeding the screen height.
QSize dlgsize = mDialog->QDialog::minimumSizeHint();
int y = dlgsize.height() + decoration - desk;
const int y = dlgsize.height() + decoration - desk;
if (y > 0)
{
mHeightReduction = y;
......@@ -123,18 +120,18 @@ QSize StackedScrollGroup::adjustSize(bool force)
qCDebug(KALARM_LOG) << "StackedScrollGroup::adjustSize: Scrolling: max tab height=" << maxTabHeight << ", reduction=" << mHeightReduction << "-> min tab height=" << mMinHeight;
if (mMinHeight > 0)
{
for (int i = 0, count = mWidgets.count(); i < count; ++i)
for (auto& sw : mWidgets)
{
mWidgets[i]->setMinimumHeight(mMinHeight);
mWidgets[i]->resize(QSize(mWidgets[i]->width(), mMinHeight));
sw->setMinimumHeight(mMinHeight);
sw->resize(QSize(sw->width(), mMinHeight));
}
}
mSized = true;
QSize s = mWidgets[0]->parentWidget()->sizeHint();
QSize s = mWidgets.at(0)->parentWidget()->sizeHint();
if (s.height() < mMinHeight)
s.setHeight(mMinHeight);
mWidgets[0]->parentWidget()->resize(s);
for (QWidget* w = mWidgets[0]->parentWidget(); w && w != mDialog; w = w->parentWidget())
mWidgets.at(0)->parentWidget()->resize(s);
for (QWidget* w = mWidgets.at(0)->parentWidget(); w && w != mDialog; w = w->parentWidget())
w->setMinimumHeight(qMin(w->minimumSizeHint().height(), w->sizeHint().height()));
dlgsize.setHeight(dlgsize.height() - mHeightReduction);
s = mDialog->QDialog::minimumSizeHint();
......
/*
* stackedwidgets.h - group of stacked widgets
* Program: kalarm
* SPDX-FileCopyrightText: 2008 David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2008, 2020 David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
......@@ -9,7 +9,7 @@
#ifndef STACKEDWIDGETS_H
#define STACKEDWIDGETS_H
#include <QList>
#include <QVector>
#include <QScrollArea>
class QDialog;
......@@ -24,23 +24,23 @@ template <class T> class StackedGroupT;
template <class T>
class StackedWidgetT : public T
{
public:
/** Constructor.
* @param parent The parent object of this widget.
* @param group The stack group to insert this widget into.
*/
explicit StackedWidgetT(StackedGroupT<T>* group, QWidget* parent = nullptr)
: T(parent),
mGroup(group)
{
mGroup->addWidget(this);
}
~StackedWidgetT() { mGroup->removeWidget(this); }
QSize sizeHint() const override { return minimumSizeHint(); }
QSize minimumSizeHint() const override { return mGroup->minimumSizeHint(); }
private:
StackedGroupT<T>* mGroup;
public:
/** Constructor.
* @param parent The parent object of this widget.
* @param group The stack group to insert this widget into.
*/
explicit StackedWidgetT(StackedGroupT<T>* group, QWidget* parent = nullptr)
: T(parent),
mGroup(group)
{
mGroup->addWidget(this);
}
~StackedWidgetT() { mGroup->removeWidget(this); }
QSize sizeHint() const override { return minimumSizeHint(); }
QSize minimumSizeHint() const override { return mGroup->minimumSizeHint(); }
private:
StackedGroupT<T>* mGroup;
};
/**
......@@ -55,22 +55,22 @@ class StackedWidgetT : public T
template <class T>
class StackedGroupT : public QObject
{
public:
explicit StackedGroupT(QObject* parent = nullptr) : QObject(parent) {}
void addWidget(StackedWidgetT<T>* w) { mWidgets += w; }
void removeWidget(StackedWidgetT<T>* w) { mWidgets.removeAll(w); }
virtual QSize minimumSizeHint() const;
protected:
QList<StackedWidgetT<T>*> mWidgets;
public:
explicit StackedGroupT(QObject* parent = nullptr) : QObject(parent) {}
void addWidget(StackedWidgetT<T>* w) { mWidgets += w; }
void removeWidget(StackedWidgetT<T>* w) { mWidgets.removeAll(w); }
virtual QSize minimumSizeHint() const;
protected:
QVector<StackedWidgetT<T>*> mWidgets;
};
template <class T>
QSize StackedGroupT<T>::minimumSizeHint() const
{
QSize sz;
for (int i = 0, count = mWidgets.count(); i < count; ++i)
sz = sz.expandedTo(mWidgets[i]->T::minimumSizeHint());
for (const auto& w : mWidgets)
sz = sz.expandedTo(w->T::minimumSizeHint());
return sz;
}
......@@ -90,9 +90,9 @@ class StackedScrollGroup;
*/
class StackedScrollWidget : public StackedWidgetT<QScrollArea>
{
public:
explicit StackedScrollWidget(StackedScrollGroup* group, QWidget* parent = nullptr);
QWidget* widget() const { return viewport()->findChild<QWidget*>(); }
public:
explicit StackedScrollWidget(StackedScrollGroup* group, QWidget* parent = nullptr);
QWidget* widget() const { return viewport()->findChild<QWidget*>(); }
};
/**
......@@ -103,21 +103,21 @@ class StackedScrollWidget : public StackedWidgetT<QScrollArea>
*/
class StackedScrollGroup : public StackedGroupT<QScrollArea>
{
public:
explicit StackedScrollGroup(QDialog*, QObject* tabParent);
QSize minimumSizeHint() const override;
int heightReduction() const { return mHeightReduction; }
QSize adjustSize(bool force = false);
void setSized() { mSized = true; }
bool sized() const { return mSized; }
private:
QSize maxMinimumSizeHint() const;
QDialog* mDialog;
int mMinHeight;
int mHeightReduction;
bool mSized;
public:
StackedScrollGroup(QDialog*, QObject* tabParent);
QSize minimumSizeHint() const override;
int heightReduction() const { return mHeightReduction; }
QSize adjustSize(bool force = false);
void setSized() { mSized = true; }
bool sized() const { return mSized; }
private:
QSize maxMinimumSizeHint() const;
QDialog* mDialog;
int mMinHeight {-1};
int mHeightReduction {0};
bool mSized {false};
};
#endif // STACKEDWIDGETS_H
......
/*
* synchtimer.cpp - timers which synchronize to time boundaries
* Program: kalarm
* SPDX-FileCopyrightText: 2004, 2005, 2007-2009 David Jarvie <djarvie@kde.org>
* SPDX-FileCopyrightText: 2004-2020 David Jarvie <djarvie@kde.org>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
......@@ -66,7 +66,7 @@ void SynchTimer::disconnecT(QObject* receiver, const char* member)
{
for (int i = 0; i < mConnections.count(); )
{
if (mConnections[i].receiver == receiver)
if (mConnections.at(i).receiver == receiver)
mConnections.removeAt(i);
else
++i;
......@@ -114,11 +114,11 @@ void MinuteTimer::slotTimer()
= Application-wide timer synchronized to midnight.
=============================================================================*/
QList<DailyTimer*> DailyTimer::mFixedTimers;
QVector<DailyTimer*> DailyTimer::mFixedTimers;
DailyTimer::DailyTimer(const QTime& timeOfDay, bool fixed)
: mTime(timeOfDay),
mFixed(fixed)
: mTime(timeOfDay)
, mFixed(fixed)
{
if (fixed)
mFixedTimers.append(this);
......@@ -132,9 +132,9 @@ DailyTimer::~DailyTimer()
DailyTimer* DailyTimer::fixedInstance(const QTime& timeOfDay, bool create)
{
for (int i = 0, end = mFixedTimers.count(); i < end; ++i)
if (mFixedTimers[i]->mTime == timeOfDay)
return mFixedTimers[i];
for (DailyTimer* timer : mFixedTimers)
if (timer->mTime == timeOfDay)
return timer;
return create ? new DailyTimer(timeOfDay, true) : nullptr;
}
......
......@@ -12,7 +12,7 @@
/* @file synchtimer.h - timers which synchronize to time boundaries */
#include <QObject>
#include <QList>
#include <QVector>
#include <QByteArray>
#include <QTime>
#include <QDate>
......@@ -56,7 +56,7 @@ private Q_SLOTS:
void slotReceiverGone(QObject* r) { disconnecT(r); }
private:
QList<Connection> mConnections; // list of current clients
QVector<Connection> mConnections; // list of current clients
};
......@@ -69,12 +69,14 @@ class MinuteTimer : public SynchTimer
Q_OBJECT
public:
virtual ~MinuteTimer() { mInstance = nullptr; }
/** Connect to the timer signal.
* @param receiver Receiving object.
* @param member Slot to activate.
*/
static void connect(QObject* receiver, const char* member)
{ instance()->connecT(receiver, member); }
/** Disconnect from the timer signal.
* @param receiver Receiving object.
* @param member Slot to disconnect. If null, all slots belonging to
......@@ -109,6 +111,7 @@ class DailyTimer : public SynchTimer
Q_OBJECT
public:
~DailyTimer() override;
/** Connect to the timer signal which triggers at the given fixed time of day.
* A new timer is created if necessary.
* @param timeOfDay Time at which the timer is to trigger.
......@@ -117,6 +120,7 @@ public:
*/
static void connect(const QTime& timeOfDay, QObject* receiver, const char* member)
{ fixedInstance(timeOfDay)->connecT(receiver, member); }
/** Disconnect from the timer signal which triggers at the given fixed time of day.
* If there are no remaining connections to that timer, it is destroyed.
* @param timeOfDay Time at which the timer triggers.
......@@ -125,6 +129,7 @@ public:
* @p receiver will be disconnected.
*/
static void disconnect(const QTime& timeOfDay, QObject* receiver, const char* member = nullptr);
/** Change the time at which this variable timer triggers.
* @param newTimeOfDay New time at which the timer should trigger.
* @param triggerMissed If true, and if @p newTimeOfDay < @p oldTimeOfDay, and if the current
......@@ -132,6 +137,7 @@ public:
* triggered immediately so as to avoid missing today's trigger.
*/
void changeTime(const QTime& newTimeOfDay, bool triggerMissed = true);
/** Return the current time of day at which this variable timer triggers. */
QTime timeOfDay() const { return mTime; }
......@@ -142,6 +148,7 @@ protected:
* timers are not created for the same use.
*/
DailyTimer(const QTime&, bool fixed);
/** Return the instance which triggers at the specified fixed time of day,
* optionally creating a new instance if necessary.
* @param timeOfDay Time at which the timer triggers.
......@@ -150,13 +157,14 @@ protected:
* @return The instance for @p timeOfDay, or 0 if it does not exist.
*/
static DailyTimer* fixedInstance(const QTime& timeOfDay, bool create = true);
void start() override;
protected Q_SLOTS:
void slotTimer() override;
private:
static QList<DailyTimer*> mFixedTimers; // list of timers whose trigger time is fixed
static QVector<DailyTimer*> mFixedTimers; // list of timers whose trigger time is fixed
QTime mTime;
QDate mLastDate; // the date on which the timer was last triggered
bool mFixed; // the time at which the timer triggers cannot be changed
......@@ -176,6 +184,7 @@ public:
*/
static void connect(QObject* receiver, const char* member)
{ DailyTimer::connect(QTime(0,0), receiver, member); }
/** Disconnect from the timer signal.
* @param receiver Receiving object.
* @param member Slot to disconnect. If null, all slots belonging to
......@@ -183,7 +192,6 @@ public:
*/
static void disconnect(QObject* receiver, const char* member = nullptr)
{ DailyTimer::disconnect(QTime(0,0), receiver, member); }
};
#endif // SYNCHTIMER_H
......