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
80f27574
Commit
80f27574
authored
Jan 15, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Q_DECL_OVERRIDE
parent
80609967
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
collectionmodel.h
collectionmodel.h
+1
-1
itemlistmodel.h
itemlistmodel.h
+2
-2
lib/packedlayout.h
lib/packedlayout.h
+1
-1
No files found.
collectionmodel.h
View file @
80f27574
...
...
@@ -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
;
virtual
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
;
QVariant
data
(
const
QModelIndex
&
,
int
role
=
Qt
::
DisplayRole
)
const
Q_DECL_OVERRIDE
;
private:
bool
mUseCollectionColour
;
...
...
itemlistmodel.h
View file @
80f27574
...
...
@@ -110,8 +110,8 @@ class AlarmListModel : public ItemListModel
*/
CalEvent
::
Types
eventTypeFilter
()
const
{
return
mFilterTypes
;
}
virtual
int
columnCount
(
const
QModelIndex
&
=
QModelIndex
())
const
{
return
ColumnCount
;
}
virtual
QVariant
headerData
(
int
section
,
Qt
::
Orientation
,
int
role
=
Qt
::
DisplayRole
)
const
;
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
;
protected:
bool
filterAcceptsRow
(
int
sourceRow
,
const
QModelIndex
&
sourceParent
)
const
Q_DECL_OVERRIDE
;
...
...
lib/packedlayout.h
View file @
80f27574
...
...
@@ -48,7 +48,7 @@ class PackedLayout : public QLayout
virtual
QLayoutItem
*
itemAt
(
int
index
)
const
;
virtual
QLayoutItem
*
takeAt
(
int
index
);
virtual
void
setGeometry
(
const
QRect
&
r
);
virtual
QSize
sizeHint
()
const
{
return
minimumSize
();
}
QSize
sizeHint
()
const
Q_DECL_OVERRIDE
{
return
minimumSize
();
}
virtual
QSize
minimumSize
()
const
;
virtual
Qt
::
Orientations
expandingDirections
()
const
{
return
Qt
::
Vertical
|
Qt
::
Horizontal
;
}
virtual
void
invalidate
()
{
mWidthCached
=
mHeightCached
=
false
;
}
...
...
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