Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KAlarm
Commits
280b15da
Commit
280b15da
authored
Jan 28, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Q_NULLPTR
parent
e93c2346
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
birthdaymodel.h
birthdaymodel.h
+1
-1
collectionmodel.h
collectionmodel.h
+3
-3
itemlistmodel.h
itemlistmodel.h
+1
-1
lib/stackedwidgets.h
lib/stackedwidgets.h
+1
-1
No files found.
birthdaymodel.h
View file @
280b15da
...
...
@@ -70,7 +70,7 @@ class BirthdaySortModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
explicit
BirthdaySortModel
(
QObject
*
parent
=
0
);
explicit
BirthdaySortModel
(
QObject
*
parent
=
Q_NULLPTR
);
void
setPrefixSuffix
(
const
QString
&
prefix
,
const
QString
&
suffix
);
...
...
collectionmodel.h
View file @
280b15da
...
...
@@ -50,7 +50,7 @@ class CollectionListModel : public KDescendantsProxyModel
{
Q_OBJECT
public:
explicit
CollectionListModel
(
QObject
*
parent
=
0
);
explicit
CollectionListModel
(
QObject
*
parent
=
Q_NULLPTR
);
void
setEventTypeFilter
(
CalEvent
::
Type
);
void
setFilterWritable
(
bool
writable
);
void
setFilterEnabled
(
bool
enabled
);
...
...
@@ -113,7 +113,7 @@ class CollectionFilterCheckListModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
explicit
CollectionFilterCheckListModel
(
QObject
*
parent
=
0
);
explicit
CollectionFilterCheckListModel
(
QObject
*
parent
=
Q_NULLPTR
);
void
setEventTypeFilter
(
CalEvent
::
Type
);
Akonadi
::
Collection
collection
(
int
row
)
const
;
Akonadi
::
Collection
collection
(
const
QModelIndex
&
)
const
;
...
...
@@ -288,7 +288,7 @@ class CollectionControlModel : public Akonadi::FavoriteCollectionsModel
void
collectionPopulated
();
private:
explicit
CollectionControlModel
(
QObject
*
parent
=
0
);
explicit
CollectionControlModel
(
QObject
*
parent
=
Q_NULLPTR
);
void
findEnabledCollections
(
const
Akonadi
::
EntityMimeTypeFilterModel
*
,
const
QModelIndex
&
parent
,
Akonadi
::
Collection
::
List
&
)
const
;
CalEvent
::
Types
setEnabledStatus
(
const
Akonadi
::
Collection
&
,
CalEvent
::
Types
,
bool
inserted
);
static
CalEvent
::
Types
checkTypesToEnable
(
const
Akonadi
::
Collection
&
,
const
Akonadi
::
Collection
::
List
&
,
CalEvent
::
Types
);
...
...
itemlistmodel.h
View file @
280b15da
...
...
@@ -42,7 +42,7 @@ class ItemListModel : public Akonadi::EntityMimeTypeFilterModel
/** Constructor.
* @param allowed the alarm types (active/archived/template) included in this model
*/
explicit
ItemListModel
(
CalEvent
::
Types
allowed
,
QObject
*
parent
=
0
);
explicit
ItemListModel
(
CalEvent
::
Types
allowed
,
QObject
*
parent
=
Q_NULLPTR
);
CalEvent
::
Types
includedTypes
()
const
{
return
mAllowedTypes
;
}
KAEvent
event
(
int
row
)
const
;
...
...
lib/stackedwidgets.h
View file @
280b15da
...
...
@@ -68,7 +68,7 @@ template <class T>
class
StackedGroupT
:
public
QObject
{
public:
explicit
StackedGroupT
(
QObject
*
parent
=
0
)
:
QObject
(
parent
)
{}
explicit
StackedGroupT
(
QObject
*
parent
=
Q_NULLPTR
)
:
QObject
(
parent
)
{}
void
addWidget
(
StackedWidgetT
<
T
>*
w
)
{
mWidgets
+=
w
;
}
void
removeWidget
(
StackedWidgetT
<
T
>*
w
)
{
mWidgets
.
removeAll
(
w
);
}
virtual
QSize
minimumSizeHint
()
const
;
...
...
Write
Preview
Markdown
is supported
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