Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
qtquickcontrols-nemo
Commits
b2394a98
Commit
b2394a98
authored
Oct 19, 2017
by
Chupligin Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CalendarModel] fix const
parent
40ccb20a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
calendarmodel.cpp
src/models/calendarmodel.cpp
+1
-1
calendarmodel.h
src/models/calendarmodel.h
+2
-2
No files found.
src/models/calendarmodel.cpp
View file @
b2394a98
...
...
@@ -86,7 +86,7 @@ QVariant CalendarModel::data(const QModelIndex &index, int role) const
}
}
QVariant
CalendarModel
::
get
(
const
int
idx
)
QVariant
CalendarModel
::
get
(
const
int
idx
)
const
{
if
(
idx
>=
m_dateList
.
size
())
{
...
...
src/models/calendarmodel.h
View file @
b2394a98
...
...
@@ -61,13 +61,13 @@ public:
void
setMonth
(
int
month
);
void
setYear
(
int
year
);
QDate
currentDate
(){
return
m_currentDate
;}
const
QDate
currentDate
(){
return
m_currentDate
;}
QDate
selectedDate
(){
return
m_selectedDate
;}
int
month
(){
return
m_month
;}
int
year
(){
return
m_year
;}
public
slots
:
QVariant
get
(
const
int
idx
);
QVariant
get
(
const
int
idx
)
const
;
signals:
void
selectedDateChanged
();
...
...
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