Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KAlarm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
KAlarm
Commits
b9c32c88
Commit
b9c32c88
authored
Jun 04, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GIT_SILENT: When depending against qt5.7 we can use override directly
parent
ecf52a4e
Changes
49
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
282 additions
and
282 deletions
+282
-282
src/akonadimodel.h
src/akonadimodel.h
+4
-4
src/alarmlistdelegate.h
src/alarmlistdelegate.h
+3
-3
src/alarmlistview.h
src/alarmlistview.h
+1
-1
src/alarmtimewidget.h
src/alarmtimewidget.h
+1
-1
src/birthdaydlg.h
src/birthdaydlg.h
+1
-1
src/birthdaymodel.h
src/birthdaymodel.h
+3
-3
src/collectionmodel.cpp
src/collectionmodel.cpp
+1
-1
src/collectionmodel.h
src/collectionmodel.h
+9
-9
src/editdlg.h
src/editdlg.h
+5
-5
src/editdlgtypes.cpp
src/editdlgtypes.cpp
+1
-1
src/editdlgtypes.h
src/editdlgtypes.h
+54
-54
src/emailidcombo.h
src/emailidcombo.h
+5
-5
src/eventlistview.h
src/eventlistview.h
+4
-4
src/fontcolour.h
src/fontcolour.h
+1
-1
src/fontcolourbutton.h
src/fontcolourbutton.h
+2
-2
src/itemlistmodel.h
src/itemlistmodel.h
+12
-12
src/lib/checkbox.h
src/lib/checkbox.h
+5
-5
src/lib/colourbutton.h
src/lib/colourbutton.h
+5
-5
src/lib/combobox.h
src/lib/combobox.h
+5
-5
src/lib/groupbox.h
src/lib/groupbox.h
+5
-5
src/lib/label.h
src/lib/label.h
+1
-1
src/lib/lineedit.h
src/lib/lineedit.h
+4
-4
src/lib/packedlayout.h
src/lib/packedlayout.h
+11
-11
src/lib/pushbutton.h
src/lib/pushbutton.h
+6
-6
src/lib/radiobutton.h
src/lib/radiobutton.h
+5
-5
src/lib/slider.h
src/lib/slider.h
+5
-5
src/lib/spinbox.h
src/lib/spinbox.h
+11
-11
src/lib/spinbox2.h
src/lib/spinbox2.h
+10
-10
src/lib/stackedwidgets.h
src/lib/stackedwidgets.h
+3
-3
src/lib/synchtimer.h
src/lib/synchtimer.h
+4
-4
src/lib/timespinbox.h
src/lib/timespinbox.h
+8
-8
src/mainwindow.h
src/mainwindow.h
+9
-9
src/mainwindowbase.h
src/mainwindowbase.h
+1
-1
src/messagewin.cpp
src/messagewin.cpp
+1
-1
src/messagewin.h
src/messagewin.h
+7
-7
src/messagewin_p.h
src/messagewin_p.h
+1
-1
src/pickfileradio.h
src/pickfileradio.h
+1
-1
src/prefdlg.h
src/prefdlg.h
+3
-3
src/prefdlg_p.h
src/prefdlg_p.h
+13
-13
src/preferences.h
src/preferences.h
+1
-1
src/recurrenceedit.cpp
src/recurrenceedit.cpp
+1
-1
src/recurrenceedit.h
src/recurrenceedit.h
+1
-1
src/resourceselector.h
src/resourceselector.h
+1
-1
src/sounddlg.h
src/sounddlg.h
+3
-3
src/specialactions.h
src/specialactions.h
+1
-1
src/templatedlg.h
src/templatedlg.h
+1
-1
src/templatelistview.h
src/templatelistview.h
+2
-2
src/templatepickdlg.h
src/templatepickdlg.h
+1
-1
src/undo.cpp
src/undo.cpp
+39
-39
No files found.
src/akonadimodel.h
View file @
b9c32c88
...
...
@@ -110,8 +110,8 @@ class AkonadiModel : public Akonadi::EntityTreeModel
*/
void
updateCommandError
(
const
KAEvent
&
);
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
Q_DECL_OVERRIDE
;
bool
setData
(
const
QModelIndex
&
,
const
QVariant
&
value
,
int
role
)
Q_DECL_OVERRIDE
;
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
bool
setData
(
const
QModelIndex
&
,
const
QVariant
&
value
,
int
role
)
override
;
/** Refresh the specified collection instance with up to date data. */
bool
refresh
(
Akonadi
::
Collection
&
)
const
;
...
...
@@ -250,8 +250,8 @@ class AkonadiModel : public Akonadi::EntityTreeModel
void
serverStopped
();
protected:
QVariant
entityHeaderData
(
int
section
,
Qt
::
Orientation
,
int
role
,
HeaderGroup
)
const
Q_DECL_OVERRIDE
;
int
entityColumnCount
(
HeaderGroup
)
const
Q_DECL_OVERRIDE
;
QVariant
entityHeaderData
(
int
section
,
Qt
::
Orientation
,
int
role
,
HeaderGroup
)
const
override
;
int
entityColumnCount
(
HeaderGroup
)
const
override
;
private
Q_SLOTS
:
void
checkResources
(
Akonadi
::
ServerManager
::
State
);
...
...
src/alarmlistdelegate.h
View file @
b9c32c88
...
...
@@ -32,9 +32,9 @@ class AlarmListDelegate : public EventListDelegate
public:
explicit
AlarmListDelegate
(
AlarmListView
*
parent
=
nullptr
)
:
EventListDelegate
(
parent
)
{}
void
paint
(
QPainter
*
,
const
QStyleOptionViewItem
&
,
const
QModelIndex
&
)
const
Q_DECL_OVERRIDE
;
QSize
sizeHint
(
const
QStyleOptionViewItem
&
,
const
QModelIndex
&
)
const
Q_DECL_OVERRIDE
;
void
edit
(
KAEvent
*
,
EventListView
*
)
Q_DECL_OVERRIDE
;
void
paint
(
QPainter
*
,
const
QStyleOptionViewItem
&
,
const
QModelIndex
&
)
const
override
;
QSize
sizeHint
(
const
QStyleOptionViewItem
&
,
const
QModelIndex
&
)
const
override
;
void
edit
(
KAEvent
*
,
EventListView
*
)
override
;
};
#endif
...
...
src/alarmlistview.h
View file @
b9c32c88
...
...
@@ -33,7 +33,7 @@ class AlarmListView : public EventListView
Q_OBJECT
public:
explicit
AlarmListView
(
const
QByteArray
&
configGroup
,
QWidget
*
parent
=
nullptr
);
void
setModel
(
QAbstractItemModel
*
)
Q_DECL_OVERRIDE
;
void
setModel
(
QAbstractItemModel
*
)
override
;
void
selectTimeColumns
(
bool
time
,
bool
timeTo
);
private
Q_SLOTS
:
...
...
src/alarmtimewidget.h
View file @
b9c32c88
...
...
@@ -60,7 +60,7 @@ class AlarmTimeWidget : public QFrame
void
enableAnyTime
(
bool
enable
);
void
selectTimeFromNow
(
int
minutes
=
0
);
void
showMoreOptions
(
bool
);
QSize
sizeHint
()
const
Q_DECL_OVERRIDE
{
return
minimumSizeHint
();
}
QSize
sizeHint
()
const
override
{
return
minimumSizeHint
();
}
static
QString
i18n_TimeAfterPeriod
();
static
const
int
maxDelayTime
;
// maximum time from now
...
...
src/birthdaydlg.h
View file @
b9c32c88
...
...
@@ -87,7 +87,7 @@ class BLineEdit : public QLineEdit
void
focusLost
();
protected:
void
focusOutEvent
(
QFocusEvent
*
)
Q_DECL_OVERRIDE
{
Q_EMIT
focusLost
();
}
void
focusOutEvent
(
QFocusEvent
*
)
override
{
Q_EMIT
focusLost
();
}
};
#endif // BIRTHDAYDLG_H
...
...
src/birthdaymodel.h
View file @
b9c32c88
...
...
@@ -55,8 +55,8 @@ class BirthdayModel : public Akonadi::ContactsTreeModel
*/
static
BirthdayModel
*
instance
();
QVariant
entityData
(
const
Akonadi
::
Item
&
,
int
column
,
int
role
=
Qt
::
DisplayRole
)
const
Q_DECL_OVERRIDE
;
QVariant
entityData
(
const
Akonadi
::
Collection
&
collection
,
int
column
,
int
role
=
Qt
::
DisplayRole
)
const
Q_DECL_OVERRIDE
QVariant
entityData
(
const
Akonadi
::
Item
&
,
int
column
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
QVariant
entityData
(
const
Akonadi
::
Collection
&
collection
,
int
column
,
int
role
=
Qt
::
DisplayRole
)
const
override
{
return
Akonadi
::
ContactsTreeModel
::
entityData
(
collection
,
column
,
role
);
}
private:
...
...
@@ -75,7 +75,7 @@ class BirthdaySortModel : public QSortFilterProxyModel
void
setPrefixSuffix
(
const
QString
&
prefix
,
const
QString
&
suffix
);
protected:
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
Q_DECL_OVERRIDE
;
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
override
;
private:
QStringList
mContactsWithAlarm
;
...
...
src/collectionmodel.cpp
View file @
b9c32c88
...
...
@@ -69,7 +69,7 @@ class CollectionMimeTypeFilterModel : public Akonadi::EntityMimeTypeFilterModel
QModelIndex
collectionIndex
(
const
Akonadi
::
Collection
&
)
const
;
protected:
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
Q_DECL_OVERRIDE
;
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
override
;
private:
CalEvent
::
Type
mAlarmType
;
// collection content type contained in this model
...
...
src/collectionmodel.h
View file @
b9c32c88
...
...
@@ -59,7 +59,7 @@ class CollectionListModel : public KDescendantsProxyModel
Akonadi
::
Collection
collection
(
const
QModelIndex
&
)
const
;
QModelIndex
collectionIndex
(
const
Akonadi
::
Collection
&
)
const
;
virtual
bool
isDescendantOf
(
const
QModelIndex
&
ancestor
,
const
QModelIndex
&
descendant
)
const
;
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
Q_DECL_OVERRIDE
;
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
private:
bool
mUseCollectionColour
;
...
...
@@ -82,8 +82,8 @@ class CollectionCheckListModel : public KCheckableProxyModel
~
CollectionCheckListModel
();
Akonadi
::
Collection
collection
(
int
row
)
const
;
Akonadi
::
Collection
collection
(
const
QModelIndex
&
)
const
;
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
Q_DECL_OVERRIDE
;
bool
setData
(
const
QModelIndex
&
,
const
QVariant
&
value
,
int
role
)
Q_DECL_OVERRIDE
;
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
bool
setData
(
const
QModelIndex
&
,
const
QVariant
&
value
,
int
role
)
override
;
Q_SIGNALS:
void
collectionTypeChange
(
CollectionCheckListModel
*
);
...
...
@@ -117,10 +117,10 @@ class CollectionFilterCheckListModel : public QSortFilterProxyModel
void
setEventTypeFilter
(
CalEvent
::
Type
);
Akonadi
::
Collection
collection
(
int
row
)
const
;
Akonadi
::
Collection
collection
(
const
QModelIndex
&
)
const
;
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
Q_DECL_OVERRIDE
;
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
protected:
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
Q_DECL_OVERRIDE
;
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
override
;
private
Q_SLOTS
:
void
collectionTypeChanged
(
CollectionCheckListModel
*
);
...
...
@@ -147,9 +147,9 @@ class CollectionView : public QListView
Akonadi
::
Collection
collection
(
const
QModelIndex
&
)
const
;
protected:
void
setModel
(
QAbstractItemModel
*
)
Q_DECL_OVERRIDE
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
bool
viewportEvent
(
QEvent
*
)
Q_DECL_OVERRIDE
;
void
setModel
(
QAbstractItemModel
*
)
override
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
override
;
bool
viewportEvent
(
QEvent
*
)
override
;
};
...
...
@@ -277,7 +277,7 @@ class CollectionControlModel : public Akonadi::FavoriteCollectionsModel
*/
bool
waitUntilPopulated
(
Akonadi
::
Collection
::
Id
colId
=
-
1
,
int
timeout
=
0
);
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
Q_DECL_OVERRIDE
;
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
/** Return a bulleted list of alarm types for inclusion in an i18n message. */
static
QString
typeListForDisplay
(
CalEvent
::
Types
);
...
...
src/editdlg.h
View file @
b9c32c88
...
...
@@ -82,7 +82,7 @@ class EditAlarmDlg : public QDialog
void
setLateCancel
(
int
minutes
);
void
setShowInKOrganizer
(
bool
);
QSize
sizeHint
()
const
Q_DECL_OVERRIDE
{
return
minimumSizeHint
();
}
QSize
sizeHint
()
const
override
{
return
minimumSizeHint
();
}
static
int
instanceCount
();
static
QString
i18n_chk_ShowInKOrganizer
();
// text of 'Show in KOrganizer' checkbox
...
...
@@ -93,10 +93,10 @@ class EditAlarmDlg : public QDialog
EditAlarmDlg
(
bool
Template
,
const
KAEvent
*
,
bool
newAlarm
,
QWidget
*
parent
=
nullptr
,
GetResourceType
=
RES_PROMPT
,
bool
readOnly
=
false
);
void
init
(
const
KAEvent
*
event
);
void
resizeEvent
(
QResizeEvent
*
)
Q_DECL_OVERRIDE
;
void
showEvent
(
QShowEvent
*
)
Q_DECL_OVERRIDE
;
void
closeEvent
(
QCloseEvent
*
)
Q_DECL_OVERRIDE
;
bool
eventFilter
(
QObject
*
,
QEvent
*
)
Q_DECL_OVERRIDE
;
void
resizeEvent
(
QResizeEvent
*
)
override
;
void
showEvent
(
QShowEvent
*
)
override
;
void
closeEvent
(
QCloseEvent
*
)
override
;
bool
eventFilter
(
QObject
*
,
QEvent
*
)
override
;
virtual
QString
type_caption
()
const
=
0
;
virtual
void
type_init
(
QWidget
*
parent
,
QVBoxLayout
*
frameLayout
)
=
0
;
virtual
void
type_initValues
(
const
KAEvent
*
)
=
0
;
...
...
src/editdlgtypes.cpp
View file @
b9c32c88
...
...
@@ -82,7 +82,7 @@ class PickLogFileRadio : public PickFileRadio
public:
PickLogFileRadio
(
QPushButton
*
b
,
LineEdit
*
e
,
const
QString
&
text
,
ButtonGroup
*
group
,
QWidget
*
parent
)
:
PickFileRadio
(
b
,
e
,
text
,
group
,
parent
)
{
}
QString
pickFile
()
Q_DECL_OVERRIDE
// called when browse button is pressed to select a log file
QString
pickFile
()
override
// called when browse button is pressed to select a log file
{
return
KAlarm
::
browseFile
(
i18nc
(
"@title:window"
,
"Choose Log File"
),
mDefaultDir
,
fileEdit
()
->
text
(),
QString
(),
KFile
::
LocalOnly
,
parentWidget
());
...
...
src/editdlgtypes.h
View file @
b9c32c88
...
...
@@ -58,7 +58,7 @@ class EditDisplayAlarmDlg : public EditAlarmDlg
// Methods to initialise values in the New Alarm dialogue.
// N.B. setTime() must be called first to set the date-only characteristic,
// followed by setRecurrence().
void
setAction
(
KAEvent
::
SubAction
,
const
AlarmText
&
=
AlarmText
())
Q_DECL_OVERRIDE
;
void
setAction
(
KAEvent
::
SubAction
,
const
AlarmText
&
=
AlarmText
())
override
;
void
setBgColour
(
const
QColor
&
);
void
setFgColour
(
const
QColor
&
);
void
setConfirmAck
(
bool
);
...
...
@@ -66,24 +66,24 @@ class EditDisplayAlarmDlg : public EditAlarmDlg
void
setAudio
(
Preferences
::
SoundType
,
const
QString
&
file
=
QString
(),
float
volume
=
-
1
,
int
repeatPause
=
-
1
);
void
setReminder
(
int
minutes
,
bool
onceOnly
);
Reminder
*
createReminder
(
QWidget
*
parent
)
Q_DECL_OVERRIDE
;
Reminder
*
createReminder
(
QWidget
*
parent
)
override
;
static
CheckBox
*
createConfirmAckCheckbox
(
QWidget
*
parent
);
static
QString
i18n_chk_ConfirmAck
();
// text of 'Confirm acknowledgement' checkbox
protected:
QString
type_caption
()
const
Q_DECL_OVERRIDE
;
void
type_init
(
QWidget
*
parent
,
QVBoxLayout
*
frameLayout
)
Q_DECL_OVERRIDE
;
void
type_initValues
(
const
KAEvent
*
)
Q_DECL_OVERRIDE
;
void
type_showOptions
(
bool
more
)
Q_DECL_OVERRIDE
;
void
setReadOnly
(
bool
readOnly
)
Q_DECL_OVERRIDE
;
void
saveState
(
const
KAEvent
*
)
Q_DECL_OVERRIDE
;
bool
type_stateChanged
()
const
Q_DECL_OVERRIDE
;
void
type_setEvent
(
KAEvent
&
,
const
KDateTime
&
,
const
QString
&
text
,
int
lateCancel
,
bool
trial
)
Q_DECL_OVERRIDE
;
KAEvent
::
Flags
getAlarmFlags
()
const
Q_DECL_OVERRIDE
;
bool
type_validate
(
bool
trial
)
Q_DECL_OVERRIDE
{
Q_UNUSED
(
trial
);
return
true
;
}
CheckBox
*
type_createConfirmAckCheckbox
(
QWidget
*
parent
)
Q_DECL_OVERRIDE
{
mConfirmAck
=
createConfirmAckCheckbox
(
parent
);
return
mConfirmAck
;
}
bool
checkText
(
QString
&
result
,
bool
showErrorMessage
=
true
)
const
Q_DECL_OVERRIDE
;
QString
type_caption
()
const
override
;
void
type_init
(
QWidget
*
parent
,
QVBoxLayout
*
frameLayout
)
override
;
void
type_initValues
(
const
KAEvent
*
)
override
;
void
type_showOptions
(
bool
more
)
override
;
void
setReadOnly
(
bool
readOnly
)
override
;
void
saveState
(
const
KAEvent
*
)
override
;
bool
type_stateChanged
()
const
override
;
void
type_setEvent
(
KAEvent
&
,
const
KDateTime
&
,
const
QString
&
text
,
int
lateCancel
,
bool
trial
)
override
;
KAEvent
::
Flags
getAlarmFlags
()
const
override
;
bool
type_validate
(
bool
trial
)
override
{
Q_UNUSED
(
trial
);
return
true
;
}
CheckBox
*
type_createConfirmAckCheckbox
(
QWidget
*
parent
)
override
{
mConfirmAck
=
createConfirmAckCheckbox
(
parent
);
return
mConfirmAck
;
}
bool
checkText
(
QString
&
result
,
bool
showErrorMessage
=
true
)
const
override
;
private
Q_SLOTS
:
void
slotAlarmTypeChanged
(
int
index
);
...
...
@@ -148,25 +148,25 @@ class EditCommandAlarmDlg : public EditAlarmDlg
// Methods to initialise values in the New Alarm dialogue.
// N.B. setTime() must be called first to set the date-only characteristic,
// followed by setRecurrence().
void
setAction
(
KAEvent
::
SubAction
,
const
AlarmText
&
=
AlarmText
())
Q_DECL_OVERRIDE
;
void
setAction
(
KAEvent
::
SubAction
,
const
AlarmText
&
=
AlarmText
())
override
;
static
QString
i18n_chk_EnterScript
();
// text of 'Enter a script' checkbox
static
QString
i18n_radio_ExecInTermWindow
();
// text of 'Execute in terminal window' radio button
static
QString
i18n_chk_ExecInTermWindow
();
// text of 'Execute in terminal window' checkbox
protected:
QString
type_caption
()
const
Q_DECL_OVERRIDE
;
void
type_init
(
QWidget
*
parent
,
QVBoxLayout
*
frameLayout
)
Q_DECL_OVERRIDE
;
void
type_initValues
(
const
KAEvent
*
)
Q_DECL_OVERRIDE
;
void
type_showOptions
(
bool
more
)
Q_DECL_OVERRIDE
;
void
setReadOnly
(
bool
readOnly
)
Q_DECL_OVERRIDE
;
void
saveState
(
const
KAEvent
*
)
Q_DECL_OVERRIDE
;
bool
type_stateChanged
()
const
Q_DECL_OVERRIDE
;
void
type_setEvent
(
KAEvent
&
,
const
KDateTime
&
,
const
QString
&
text
,
int
lateCancel
,
bool
trial
)
Q_DECL_OVERRIDE
;
KAEvent
::
Flags
getAlarmFlags
()
const
Q_DECL_OVERRIDE
;
bool
type_validate
(
bool
trial
)
Q_DECL_OVERRIDE
;
void
type_executedTry
(
const
QString
&
text
,
void
*
obj
)
Q_DECL_OVERRIDE
;
bool
checkText
(
QString
&
result
,
bool
showErrorMessage
=
true
)
const
Q_DECL_OVERRIDE
;
QString
type_caption
()
const
override
;
void
type_init
(
QWidget
*
parent
,
QVBoxLayout
*
frameLayout
)
override
;
void
type_initValues
(
const
KAEvent
*
)
override
;
void
type_showOptions
(
bool
more
)
override
;
void
setReadOnly
(
bool
readOnly
)
override
;
void
saveState
(
const
KAEvent
*
)
override
;
bool
type_stateChanged
()
const
override
;
void
type_setEvent
(
KAEvent
&
,
const
KDateTime
&
,
const
QString
&
text
,
int
lateCancel
,
bool
trial
)
override
;
KAEvent
::
Flags
getAlarmFlags
()
const
override
;
bool
type_validate
(
bool
trial
)
override
;
void
type_executedTry
(
const
QString
&
text
,
void
*
obj
)
override
;
bool
checkText
(
QString
&
result
,
bool
showErrorMessage
=
true
)
const
override
;
private
Q_SLOTS
:
void
slotCmdScriptToggled
(
bool
);
...
...
@@ -200,7 +200,7 @@ class EditEmailAlarmDlg : public EditAlarmDlg
// Methods to initialise values in the New Alarm dialogue.
// N.B. setTime() must be called first to set the date-only characteristic,
// followed by setRecurrence().
void
setAction
(
KAEvent
::
SubAction
,
const
AlarmText
&
=
AlarmText
())
Q_DECL_OVERRIDE
;
void
setAction
(
KAEvent
::
SubAction
,
const
AlarmText
&
=
AlarmText
())
override
;
void
setEmailFields
(
uint
fromID
,
const
KCalCore
::
Person
::
List
&
,
const
QString
&
subject
,
const
QStringList
&
attachments
);
void
setBcc
(
bool
);
...
...
@@ -208,18 +208,18 @@ class EditEmailAlarmDlg : public EditAlarmDlg
static
QString
i18n_chk_CopyEmailToSelf
();
// text of 'Copy email to self' checkbox
protected:
QString
type_caption
()
const
Q_DECL_OVERRIDE
;
void
type_init
(
QWidget
*
parent
,
QVBoxLayout
*
frameLayout
)
Q_DECL_OVERRIDE
;
void
type_initValues
(
const
KAEvent
*
)
Q_DECL_OVERRIDE
;
void
type_showOptions
(
bool
)
Q_DECL_OVERRIDE
{}
void
setReadOnly
(
bool
readOnly
)
Q_DECL_OVERRIDE
;
void
saveState
(
const
KAEvent
*
)
Q_DECL_OVERRIDE
;
bool
type_stateChanged
()
const
Q_DECL_OVERRIDE
;
void
type_setEvent
(
KAEvent
&
,
const
KDateTime
&
,
const
QString
&
text
,
int
lateCancel
,
bool
trial
)
Q_DECL_OVERRIDE
;
KAEvent
::
Flags
getAlarmFlags
()
const
Q_DECL_OVERRIDE
;
bool
type_validate
(
bool
trial
)
Q_DECL_OVERRIDE
;
void
type_aboutToTry
()
Q_DECL_OVERRIDE
;
bool
checkText
(
QString
&
result
,
bool
showErrorMessage
=
true
)
const
Q_DECL_OVERRIDE
;
QString
type_caption
()
const
override
;
void
type_init
(
QWidget
*
parent
,
QVBoxLayout
*
frameLayout
)
override
;
void
type_initValues
(
const
KAEvent
*
)
override
;
void
type_showOptions
(
bool
)
override
{}
void
setReadOnly
(
bool
readOnly
)
override
;
void
saveState
(
const
KAEvent
*
)
override
;
bool
type_stateChanged
()
const
override
;
void
type_setEvent
(
KAEvent
&
,
const
KDateTime
&
,
const
QString
&
text
,
int
lateCancel
,
bool
trial
)
override
;
KAEvent
::
Flags
getAlarmFlags
()
const
override
;
bool
type_validate
(
bool
trial
)
override
;
void
type_aboutToTry
()
override
;
bool
checkText
(
QString
&
result
,
bool
showErrorMessage
=
true
)
const
override
;
private
Q_SLOTS
:
void
slotTrySuccess
();
...
...
@@ -266,25 +266,25 @@ class EditAudioAlarmDlg : public EditAlarmDlg
// Methods to initialise values in the New Alarm dialogue.
// N.B. setTime() must be called first to set the date-only characteristic,
// followed by setRecurrence().
void
setAction
(
KAEvent
::
SubAction
,
const
AlarmText
&
=
AlarmText
())
Q_DECL_OVERRIDE
;
void
setAction
(
KAEvent
::
SubAction
,
const
AlarmText
&
=
AlarmText
())
override
;
void
setAudio
(
const
QString
&
file
,
float
volume
=
-
1
);
protected:
QString
type_caption
()
const
Q_DECL_OVERRIDE
;
void
type_init
(
QWidget
*
parent
,
QVBoxLayout
*
frameLayout
)
Q_DECL_OVERRIDE
;
void
type_initValues
(
const
KAEvent
*
)
Q_DECL_OVERRIDE
;
void
type_showOptions
(
bool
)
Q_DECL_OVERRIDE
{}
void
setReadOnly
(
bool
readOnly
)
Q_DECL_OVERRIDE
;
void
saveState
(
const
KAEvent
*
)
Q_DECL_OVERRIDE
;
bool
type_stateChanged
()
const
Q_DECL_OVERRIDE
;
void
type_setEvent
(
KAEvent
&
,
const
KDateTime
&
,
const
QString
&
text
,
int
lateCancel
,
bool
trial
)
Q_DECL_OVERRIDE
;
KAEvent
::
Flags
getAlarmFlags
()
const
Q_DECL_OVERRIDE
;
bool
type_validate
(
bool
trial
)
Q_DECL_OVERRIDE
{
Q_UNUSED
(
trial
);
return
true
;
}
void
type_executedTry
(
const
QString
&
text
,
void
*
obj
)
Q_DECL_OVERRIDE
;
bool
checkText
(
QString
&
result
,
bool
showErrorMessage
=
true
)
const
Q_DECL_OVERRIDE
;
QString
type_caption
()
const
override
;
void
type_init
(
QWidget
*
parent
,
QVBoxLayout
*
frameLayout
)
override
;
void
type_initValues
(
const
KAEvent
*
)
override
;
void
type_showOptions
(
bool
)
override
{}
void
setReadOnly
(
bool
readOnly
)
override
;
void
saveState
(
const
KAEvent
*
)
override
;
bool
type_stateChanged
()
const
override
;
void
type_setEvent
(
KAEvent
&
,
const
KDateTime
&
,
const
QString
&
text
,
int
lateCancel
,
bool
trial
)
override
;
KAEvent
::
Flags
getAlarmFlags
()
const
override
;
bool
type_validate
(
bool
trial
)
override
{
Q_UNUSED
(
trial
);
return
true
;
}
void
type_executedTry
(
const
QString
&
text
,
void
*
obj
)
override
;
bool
checkText
(
QString
&
result
,
bool
showErrorMessage
=
true
)
const
override
;
protected
Q_SLOTS
:
void
slotTry
()
Q_DECL_OVERRIDE
;
void
slotTry
()
override
;
private
Q_SLOTS
:
void
audioWinDestroyed
()
{
slotAudioPlaying
(
false
);
}
...
...
src/emailidcombo.h
View file @
b9c32c88
...
...
@@ -36,11 +36,11 @@ class EmailIdCombo : public KIdentityManagement::IdentityCombo
void
setReadOnly
(
bool
ro
)
{
mReadOnly
=
ro
;
}
protected:
void
mousePressEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseMoveEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
keyPressEvent
(
QKeyEvent
*
)
Q_DECL_OVERRIDE
;
void
keyReleaseEvent
(
QKeyEvent
*
)
Q_DECL_OVERRIDE
;
void
mousePressEvent
(
QMouseEvent
*
)
override
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
override
;
void
mouseMoveEvent
(
QMouseEvent
*
)
override
;
void
keyPressEvent
(
QKeyEvent
*
)
override
;
void
keyReleaseEvent
(
QKeyEvent
*
)
override
;
private:
bool
mReadOnly
;
// value cannot be changed
...
...
src/eventlistview.h
View file @
b9c32c88
...
...
@@ -57,8 +57,8 @@ class EventListView : public QTreeView
void
findActive
(
bool
);
protected:
bool
viewportEvent
(
QEvent
*
)
Q_DECL_OVERRIDE
;
void
contextMenuEvent
(
QContextMenuEvent
*
)
Q_DECL_OVERRIDE
;
bool
viewportEvent
(
QEvent
*
)
override
;
void
contextMenuEvent
(
QContextMenuEvent
*
)
override
;
private:
void
findNext
(
bool
forward
);
...
...
@@ -73,8 +73,8 @@ class EventListDelegate : public QItemDelegate
Q_OBJECT
public:
explicit
EventListDelegate
(
EventListView
*
parent
=
nullptr
)
:
QItemDelegate
(
parent
)
{}
QWidget
*
createEditor
(
QWidget
*
,
const
QStyleOptionViewItem
&
,
const
QModelIndex
&
)
const
Q_DECL_OVERRIDE
{
return
nullptr
;
}
bool
editorEvent
(
QEvent
*
,
QAbstractItemModel
*
,
const
QStyleOptionViewItem
&
,
const
QModelIndex
&
)
Q_DECL_OVERRIDE
;
QWidget
*
createEditor
(
QWidget
*
,
const
QStyleOptionViewItem
&
,
const
QModelIndex
&
)
const
override
{
return
nullptr
;
}
bool
editorEvent
(
QEvent
*
,
QAbstractItemModel
*
,
const
QStyleOptionViewItem
&
,
const
QModelIndex
&
)
override
;
virtual
void
edit
(
KAEvent
*
,
EventListView
*
)
=
0
;
};
...
...
src/fontcolour.h
View file @
b9c32c88
...
...
@@ -51,7 +51,7 @@ class FontColourChooser : public QWidget
void
setSampleText
(
const
QString
&
text
);
bool
isReadOnly
()
const
{
return
mReadOnly
;
}
void
setReadOnly
(
bool
);
bool
eventFilter
(
QObject
*
,
QEvent
*
)
Q_DECL_OVERRIDE
;
bool
eventFilter
(
QObject
*
,
QEvent
*
)
override
;
private
Q_SLOTS
:
void
setSampleColour
();
...
...
src/fontcolourbutton.h
View file @
b9c32c88
...
...
@@ -42,9 +42,9 @@ class FontColourButton : public PushButton
QFont
font
()
const
{
return
mFont
;
}
QColor
bgColour
()
const
{
return
mBgColour
;
}
QColor
fgColour
()
const
{
return
mFgColour
;
}
void
setReadOnly
(
bool
ro
,
bool
noHighlight
=
false
)
Q_DECL_OVERRIDE
void
setReadOnly
(
bool
ro
,
bool
noHighlight
=
false
)
override
{
mReadOnly
=
ro
;
PushButton
::
setReadOnly
(
ro
,
noHighlight
);
}
bool
isReadOnly
()
const
Q_DECL_OVERRIDE
{
return
mReadOnly
;
}
bool
isReadOnly
()
const
override
{
return
mReadOnly
;
}
Q_SIGNALS:
/** Signal emitted whenever a font or colour has been selected. */
...
...
src/itemlistmodel.h
View file @
b9c32c88
...
...
@@ -53,8 +53,8 @@ class ItemListModel : public Akonadi::EntityMimeTypeFilterModel
/** Determine whether the model contains any items. */
bool
haveEvents
()
const
;
int
columnCount
(
const
QModelIndex
&
parent
=
QModelIndex
())
const
Q_DECL_OVERRIDE
;
Qt
::
ItemFlags
flags
(
const
QModelIndex
&
)
const
Q_DECL_OVERRIDE
;
int
columnCount
(
const
QModelIndex
&
parent
=
QModelIndex
())
const
override
;
Qt
::
ItemFlags
flags
(
const
QModelIndex
&
)
const
override
;
static
int
iconWidth
()
{
return
AkonadiModel
::
iconSize
().
width
();
}
...
...
@@ -65,7 +65,7 @@ class ItemListModel : public Akonadi::EntityMimeTypeFilterModel
void
haveEventsStatus
(
bool
have
);
protected:
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
Q_DECL_OVERRIDE
;
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
override
;
private
Q_SLOTS
:
void
slotRowsInserted
();
...
...
@@ -110,12 +110,12 @@ class AlarmListModel : public ItemListModel
*/
CalEvent
::
Types
eventTypeFilter
()
const
{
return
mFilterTypes
;
}
int
columnCount
(
const
QModelIndex
&
=
QModelIndex
())
const
Q_DECL_OVERRIDE
{
return
ColumnCount
;
}
QVariant
headerData
(
int
section
,
Qt
::
Orientation
,
int
role
=
Qt
::
DisplayRole
)
const
Q_DECL_OVERRIDE
;
int
columnCount
(
const
QModelIndex
&
=
QModelIndex
())
const
override
{
return
ColumnCount
;
}
QVariant
headerData
(
int
section
,
Qt
::
Orientation
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
protected:
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
Q_DECL_OVERRIDE
;
bool
filterAcceptsColumn
(
int
sourceCol
,
const
QModelIndex
&
sourceParent
)
const
Q_DECL_OVERRIDE
;
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
override
;
bool
filterAcceptsColumn
(
int
sourceCol
,
const
QModelIndex
&
sourceParent
)
const
override
;
private:
static
AlarmListModel
*
mAllInstance
;
...
...
@@ -157,13 +157,13 @@ class TemplateListModel : public ItemListModel
/** Set which alarm types should be shown as disabled in the model. */
KAEvent
::
Actions
setAlarmActionsEnabled
()
const
{
return
mActionsEnabled
;
}
int
columnCount
(
const
QModelIndex
&
=
QModelIndex
())
const
Q_DECL_OVERRIDE
{
return
ColumnCount
;
}
QVariant
headerData
(
int
section
,
Qt
::
Orientation
,
int
role
=
Qt
::
DisplayRole
)
const
Q_DECL_OVERRIDE
;
Qt
::
ItemFlags
flags
(
const
QModelIndex
&
)
const
Q_DECL_OVERRIDE
;
int
columnCount
(
const
QModelIndex
&
=
QModelIndex
())
const
override
{
return
ColumnCount
;
}
QVariant
headerData
(
int
section
,
Qt
::
Orientation
,
int
role
=
Qt
::
DisplayRole
)
const
override
;
Qt
::
ItemFlags
flags
(
const
QModelIndex
&
)
const
override
;
protected:
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
Q_DECL_OVERRIDE
;
bool
filterAcceptsColumn
(
int
sourceCol
,
const
QModelIndex
&
sourceParent
)
const
Q_DECL_OVERRIDE
;
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
override
;
bool
filterAcceptsColumn
(
int
sourceCol
,
const
QModelIndex
&
sourceParent
)
const
override
;
private:
static
TemplateListModel
*
mAllInstance
;
...
...
src/lib/checkbox.h
View file @
b9c32c88
...
...
@@ -71,11 +71,11 @@ class CheckBox : public QCheckBox
*/
void
setFocusWidget
(
QWidget
*
widget
,
bool
enable
=
true
);
protected:
void
mousePressEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseMoveEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
keyPressEvent
(
QKeyEvent
*
)
Q_DECL_OVERRIDE
;
void
keyReleaseEvent
(
QKeyEvent
*
)
Q_DECL_OVERRIDE
;
void
mousePressEvent
(
QMouseEvent
*
)
override
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
override
;
void
mouseMoveEvent
(
QMouseEvent
*
)
override
;
void
keyPressEvent
(
QKeyEvent
*
)
override
;
void
keyReleaseEvent
(
QKeyEvent
*
)
override
;
protected
Q_SLOTS
:
void
slotClicked
();
private:
...
...
src/lib/colourbutton.h
View file @
b9c32c88
...
...
@@ -53,11 +53,11 @@ class ColourButton : public KColorButton
*/
virtual
void
setReadOnly
(
bool
readOnly
);
protected:
void
mousePressEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseMoveEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
keyPressEvent
(
QKeyEvent
*
)
Q_DECL_OVERRIDE
;
void
keyReleaseEvent
(
QKeyEvent
*
)
Q_DECL_OVERRIDE
;
void
mousePressEvent
(
QMouseEvent
*
)
override
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
override
;
void
mouseMoveEvent
(
QMouseEvent
*
)
override
;
void
keyPressEvent
(
QKeyEvent
*
)
override
;
void
keyReleaseEvent
(
QKeyEvent
*
)
override
;
private:
bool
mReadOnly
;
// value cannot be changed
};
...
...
src/lib/combobox.h
View file @
b9c32c88
...
...
@@ -52,11 +52,11 @@ class ComboBox : public KComboBox
*/
virtual
void
setReadOnly
(
bool
readOnly
);
protected:
void
mousePressEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseMoveEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
keyPressEvent
(
QKeyEvent
*
)
Q_DECL_OVERRIDE
;
void
keyReleaseEvent
(
QKeyEvent
*
)
Q_DECL_OVERRIDE
;
void
mousePressEvent
(
QMouseEvent
*
)
override
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
override
;
void
mouseMoveEvent
(
QMouseEvent
*
)
override
;
void
keyPressEvent
(
QKeyEvent
*
)
override
;
void
keyReleaseEvent
(
QKeyEvent
*
)
override
;
private:
bool
mReadOnly
;
// value cannot be changed
};
...
...
src/lib/groupbox.h
View file @
b9c32c88
...
...
@@ -57,11 +57,11 @@ class GroupBox : public QGroupBox
/** Returns true if the widget is read only. */
virtual
bool
isReadOnly
()
const
{
return
mReadOnly
;
}
protected:
void
mousePressEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
mouseMoveEvent
(
QMouseEvent
*
)
Q_DECL_OVERRIDE
;
void
keyPressEvent
(
QKeyEvent
*
)
Q_DECL_OVERRIDE
;
void
keyReleaseEvent
(
QKeyEvent
*
)
Q_DECL_OVERRIDE
;
void
mousePressEvent
(
QMouseEvent
*
)
override
;
void
mouseReleaseEvent
(
QMouseEvent
*
)
override
;
void
mouseMoveEvent
(
QMouseEvent
*
)
override
;
void
keyPressEvent
(
QKeyEvent
*
)
override
;
void
keyReleaseEvent
(
QKeyEvent
*
)
override
;
private:
bool
mReadOnly
;
// value cannot be changed
};
...
...
src/lib/label.h
View file @
b9c32c88
...
...
@@ -90,7 +90,7 @@ class LabelFocusWidget : public QWidget
explicit
LabelFocusWidget
(
QWidget
*
parent
);
protected:
void
focusInEvent
(
QFocusEvent
*
)
Q_DECL_OVERRIDE
;
void
focusInEvent
(
QFocusEvent
*
)
override
;
};
#endif // LABEL_H
...
...
src/lib/lineedit.h
View file @
b9c32c88
...
...
@@ -83,11 +83,11 @@ class LineEdit : public KLineEdit
void
setCursorAtEnd
(
bool
end
=
true
)
{
mSetCursorAtEnd
=
end
;
}
public
Q_SLOTS
:
/** Sets the contents of the line edit to be @p str. */
void
setText
(
const
QString
&
str
)
Q_DECL_OVERRIDE
;
void
setText
(
const
QString
&
str
)
override
;
protected:
void
focusInEvent
(
QFocusEvent
*
)
Q_DECL_OVERRIDE
;
void
dragEnterEvent
(
QDragEnterEvent
*
)
Q_DECL_OVERRIDE
;
void
dropEvent
(
QDropEvent
*
)
Q_DECL_OVERRIDE
;
void
focusInEvent
(
QFocusEvent
*
)
override
;
void
dragEnterEvent
(
QDragEnterEvent
*
)
override
;
void
dropEvent
(
QDropEvent
*
)
override
;
private:
void
init
();
...
...
src/lib/packedlayout.h
View file @
b9c32c88
...
...
@@ -41,17 +41,17 @@ class PackedLayout : public QLayout
explicit
PackedLayout
(
Qt
::
Alignment
alignment
);
~
PackedLayout
();
// Override QLayout methods
bool
hasHeightForWidth
()
const
Q_DECL_OVERRIDE
{
return
true
;
}
int
heightForWidth
(
int
w
)
const
Q_DECL_OVERRIDE
;
int
count
()
const
Q_DECL_OVERRIDE
{
return
mItems
.
count
();
}
void
addItem
(
QLayoutItem
*
item
)
Q_DECL_OVERRIDE
;