Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
8a28a98f
Commit
8a28a98f
authored
16 years ago
by
Thorbjørn Lindeijer
Browse files
Options
Downloads
Patches
Plain Diff
Some documentation for the settings database
parent
c9e88a96
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/coreplugin/icore.cpp
+17
-4
17 additions, 4 deletions
src/plugins/coreplugin/icore.cpp
src/plugins/coreplugin/settingsdatabase.cpp
+12
-0
12 additions, 0 deletions
src/plugins/coreplugin/settingsdatabase.cpp
with
29 additions
and
4 deletions
src/plugins/coreplugin/icore.cpp
+
17
−
4
View file @
8a28a98f
...
...
@@ -179,6 +179,19 @@
You can use it to retrieve or set application wide settings
(in contrast to session or project specific settings).
\see settingsDatabase()
*/
/*!
\fn SettingsDatabase *ICore::settingsDatabase() const
\brief Returns the application's settings database.
The settings database is meant as an alternative to the regular settings
object. It is more suitable for storing large amounts of data. The settings
are application wide.
\see SettingsDatabase
*/
/*!
...
...
@@ -186,7 +199,7 @@
\brief Returns the application's printer object.
Always use this printer object for printing, so the different parts of the
application re-use it
'
s settings.
application re-use its settings.
*/
/*!
...
...
@@ -251,7 +264,7 @@
\brief Registers an additional \a context object.
After registration this context object gets automatically the
current context object whenever it
'
s widget gets focus.
current context object whenever its widget gets focus.
\sa ICore::removeContextObject()
\sa ICore::addAdditionalContext()
...
...
@@ -324,11 +337,11 @@
/*!
\fn void ICore::contextAboutToChange(Core::IContext *context)
\brief Sent just before a new \a context becomes the current context
(meaning that it
'
s widget got focus).
(meaning that its widget got focus).
*/
/*!
\fn void ICore::contextChanged(Core::IContext *context)
\brief Sent just after a new \a context became the current context
(meaning that it
'
s widget got focus).
(meaning that its widget got focus).
*/
This diff is collapsed.
Click to expand it.
src/plugins/coreplugin/settingsdatabase.cpp
+
12
−
0
View file @
8a28a98f
...
...
@@ -34,6 +34,18 @@
#include
<QtSql/QSqlQuery>
#include
<QDebug>
/*!
\class Core::SettingsDatabase
\brief An alternative to the application-wide QSettings that is more
suitable for storing large amounts of data.
The settings database is SQLite based, and lazily retrieves data when it
is asked for. It also does incremental updates of the database rather than
rewriting the whole file each time one of the settings change.
The SettingsDatabase API mimics that of QSettings.
*/
using
namespace
Core
;
using
namespace
Core
::
Internal
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment