Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KAlarm
Commits
bf74fe0c
Commit
bf74fe0c
authored
Dec 07, 2020
by
Laurent Montel
😁
Browse files
Add missing override on destructor
parent
b21c9b56
Pipeline
#43299
skipped
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/stackedwidgets.h
View file @
bf74fe0c
...
...
@@ -35,7 +35,7 @@ public:
{
mGroup
->
addWidget
(
this
);
}
~
StackedWidgetT
()
{
mGroup
->
removeWidget
(
this
);
}
~
StackedWidgetT
()
override
{
mGroup
->
removeWidget
(
this
);
}
QSize
sizeHint
()
const
override
{
return
minimumSizeHint
();
}
QSize
minimumSizeHint
()
const
override
{
return
mGroup
->
minimumSizeHint
();
}
...
...
src/lib/synchtimer.h
View file @
bf74fe0c
...
...
@@ -68,7 +68,7 @@ class MinuteTimer : public SynchTimer
{
Q_OBJECT
public:
virtual
~
MinuteTimer
()
{
mInstance
=
nullptr
;
}
~
MinuteTimer
()
override
{
mInstance
=
nullptr
;
}
/** Connect to the timer signal.
* @param receiver Receiving object.
...
...
src/messagedisplayhelper_p.h
View file @
bf74fe0c
...
...
@@ -23,7 +23,7 @@ class AudioThread : public QThread
Q_OBJECT
public:
AudioThread
(
MessageDisplayHelper
*
parent
,
const
QString
&
audioFile
,
float
volume
,
float
fadeVolume
,
int
fadeSeconds
,
int
repeatPause
);
~
AudioThread
();
~
AudioThread
()
override
;
void
stop
(
bool
wait
=
false
);
QString
error
()
const
;
...
...
src/prefdlg.h
View file @
bf74fe0c
...
...
@@ -26,7 +26,7 @@ class KAlarmPrefDlg : public KPageDialog
Q_OBJECT
public:
static
void
display
();
~
KAlarmPrefDlg
();
~
KAlarmPrefDlg
()
override
;
QSize
minimumSizeHint
()
const
override
;
protected:
...
...
src/resources/eventmodel.h
View file @
bf74fe0c
...
...
@@ -116,7 +116,7 @@ public:
template
<
class
DataModel
>
static
AlarmListModel
*
create
(
QObject
*
parent
=
nullptr
);
~
AlarmListModel
();
~
AlarmListModel
()
override
;
/** Return the model containing all active and archived alarms. */
template
<
class
DataModel
>
...
...
@@ -170,7 +170,7 @@ public:
template
<
class
DataModel
>
static
TemplateListModel
*
create
(
QObject
*
parent
=
nullptr
);
~
TemplateListModel
();
~
TemplateListModel
()
override
;
/** Return the model containing all alarm templates. */
template
<
class
DataModel
>
...
...
src/resources/fileresource.h
View file @
bf74fe0c
...
...
@@ -48,7 +48,7 @@ public:
*/
explicit
FileResource
(
FileResourceSettings
*
settings
);
~
FileResource
();
~
FileResource
()
override
;
/** Return whether the resource has a valid configuration. */
bool
isValid
()
const
override
;
...
...
src/resources/resourcemodel.h
View file @
bf74fe0c
...
...
@@ -139,7 +139,7 @@ public:
template
<
class
DataModel
>
static
ResourceCheckListModel
*
create
(
CalEvent
::
Type
,
QObject
*
parent
=
nullptr
);
~
ResourceCheckListModel
();
~
ResourceCheckListModel
()
override
;
Resource
resource
(
int
row
)
const
;
Resource
resource
(
const
QModelIndex
&
)
const
;
void
disable
()
{
mDisabled
=
true
;
}
...
...
@@ -188,7 +188,7 @@ public:
template
<
class
DataModel
>
static
ResourceFilterCheckListModel
*
create
(
QObject
*
parent
=
nullptr
);
~
ResourceFilterCheckListModel
();
~
ResourceFilterCheckListModel
()
override
;
void
setEventTypeFilter
(
CalEvent
::
Type
);
Resource
resource
(
int
row
)
const
;
Resource
resource
(
const
QModelIndex
&
)
const
;
...
...
src/resources/singlefileresource.h
View file @
bf74fe0c
...
...
@@ -44,7 +44,7 @@ protected:
explicit
SingleFileResource
(
FileResourceSettings
*
settings
);
public:
~
SingleFileResource
();
~
SingleFileResource
()
override
;
/** Return the type of storage used by the resource. */
StorageType
storageType
()
const
override
{
return
File
;
}
...
...
src/resources/singlefileresourceconfigdialog.h
View file @
bf74fe0c
...
...
@@ -23,7 +23,7 @@ class SingleFileResourceConfigDialog : public QDialog
Q_OBJECT
public:
SingleFileResourceConfigDialog
(
bool
create
,
QWidget
*
parent
);
~
SingleFileResourceConfigDialog
();
~
SingleFileResourceConfigDialog
()
override
;
/** Return the file URL. */
QUrl
url
()
const
;
...
...
src/undo.cpp
View file @
bf74fe0c
...
...
@@ -77,7 +77,7 @@ class UndoMultiBase : public UndoItem
:
UndoItem
(
t
,
name
),
mUndos
(
new
Undo
::
List
)
{}
UndoMultiBase
(
Undo
::
Type
t
,
Undo
::
List
*
undos
,
const
QString
&
name
)
:
UndoItem
(
t
,
name
),
mUndos
(
undos
)
{}
~
UndoMultiBase
()
{
delete
mUndos
;
}
~
UndoMultiBase
()
override
{
delete
mUndos
;
}
const
Undo
::
List
*
undos
()
const
{
return
mUndos
;
}
protected:
void
dumpDebugTitle
(
const
char
*
typeName
)
const
override
;
...
...
@@ -125,7 +125,7 @@ class UndoEdit : public UndoItem
public:
UndoEdit
(
Undo
::
Type
,
const
KAEvent
&
oldEvent
,
const
QString
&
newEventID
,
const
Resource
&
,
const
QStringList
&
dontShowErrors
,
const
QString
&
description
);
~
UndoEdit
();
~
UndoEdit
()
override
;
Operation
operation
()
const
override
{
return
EDIT
;
}
QString
defaultActionText
()
const
override
;
QString
description
()
const
override
{
return
mDescription
;
}
...
...
@@ -150,7 +150,7 @@ class UndoDelete : public UndoItem
public:
UndoDelete
(
Undo
::
Type
,
const
Undo
::
Event
&
,
const
QString
&
name
=
QString
());
UndoDelete
(
Undo
::
Type
,
const
KAEvent
&
,
const
Resource
&
,
const
QStringList
&
dontShowErrors
,
const
QString
&
name
=
QString
());
~
UndoDelete
();
~
UndoDelete
()
override
;
Operation
operation
()
const
override
{
return
DELETE
;
}
QString
defaultActionText
()
const
override
;
QString
description
()
const
override
{
return
UndoItem
::
description
(
*
mEvent
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment