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
e2dd3cd9
Commit
e2dd3cd9
authored
Aug 04, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug 366206 - Left panel of Kontact does not fit properly in left space of Kontact
FIXED-IN: 5.3.0 BUG: 366206
parent
1a99de2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
kontact/src/iconsidepane.cpp
kontact/src/iconsidepane.cpp
+5
-3
kontact/src/sidepanebase.cpp
kontact/src/sidepanebase.cpp
+1
-2
No files found.
kontact/src/iconsidepane.cpp
View file @
e2dd3cd9
...
...
@@ -406,7 +406,8 @@ QSize Navigator::sizeHint() const
int
viewHeight
=
QListView
::
sizeHint
().
height
();
return
QSize
(
maxWidth
+
rect
().
width
()
-
contentsRect
().
width
(),
viewHeight
);
QSize
size
(
maxWidth
+
rect
().
width
()
-
contentsRect
().
width
(),
viewHeight
);
return
size
;
}
void
Navigator
::
dragEnterEvent
(
QDragEnterEvent
*
event
)
...
...
@@ -554,7 +555,8 @@ void IconSidePane::updatePlugins()
void
IconSidePane
::
resizeEvent
(
QResizeEvent
*
event
)
{
Q_UNUSED
(
event
);
setMaximumWidth
(
mNavigator
->
sizeHint
().
width
());
setMinimumWidth
(
mNavigator
->
sizeHint
().
width
());
const
int
newWidth
(
mNavigator
->
sizeHint
().
width
());
setFixedWidth
(
newWidth
);
mNavigator
->
setFixedWidth
(
newWidth
);
}
kontact/src/sidepanebase.cpp
View file @
e2dd3cd9
...
...
@@ -29,9 +29,8 @@ using namespace Kontact;
SidePaneBase
::
SidePaneBase
(
KontactInterface
::
Core
*
core
,
QWidget
*
parent
)
:
QWidget
(
parent
),
mCore
(
core
)
{
QVBoxLayout
*
layout
=
new
QVBoxLayout
;
QVBoxLayout
*
layout
=
new
QVBoxLayout
(
this
)
;
layout
->
setMargin
(
0
);
setLayout
(
layout
);
}
SidePaneBase
::~
SidePaneBase
()
...
...
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