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
KStars
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
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
Education
KStars
Commits
702d2ed0
Commit
702d2ed0
authored
Jul 16, 2012
by
Samikshan Bairagya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed memleaks.
parent
b806d7c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
kstars/tools/WhatsInteresting/WIView.cpp
kstars/tools/WhatsInteresting/WIView.cpp
+4
-2
kstars/tools/WhatsInteresting/modelmanager.cpp
kstars/tools/WhatsInteresting/modelmanager.cpp
+9
-1
No files found.
kstars/tools/WhatsInteresting/WIView.cpp
View file @
702d2ed0
...
...
@@ -48,13 +48,15 @@ WIView::WIView ( QObject *parent, ObsConditions *obs) : QObject(parent)
baseView
->
show
();
}
WIView
::~
WIView
()
{}
WIView
::~
WIView
()
{
delete
m
;
}
void
WIView
::
onCatListItemClicked
(
QString
category
)
{
if
(
category
==
"Planetary Objects"
)
{
kDebug
()
<<
"Planetary Objects"
;
ctxt
->
setContextProperty
(
"catListModel"
,
QVariant
::
fromValue
(
m
->
returnCatListModel
(
ModelManager
::
PlanetaryObjects
)));
soTypeTextObj
->
setProperty
(
"text"
,
category
);
soTypeTextObj
->
setProperty
(
"visible"
,
true
);
...
...
kstars/tools/WhatsInteresting/modelmanager.cpp
View file @
702d2ed0
...
...
@@ -39,7 +39,15 @@ ModelManager::ModelManager(ObsConditions *obs)
updateModels
();
}
ModelManager
::~
ModelManager
()
{}
ModelManager
::~
ModelManager
()
{
delete
planetsModel
;
delete
starsModel
;
delete
galModel
;
delete
conModel
;
delete
starClustModel
;
delete
nebModel
;
}
void
ModelManager
::
updateModels
()
{
...
...
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