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
PIM EventViews
Commits
9210262d
Commit
9210262d
authored
Dec 03, 2019
by
Laurent Montel
😁
Browse files
Don't use nullptr for flags
parent
6ea0eaa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/agenda/timelabels.h
View file @
9210262d
...
@@ -41,7 +41,7 @@ class TimeLabels : public QFrame
...
@@ -41,7 +41,7 @@ class TimeLabels : public QFrame
public:
public:
typedef
QList
<
TimeLabels
*>
List
;
typedef
QList
<
TimeLabels
*>
List
;
TimeLabels
(
const
QTimeZone
&
zone
,
int
rows
,
TimeLabelsZone
*
parent
=
nullptr
,
Qt
::
WindowFlags
f
=
nullptr
);
TimeLabels
(
const
QTimeZone
&
zone
,
int
rows
,
TimeLabelsZone
*
parent
=
nullptr
,
Qt
::
WindowFlags
f
=
{}
);
/** updates widget's internal state */
/** updates widget's internal state */
void
updateConfig
();
void
updateConfig
();
...
...
src/todo/todomodel.cpp
View file @
9210262d
...
@@ -795,7 +795,7 @@ bool TodoModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int r
...
@@ -795,7 +795,7 @@ bool TodoModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int r
Qt
::
ItemFlags
TodoModel
::
flags
(
const
QModelIndex
&
index
)
const
Qt
::
ItemFlags
TodoModel
::
flags
(
const
QModelIndex
&
index
)
const
{
{
if
(
!
index
.
isValid
())
{
if
(
!
index
.
isValid
())
{
return
nullptr
;
return
Qt
::
NoItemFlags
;
}
}
Qt
::
ItemFlags
ret
=
QAbstractItemModel
::
flags
(
index
);
Qt
::
ItemFlags
ret
=
QAbstractItemModel
::
flags
(
index
);
...
@@ -807,7 +807,7 @@ Qt::ItemFlags TodoModel::flags(const QModelIndex &index) const
...
@@ -807,7 +807,7 @@ Qt::ItemFlags TodoModel::flags(const QModelIndex &index) const
Q_ASSERT
(
mapToSource
(
index
).
isValid
());
Q_ASSERT
(
mapToSource
(
index
).
isValid
());
qCWarning
(
CALENDARVIEW_LOG
)
<<
"Item is invalid "
<<
index
;
qCWarning
(
CALENDARVIEW_LOG
)
<<
"Item is invalid "
<<
index
;
Q_ASSERT
(
false
);
Q_ASSERT
(
false
);
return
nullptr
;
return
Qt
::
NoItemFlags
;
}
}
ret
|=
Qt
::
ItemIsDragEnabled
;
ret
|=
Qt
::
ItemIsDragEnabled
;
...
...
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