Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
51763ff1
Commit
51763ff1
authored
Nov 10, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix position
parent
e856a47d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pimcommon/widgets/splittercollapser.cpp
pimcommon/widgets/splittercollapser.cpp
+3
-2
No files found.
pimcommon/widgets/splittercollapser.cpp
View file @
51763ff1
...
...
@@ -32,6 +32,7 @@ License along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QStyleOptionToolButton>
#include <QStylePainter>
#include <QTimeLine>
#include <QDebug>
using
namespace
PimCommon
;
...
...
@@ -139,13 +140,13 @@ void SplitterCollapser::Private::updatePosition()
const
int
splitterHeight
=
mSplitter
->
height
();
if
(
mDirection
==
TopToBottom
)
{
if
(
isVisible
())
{
y
=
widgetRect
.
bottom
()
-
h
eight
;
y
=
widgetRect
.
bottom
()
+
h
andleWidth
;
}
else
{
y
=
0
;
}
}
else
{
// BottomToTop
if
(
isVisible
())
{
y
=
widgetRect
.
top
()
+
handleWidth
;
y
=
widgetRect
.
top
()
-
handleWidth
-
height
;
}
else
{
y
=
splitterHeight
-
handleWidth
-
height
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment