-rw-r--r-- | libopie2/opiecore/oconfig.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie2/opiecore/oconfig.h b/libopie2/opiecore/oconfig.h index 29c1f86..8c3060c 100644 --- a/libopie2/opiecore/oconfig.h +++ b/libopie2/opiecore/oconfig.h | |||
@@ -58,34 +58,34 @@ class OConfig : public Config | |||
58 | /** | 58 | /** |
59 | * Destructs the OConfig object. | 59 | * Destructs the OConfig object. |
60 | * | 60 | * |
61 | * Writes back any dirty configuration entries, and destroys | 61 | * Writes back any dirty configuration entries, and destroys |
62 | * dynamically created objects. | 62 | * dynamically created objects. |
63 | */ | 63 | */ |
64 | virtual ~OConfig(); | 64 | virtual ~OConfig(); |
65 | /** | 65 | /** |
66 | * @returns the name of the current group. | 66 | * @returns the name of the current group. |
67 | * The current group is used for searching keys and accessing entries. | 67 | * The current group is used for searching keys and accessing entries. |
68 | * @todo make const | 68 | * @todo make const |
69 | */ | 69 | */ |
70 | const QString& group() { return git.key(); }; | 70 | const QString& group()const { return git.key(); }; |
71 | /** | 71 | /** |
72 | * @returns a @ref QColor entry or a @a default value if the key is not found. | 72 | * @returns a @ref QColor entry or a @a default value if the key is not found. |
73 | */ | 73 | */ |
74 | QColor readColorEntry( const QString& key, const QColor* pDefault ) const; | 74 | QColor readColorEntry( const QString& key, const QColor* pDefault ) const; |
75 | /** | 75 | /** |
76 | * @returns a @ref QFont value or a @a default value if the key is not found. | 76 | * @returns a @ref QFont value or a @a default value if the key is not found. |
77 | */ | 77 | */ |
78 | QFont readFontEntry( const QString& key, const QFont* pDefault ) const; | 78 | QFont readFontEntry( const QString& key, const QFont* pDefault ) const; |
79 | 79 | ||
80 | private: | 80 | private: |
81 | class Private; | 81 | class Private; |
82 | Private *d; | 82 | Private *d; |
83 | }; | 83 | }; |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * @brief Helper class for easier use of OConfig groups. | 86 | * @brief Helper class for easier use of OConfig groups. |
87 | * | 87 | * |
88 | * Careful programmers always set the group of a | 88 | * Careful programmers always set the group of a |
89 | * @ref OConfig object to the group they want to read from | 89 | * @ref OConfig object to the group they want to read from |
90 | * and set it back to the old one of afterwards. This is usually | 90 | * and set it back to the old one of afterwards. This is usually |
91 | * written as: | 91 | * written as: |
@@ -135,20 +135,20 @@ class OConfigGroupSaver | |||
135 | * @todo make it not inline for bc reasons. See KDE BC guide | 135 | * @todo make it not inline for bc reasons. See KDE BC guide |
136 | */ | 136 | */ |
137 | ~OConfigGroupSaver() { _config->setGroup( _oldgroup ); } | 137 | ~OConfigGroupSaver() { _config->setGroup( _oldgroup ); } |
138 | 138 | ||
139 | OConfig* config() { return _config; }; | 139 | OConfig* config() { return _config; }; |
140 | 140 | ||
141 | private: | 141 | private: |
142 | OConfig* _config; | 142 | OConfig* _config; |
143 | QString _oldgroup; | 143 | QString _oldgroup; |
144 | 144 | ||
145 | OConfigGroupSaver( const OConfigGroupSaver& ); | 145 | OConfigGroupSaver( const OConfigGroupSaver& ); |
146 | OConfigGroupSaver& operator=( const OConfigGroupSaver& ); | 146 | OConfigGroupSaver& operator=( const OConfigGroupSaver& ); |
147 | 147 | ||
148 | class Private; | 148 | class Private; |
149 | Private *d; | 149 | Private *d; |
150 | }; | 150 | }; |
151 | } | 151 | } |
152 | } | 152 | } |
153 | 153 | ||
154 | #endif // OCONFIG_H | 154 | #endif // OCONFIG_H |