maximizing the panel actually works
This commit is contained in:
parent
6bccf2d1af
commit
664fd4167c
@ -126,6 +126,19 @@ KConfigGroup PanelView::config() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PanelView::maximize()
|
||||||
|
{
|
||||||
|
int length;
|
||||||
|
if (containment()->formFactor() == Plasma::Types::Vertical) {
|
||||||
|
length = screen()->size().height();
|
||||||
|
} else {
|
||||||
|
length = screen()->size().width();
|
||||||
|
}
|
||||||
|
setOffset(0);
|
||||||
|
setMinimumLength(length);
|
||||||
|
setMaximumLength(length);
|
||||||
|
}
|
||||||
|
|
||||||
Qt::Alignment PanelView::alignment() const
|
Qt::Alignment PanelView::alignment() const
|
||||||
{
|
{
|
||||||
return m_alignment;
|
return m_alignment;
|
||||||
|
@ -54,6 +54,8 @@ public:
|
|||||||
|
|
||||||
virtual KConfigGroup config() const;
|
virtual KConfigGroup config() const;
|
||||||
|
|
||||||
|
Q_INVOKABLE void maximize();
|
||||||
|
|
||||||
Qt::Alignment alignment() const;
|
Qt::Alignment alignment() const;
|
||||||
void setAlignment(Qt::Alignment alignment);
|
void setAlignment(Qt::Alignment alignment);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user