mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Drop semicolon after Q_UNUSED() for consistency through the repo
This commit is contained in:
parent
bfdc6d938a
commit
ac91c9fe11
8 changed files with 15 additions and 15 deletions
|
|
@ -288,7 +288,7 @@ void SwipeArea::resetSwipe()
|
||||||
|
|
||||||
void SwipeArea::handlePressEvent(QPointerEvent *event, QPointF point)
|
void SwipeArea::handlePressEvent(QPointerEvent *event, QPointF point)
|
||||||
{
|
{
|
||||||
Q_UNUSED(event);
|
Q_UNUSED(event)
|
||||||
|
|
||||||
// ignore more touch events
|
// ignore more touch events
|
||||||
if (m_pressed) {
|
if (m_pressed) {
|
||||||
|
|
@ -303,8 +303,8 @@ void SwipeArea::handlePressEvent(QPointerEvent *event, QPointF point)
|
||||||
|
|
||||||
void SwipeArea::handleReleaseEvent(QPointerEvent *event, QPointF point)
|
void SwipeArea::handleReleaseEvent(QPointerEvent *event, QPointF point)
|
||||||
{
|
{
|
||||||
Q_UNUSED(event);
|
Q_UNUSED(event)
|
||||||
Q_UNUSED(point);
|
Q_UNUSED(point)
|
||||||
|
|
||||||
// if we are in a swipe
|
// if we are in a swipe
|
||||||
if (m_moving) {
|
if (m_moving) {
|
||||||
|
|
@ -316,7 +316,7 @@ void SwipeArea::handleReleaseEvent(QPointerEvent *event, QPointF point)
|
||||||
|
|
||||||
void SwipeArea::handleMoveEvent(QPointerEvent *event, QPointF point)
|
void SwipeArea::handleMoveEvent(QPointerEvent *event, QPointF point)
|
||||||
{
|
{
|
||||||
Q_UNUSED(event);
|
Q_UNUSED(event)
|
||||||
|
|
||||||
if (!m_stealMouse) {
|
if (!m_stealMouse) {
|
||||||
if (!m_skipSwipeThreshold) {
|
if (!m_skipSwipeThreshold) {
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ void NotificationThumbnailer::generatePreview()
|
||||||
job->setIgnoreMaximumSize(true);
|
job->setIgnoreMaximumSize(true);
|
||||||
|
|
||||||
connect(job, &KIO::PreviewJob::gotPreview, this, [this](const KFileItem &item, const QPixmap &preview) {
|
connect(job, &KIO::PreviewJob::gotPreview, this, [this](const KFileItem &item, const QPixmap &preview) {
|
||||||
Q_UNUSED(item);
|
Q_UNUSED(item)
|
||||||
m_pixmap = preview;
|
m_pixmap = preview;
|
||||||
Q_EMIT pixmapChanged();
|
Q_EMIT pixmapChanged();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ QHash<int, QByteArray> QuickSettingsModel::roleNames() const
|
||||||
|
|
||||||
int QuickSettingsModel::rowCount(const QModelIndex &parent) const
|
int QuickSettingsModel::rowCount(const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(parent);
|
Q_UNUSED(parent)
|
||||||
return m_quickSettings.size();
|
return m_quickSettings.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ QVariant SavedQuickSettingsModel::data(const QModelIndex &index, int role) const
|
||||||
|
|
||||||
int SavedQuickSettingsModel::rowCount(const QModelIndex &parent) const
|
int SavedQuickSettingsModel::rowCount(const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(parent);
|
Q_UNUSED(parent)
|
||||||
return m_data.count();
|
return m_data.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ TimeZoneModel::~TimeZoneModel()
|
||||||
|
|
||||||
int TimeZoneModel::rowCount(const QModelIndex &parent) const
|
int TimeZoneModel::rowCount(const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(parent);
|
Q_UNUSED(parent)
|
||||||
return m_data.count();
|
return m_data.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ QVariant BatteryModel::data(const QModelIndex &index, int role) const
|
||||||
|
|
||||||
int BatteryModel::rowCount(const QModelIndex &parent) const
|
int BatteryModel::rowCount(const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(parent);
|
Q_UNUSED(parent)
|
||||||
return m_batteries.count();
|
return m_batteries.count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,9 @@ void NightColorUtil::setEnabled(bool enabled)
|
||||||
|
|
||||||
void NightColorUtil::enabledUpdated(const QString &name, const QVariantMap &map, const QStringList &list)
|
void NightColorUtil::enabledUpdated(const QString &name, const QVariantMap &map, const QStringList &list)
|
||||||
{
|
{
|
||||||
Q_UNUSED(name);
|
Q_UNUSED(name)
|
||||||
Q_UNUSED(map);
|
Q_UNUSED(map)
|
||||||
Q_UNUSED(list);
|
Q_UNUSED(list)
|
||||||
bool running = m_ccInterface->running();
|
bool running = m_ccInterface->running();
|
||||||
if (running != m_enabled) {
|
if (running != m_enabled) {
|
||||||
m_enabled = running;
|
m_enabled = running;
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ void BasicNotificationTest::sendNotification(QCoreApplication &app)
|
||||||
notification->setIconName(QStringLiteral("notification-active"));
|
notification->setIconName(QStringLiteral("notification-active"));
|
||||||
notification->setText("This is a test notification!");
|
notification->setText("This is a test notification!");
|
||||||
auto action = notification->addAction("Action!");
|
auto action = notification->addAction("Action!");
|
||||||
Q_UNUSED(action);
|
Q_UNUSED(action)
|
||||||
|
|
||||||
connect(notification, &KNotification::closed, &app, QCoreApplication::quit);
|
connect(notification, &KNotification::closed, &app, QCoreApplication::quit);
|
||||||
notification->sendEvent();
|
notification->sendEvent();
|
||||||
|
|
@ -95,7 +95,7 @@ void CriticalUrgencyNotificationTest::sendNotification(QCoreApplication &app)
|
||||||
notification->setText("This is very urgent! AAAAAA");
|
notification->setText("This is very urgent! AAAAAA");
|
||||||
notification->setUrgency(KNotification::CriticalUrgency);
|
notification->setUrgency(KNotification::CriticalUrgency);
|
||||||
auto action = notification->addAction("Action!");
|
auto action = notification->addAction("Action!");
|
||||||
Q_UNUSED(action);
|
Q_UNUSED(action)
|
||||||
|
|
||||||
connect(notification, &KNotification::closed, &app, QCoreApplication::quit);
|
connect(notification, &KNotification::closed, &app, QCoreApplication::quit);
|
||||||
notification->sendEvent();
|
notification->sendEvent();
|
||||||
|
|
@ -144,4 +144,4 @@ void JobNotificationTest::sendNotification(QCoreApplication &app)
|
||||||
|
|
||||||
jobTracker->registerJob(job);
|
jobTracker->registerJob(job);
|
||||||
job->start();
|
job->start();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue