Plasma/libplasma2/API Review/Theme: Difference between revisions
No edit summary |
|||
Line 10: | Line 10: | ||
! Method | ! Method | ||
{{FeatureDone|Keep| explicit Theme(QObject *parent )}} | {{FeatureDone|Keep| explicit Theme(QObject *parent ); will create the standard "global" theme}} | ||
{{ | {{FeatureInProgress|Keep| explicit Theme(const QString &themeName, QObject *parent ); -> will create a "custom" theme}} | ||
{{FeatureDone|Keep| ~Theme();}} | {{FeatureDone|Keep| ~Theme();}} | ||
Line 52: | Line 52: | ||
! Method | ! Method | ||
{{FeatureDone|Keep| }} | {{FeatureTodo|Remove| static Theme *defaultTheme(); -> the dpointer will be implicitly shared: if a theme is created with a different name a new dpointer is created.}} | ||
{{FeatureDone|Keep| }} | {{FeatureDone|Keep| void setThemeName(const QString &themeName);}} | ||
{{FeatureDone|Keep| }} | {{FeatureDone|Keep| QString themeName() const;}} | ||
{{FeatureDone|Keep| }} | {{FeatureDone|Keep| QString imagePath(const QString &name) const;}} | ||
{{FeatureDone|Keep| bool currentThemeHasImage(const QString &name) const;}} | |||
{{FeatureDone|Keep| QString wallpaperPath(const QSize &size = QSize()) const;}} | |||
{{FeatureDone|Keep| KSharedConfigPtr colorScheme() const;}} | |||
{{FeatureDone|Keep| QColor color(ColorRole role) const;}} | |||
{{FeatureDone|Keep| bool windowTranslucencyEnabled() const;}} | |||
{{FeatureTodo|Rename| void setUseGlobalSettings(bool useGlobal); -> void setConfigurationGroupName(const QString &name);}} | |||
{{FeatureTodo|Rename| bool useGlobalSettings() const; -> QString configurationGroupName() const; '''Note''': store config group name in the KConfigGroup object in the dptr}} | |||
{{FeatureDone|Keep| }} | {{FeatureDone|Keep| }} | ||
{{FeatureDone|Keep| }} | {{FeatureDone|Keep| }} |
Revision as of 14:47, 11 March 2013
Properties and invokables
All removed, only declared in the subclass in the QML bindings
Constructors
Status | Action | Method |
---|---|---|
DONE | Keep | explicit Theme(QObject *parent ); will create the standard "global" theme |
IN PROGRESS | Keep | explicit Theme(const QString &themeName, QObject *parent ); -> will create a "custom" theme |
DONE | Keep | ~Theme();
|
Enums
Status | Action | Method | |
---|---|---|---|
DONE | Keep | ColorRole | |
TO DO | Remove | FontRole | <{{{3}}}>
|
Fonts
Status | Action | Method | |
---|---|---|---|
TO DO | Remove | {{{2}}} | <{{{3}}}> |
TO DO | Remove | QFont font(FontRole role) const; | <{{{3}}}> |
TO DO | Remove | QFontMetrics fontMetrics() const; | <{{{3}}}>
|
Other methods
Status | Action | Method | |
---|---|---|---|
TO DO | Remove | static Theme *defaultTheme(); -> the dpointer will be implicitly shared: if a theme is created with a different name a new dpointer is created. | <{{{3}}}> |
DONE | Keep | void setThemeName(const QString &themeName); | |
DONE | Keep | QString themeName() const; | |
DONE | Keep | QString imagePath(const QString &name) const; | |
DONE | Keep | bool currentThemeHasImage(const QString &name) const; | |
DONE | Keep | {{{2}}} | |
DONE | Keep | KSharedConfigPtr colorScheme() const; | |
DONE | Keep | QColor color(ColorRole role) const; | |
DONE | Keep | bool windowTranslucencyEnabled() const; | |
TO DO | Rename | void setUseGlobalSettings(bool useGlobal); -> void setConfigurationGroupName(const QString &name); | <{{{3}}}> |
TO DO | Rename | bool useGlobalSettings() const; -> QString configurationGroupName() const; Note: store config group name in the KConfigGroup object in the dptr | <{{{3}}}> |
DONE | Keep | ||
DONE | Keep | ||
DONE | Keep | ||
DONE | Keep | ||
DONE | Keep | ||
DONE | Keep | ||
DONE | Keep | ||
DONE | Keep | ||
DONE | Keep | ||
DONE | Keep |
|