-rw-r--r-- | libopie2/opiecore/oconfig.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/oconfig.h b/libopie2/opiecore/oconfig.h index ab95dc3..05a1a25 100644 --- a/libopie2/opiecore/oconfig.h +++ b/libopie2/opiecore/oconfig.h | |||
@@ -106,49 +106,49 @@ private: | |||
106 | * out of scope, the group will automatically be restored. If you | 106 | * out of scope, the group will automatically be restored. If you |
107 | * want to use several different groups within a function or method, | 107 | * want to use several different groups within a function or method, |
108 | * you can still use OConfigGroupSaver: Simply enclose all work with | 108 | * you can still use OConfigGroupSaver: Simply enclose all work with |
109 | * one group (including the creation of the OConfigGroupSaver object) | 109 | * one group (including the creation of the OConfigGroupSaver object) |
110 | * in one block. | 110 | * in one block. |
111 | * | 111 | * |
112 | * \code | 112 | * \code |
113 | * OConfigGroupSaver saver(cfg,"TheGroupThatInWhat"); | 113 | * OConfigGroupSaver saver(cfg,"TheGroupThatInWhat"); |
114 | * \endcode | 114 | * \endcode |
115 | * | 115 | * |
116 | * Note that OConfigGroupSaver (cfg,"TheGroupThatInWhat"); would get imediately | 116 | * Note that OConfigGroupSaver (cfg,"TheGroupThatInWhat"); would get imediately |
117 | * destructed after created and that you would save in the old group which | 117 | * destructed after created and that you would save in the old group which |
118 | * is unwished. | 118 | * is unwished. |
119 | * | 119 | * |
120 | * @author Matthias Kalle Dalheimer <Kalle@kde.org> | 120 | * @author Matthias Kalle Dalheimer <Kalle@kde.org> |
121 | * @version $Id$ | 121 | * @version $Id$ |
122 | * @see OConfig | 122 | * @see OConfig |
123 | */ | 123 | */ |
124 | 124 | ||
125 | class OConfigGroupSaver | 125 | class OConfigGroupSaver |
126 | { | 126 | { |
127 | public: | 127 | public: |
128 | /** | 128 | /** |
129 | * Constructor. | 129 | * Constructor. |
130 | * Create the object giving a @config object and a @a group to become | 130 | * Create the object giving a OConfig object and a @a group to become |
131 | * the current group. | 131 | * the current group. |
132 | */ | 132 | */ |
133 | OConfigGroupSaver( OConfig* config, QString group ) :_config(config), _oldgroup(config->group() ) | 133 | OConfigGroupSaver( OConfig* config, QString group ) :_config(config), _oldgroup(config->group() ) |
134 | { _config->setGroup( group ); } | 134 | { _config->setGroup( group ); } |
135 | 135 | ||
136 | OConfigGroupSaver( OConfig* config, const char *group ) :_config(config), _oldgroup(config->group()) | 136 | OConfigGroupSaver( OConfig* config, const char *group ) :_config(config), _oldgroup(config->group()) |
137 | { _config->setGroup( group ); } | 137 | { _config->setGroup( group ); } |
138 | 138 | ||
139 | OConfigGroupSaver( OConfig* config, const QCString &group ) : _config(config), _oldgroup(config->group()) | 139 | OConfigGroupSaver( OConfig* config, const QCString &group ) : _config(config), _oldgroup(config->group()) |
140 | { _config->setGroup( group ); } | 140 | { _config->setGroup( group ); } |
141 | /** | 141 | /** |
142 | * Destructor. | 142 | * Destructor. |
143 | * Restores the last current group. | 143 | * Restores the last current group. |
144 | * @todo make it not inline for bc reasons. See KDE BC guide | 144 | * @todo make it not inline for bc reasons. See KDE BC guide |
145 | */ | 145 | */ |
146 | ~OConfigGroupSaver() { _config->setGroup( _oldgroup ); } | 146 | ~OConfigGroupSaver() { _config->setGroup( _oldgroup ); } |
147 | 147 | ||
148 | OConfig* config() { return _config; }; | 148 | OConfig* config() { return _config; }; |
149 | 149 | ||
150 | private: | 150 | private: |
151 | OConfig* _config; | 151 | OConfig* _config; |
152 | QString _oldgroup; | 152 | QString _oldgroup; |
153 | 153 | ||
154 | OConfigGroupSaver( const OConfigGroupSaver& ); | 154 | OConfigGroupSaver( const OConfigGroupSaver& ); |