get rid of compactrepresentationexpander property
This commit is contained in:
parent
4a5c20f954
commit
b8a41a88f3
@ -245,21 +245,6 @@ void AppletLoader::setFullRepresentation(QQmlComponent *component)
|
|||||||
emit fullRepresentationChanged(component);
|
emit fullRepresentationChanged(component);
|
||||||
}
|
}
|
||||||
|
|
||||||
QQmlComponent *AppletLoader::compactRepresentationExpander()
|
|
||||||
{
|
|
||||||
return m_compactRepresentationExpander.data();
|
|
||||||
}
|
|
||||||
|
|
||||||
void AppletLoader::setCompactRepresentationExpander(QQmlComponent *component)
|
|
||||||
{
|
|
||||||
if (m_compactRepresentationExpander.data() == component) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_compactRepresentationExpander = component;
|
|
||||||
emit compactRepresentationExpanderChanged(component);
|
|
||||||
}
|
|
||||||
|
|
||||||
QQmlComponent *AppletLoader::preferredRepresentation()
|
QQmlComponent *AppletLoader::preferredRepresentation()
|
||||||
{
|
{
|
||||||
return m_preferredRepresentation.data();
|
return m_preferredRepresentation.data();
|
||||||
|
@ -59,9 +59,6 @@ class AppletLoader : public QQuickItem
|
|||||||
*/
|
*/
|
||||||
Q_PROPERTY(QQmlComponent *preferredRepresentation READ preferredRepresentation WRITE setPreferredRepresentation NOTIFY preferredRepresentationChanged)
|
Q_PROPERTY(QQmlComponent *preferredRepresentation READ preferredRepresentation WRITE setPreferredRepresentation NOTIFY preferredRepresentationChanged)
|
||||||
|
|
||||||
//FIXME: is it wise to expose this?
|
|
||||||
Q_PROPERTY(QQmlComponent *compactRepresentationExpander READ compactRepresentationExpander WRITE setCompactRepresentationExpander NOTIFY compactRepresentationExpanderChanged)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* True when the applet is showing its full representation. either as the main only view, or in a popup.
|
* True when the applet is showing its full representation. either as the main only view, or in a popup.
|
||||||
* Setting it will open or close the popup if the plasmoid is iconified, however it won't have effect if the applet is open
|
* Setting it will open or close the popup if the plasmoid is iconified, however it won't have effect if the applet is open
|
||||||
@ -105,10 +102,6 @@ public:
|
|||||||
QQmlComponent *preferredRepresentation();
|
QQmlComponent *preferredRepresentation();
|
||||||
void setPreferredRepresentation(QQmlComponent *component);
|
void setPreferredRepresentation(QQmlComponent *component);
|
||||||
|
|
||||||
|
|
||||||
QQmlComponent *compactRepresentationExpander();
|
|
||||||
void setCompactRepresentationExpander(QQmlComponent *component);
|
|
||||||
|
|
||||||
bool isExpanded() const;
|
bool isExpanded() const;
|
||||||
void setExpanded(bool expanded);
|
void setExpanded(bool expanded);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user