Changeset View
Changeset View
Standalone View
Standalone View
kcms/krdb/krdb.h
Show All 13 Lines | 1 | /* | |||
---|---|---|---|---|---|
14 | You should have received a copy of the GNU Library General Public License | 14 | You should have received a copy of the GNU Library General Public License | ||
15 | along with this library; see the file COPYING.LIB. If not, write to | 15 | along with this library; see the file COPYING.LIB. If not, write to | ||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef _KRDB_H_ | 20 | #ifndef _KRDB_H_ | ||
21 | #define _KRDB_H_ | 21 | #define _KRDB_H_ | ||
22 | #include <ksharedconfig.h> | ||||
22 | 23 | | |||
23 | enum KRdbAction | 24 | enum KRdbAction | ||
24 | { | 25 | { | ||
25 | KRdbExportColors = 0x0001, // Export colors to non-(KDE/Qt) apps | 26 | KRdbExportColors = 0x0001, // Export colors to non-(KDE/Qt) apps | ||
26 | KRdbExportQtColors = 0x0002, // Export KDE's colors to qtrc | 27 | KRdbExportQtColors = 0x0002, // Export KDE's colors to qtrc | ||
27 | KRdbExportQtSettings = 0x0004, // Export all possible qtrc settings, excluding colors | 28 | KRdbExportQtSettings = 0x0004, // Export all possible qtrc settings, excluding colors | ||
28 | KRdbExportXftSettings = 0x0008, // Export KDE's Xft (anti-alias) settings | 29 | KRdbExportXftSettings = 0x0008, // Export KDE's Xft (anti-alias) settings | ||
29 | KRdbExportGtkTheme = 0x0010, // Export KDE's widget style to Gtk if possible | 30 | KRdbExportGtkTheme = 0x0010, // Export KDE's widget style to Gtk if possible | ||
30 | KRdbExportGtkColors = 0x0012 // Export KDE's colors to Gtk if possible | 31 | KRdbExportGtkColors = 0x0020 // Export KDE's colors to Gtk if possible | ||
ahiemstra: Since this is treated as a flag, shouldn't this be 0x0020? Otherwise it would be equal to… | |||||
31 | }; | 32 | }; | ||
32 | 33 | | |||
33 | void runRdb( uint flags ); | 34 | void runRdb( uint flags ); | ||
35 | void saveGtkColors(); | ||||
36 | void saveGtkColors(KSharedConfigPtr& config); | ||||
34 | 37 | | |||
35 | #endif | 38 | #endif |
Since this is treated as a flag, shouldn't this be 0x0020? Otherwise it would be equal to KRdbExportQtColors & KRdbExportGtkTheme which is probably not what you want.