Consistency
Use the thickness() method to query the thickness instead of querying KConfig directly
This commit is contained in:
parent
d988b6f5da
commit
653d044292
@ -408,8 +408,7 @@ void PanelView::restore()
|
|||||||
m_maxLength = qBound<int>(MINSIZE, m_maxLength, maxSize);
|
m_maxLength = qBound<int>(MINSIZE, m_maxLength, maxSize);
|
||||||
m_minLength = qBound<int>(MINSIZE, m_minLength, maxSize);
|
m_minLength = qBound<int>(MINSIZE, m_minLength, maxSize);
|
||||||
|
|
||||||
resize(config().readEntry<int>("thickness", 32),
|
resize(thickness(), qBound<int>(MINSIZE, length(), maxSize));
|
||||||
qBound<int>(MINSIZE, config().readEntry<int>("length", screen()->size().height()), maxSize));
|
|
||||||
|
|
||||||
setMinimumHeight(m_minLength);
|
setMinimumHeight(m_minLength);
|
||||||
setMaximumHeight(m_maxLength);
|
setMaximumHeight(m_maxLength);
|
||||||
@ -423,8 +422,7 @@ void PanelView::restore()
|
|||||||
m_maxLength = qBound<int>(MINSIZE, m_maxLength, maxSize);
|
m_maxLength = qBound<int>(MINSIZE, m_maxLength, maxSize);
|
||||||
m_minLength = qBound<int>(MINSIZE, m_minLength, maxSize);
|
m_minLength = qBound<int>(MINSIZE, m_minLength, maxSize);
|
||||||
|
|
||||||
resize(qBound<int>(MINSIZE, config().readEntry<int>("length", screen()->size().width()), maxSize),
|
resize(qBound<int>(MINSIZE, length(), maxSize), thickness());
|
||||||
config().readEntry<int>("thickness", 32));
|
|
||||||
|
|
||||||
setMinimumWidth(m_minLength);
|
setMinimumWidth(m_minLength);
|
||||||
setMaximumWidth(m_maxLength);
|
setMaximumWidth(m_maxLength);
|
||||||
|
Loading…
Reference in New Issue
Block a user