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

Fix some clazy warning

parent fb90b710
Pipeline #61578 passed with stage
in 10 minutes and 26 seconds
......@@ -58,7 +58,7 @@ class AlarmTimeWidget : public QFrame
static const int maxDelayTime; // maximum time from now
Q_SIGNALS:
void changed(const KADateTime&);
void changed(const KAlarmCal::KADateTime&);
void dateOnlyToggled(bool anyTime);
void pastMax();
......
......@@ -79,7 +79,7 @@ protected:
private Q_SLOTS:
void slotNew(EditAlarmDlg::Type);
void slotNewFromTemplate(const KAEvent&);
void slotNewFromTemplate(const KAlarmCal::KAEvent&);
void slotNewTemplate();
void slotCopy();
void slotModify();
......
......@@ -75,7 +75,7 @@ private:
FileResourceSettings::Ptr settings;
ResourceData() {}
ResourceData(Resource r, FileResourceSettings::Ptr s) : resource(r), settings(s) {}
ResourceData(const Resource &r, FileResourceSettings::Ptr s) : resource(r), settings(s) {}
ResourceData(const ResourceData&) = default;
ResourceData& operator=(const ResourceData&) = default;
};
......
......@@ -238,7 +238,7 @@ Q_SIGNALS:
void resourceToBeRemoved(Resource&);
/** Emitted when a resource's config and settings have been removed. */
void resourceRemoved(ResourceId);
void resourceRemoved(KAlarmCal::ResourceId);
/** Emitted when a resource message should be displayed to the user.
* @note Connections to this signal should use Qt::QueuedConnection type
......
......@@ -398,13 +398,13 @@ public:
Q_SIGNALS:
/** Emitted by the all() instance, when the resource's settings have changed. */
void settingsChanged(ResourceId, Changes);
void settingsChanged(KAlarmCal::ResourceId, ResourceType::Changes);
/** Emitted by the all() instance, when a resource message should be displayed to the user.
* @note Connections to this signal should use Qt::QueuedConnection type.
* @param message Derived classes must include the resource's display name.
*/
void resourceMessage(ResourceId, MessageType, const QString& message, const QString& details);
void resourceMessage(KAlarmCal::ResourceId, ResourceType::MessageType, const QString& message, const QString& details);
protected:
/** Add a new ResourceType instance, with a Resource owner.
......
......@@ -72,7 +72,7 @@ public:
Q_SIGNALS:
void earliestAlarmChanged();
void haveDisabledAlarmsChanged(bool haveDisabled);
void atLoginEventAdded(const KAEvent&);
void atLoginEventAdded(const KAlarmCal::KAEvent&);
private Q_SLOTS:
void slotResourceSettingsChanged(Resource&, ResourceType::Changes);
......@@ -83,7 +83,7 @@ private Q_SLOTS:
void slotEventUpdated(Resource&, const KAEvent&);
private:
ResourcesCalendar();
static CalEvent::Type deleteEventInternal(const KAEvent&, Resource&, bool deleteFromResource = true);
static CalEvent::Type deleteEventInternal(const KAlarmCal::KAEvent&, Resource&, bool deleteFromResource = true);
static CalEvent::Type deleteEventInternal(const QString& eventID, const KAEvent&, Resource&,
bool deleteFromResource = true);
void removeKAEvents(ResourceId, bool closing = false,
......
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