QCss: unexport some classes
and export only the non-inline functions inside them. Inline functions don't need exporting, and some compilers are known to have problems inlining inline functions of exported classes. Change-Id: I843adc0ab493817e71f48ab87bfefb03d4ca918d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
707eb8d28d
commit
3be9d6d116
@ -345,7 +345,7 @@ enum StyleFeature {
|
||||
NumKnownStyleFeatures = 4
|
||||
};
|
||||
|
||||
struct Q_GUI_EXPORT Value
|
||||
struct Value
|
||||
{
|
||||
enum Type {
|
||||
Unknown,
|
||||
@ -364,7 +364,8 @@ struct Q_GUI_EXPORT Value
|
||||
inline Value() : type(Unknown) { }
|
||||
Type type;
|
||||
QVariant variant;
|
||||
QString toString() const;
|
||||
|
||||
Q_GUI_EXPORT QString toString() const;
|
||||
};
|
||||
|
||||
struct ColorData {
|
||||
@ -627,7 +628,7 @@ enum StyleSheetOrigin {
|
||||
StyleSheetOrigin_Inline
|
||||
};
|
||||
|
||||
struct Q_GUI_EXPORT StyleSheet
|
||||
struct StyleSheet
|
||||
{
|
||||
StyleSheet() : origin(StyleSheetOrigin_Unspecified), depth(0) { }
|
||||
QVector<StyleRule> styleRules; //only contains rules that are not indexed
|
||||
@ -638,7 +639,8 @@ struct Q_GUI_EXPORT StyleSheet
|
||||
int depth; // applicable only for inline style sheets
|
||||
QMultiHash<QString, StyleRule> nameIndex;
|
||||
QMultiHash<QString, StyleRule> idIndex;
|
||||
void buildIndexes(Qt::CaseSensitivity nameCaseSensitivity = Qt::CaseSensitive);
|
||||
|
||||
Q_GUI_EXPORT void buildIndexes(Qt::CaseSensitivity nameCaseSensitivity = Qt::CaseSensitive);
|
||||
};
|
||||
|
||||
class Q_GUI_EXPORT StyleSelector
|
||||
@ -724,13 +726,13 @@ enum TokenType {
|
||||
OR
|
||||
};
|
||||
|
||||
struct Q_GUI_EXPORT Symbol
|
||||
struct Symbol
|
||||
{
|
||||
inline Symbol() : token(NONE), start(0), len(-1) {}
|
||||
TokenType token;
|
||||
QString text;
|
||||
int start, len;
|
||||
QString lexem() const;
|
||||
Q_GUI_EXPORT QString lexem() const;
|
||||
};
|
||||
|
||||
class Q_GUI_EXPORT Scanner
|
||||
|
Loading…
Reference in New Issue
Block a user