fix some struct <-> class warnings

This commit is contained in:
Ivailo Monev 2015-01-15 21:27:54 +00:00
parent 0805987233
commit e510a2a866
2 changed files with 8 additions and 4 deletions

View file

@ -54,7 +54,8 @@ private:
int xkbOpcode; int xkbOpcode;
}; };
struct XkbConfig { class XkbConfig {
public:
QString keyboardModel; QString keyboardModel;
QStringList layouts; QStringList layouts;
QStringList variants; QStringList variants;
@ -64,7 +65,8 @@ struct XkbConfig {
}; };
struct LayoutUnit { class LayoutUnit {
public:
static const int MAX_LABEL_LENGTH; static const int MAX_LABEL_LENGTH;
//TODO: move these to private? //TODO: move these to private?
@ -106,7 +108,8 @@ private:
QKeySequence shortcut; QKeySequence shortcut;
}; };
struct LayoutSet { class LayoutSet {
public:
QList<LayoutUnit> layouts; QList<LayoutUnit> layouts;
LayoutUnit currentLayout; LayoutUnit currentLayout;

View file

@ -85,7 +85,8 @@ struct OptionGroupInfo: public ConfigItem {
} }
}; };
struct Rules { class Rules {
public:
enum ExtrasFlag { NO_EXTRAS, READ_EXTRAS }; enum ExtrasFlag { NO_EXTRAS, READ_EXTRAS };
static const char XKB_OPTION_GROUP_SEPARATOR; static const char XKB_OPTION_GROUP_SEPARATOR;