Commit e2dd3cd9 authored by Laurent Montel's avatar Laurent Montel 😁

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
...@@ -406,7 +406,8 @@ QSize Navigator::sizeHint() const ...@@ -406,7 +406,8 @@ QSize Navigator::sizeHint() const
int viewHeight = QListView::sizeHint().height(); 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) void Navigator::dragEnterEvent(QDragEnterEvent *event)
...@@ -554,7 +555,8 @@ void IconSidePane::updatePlugins() ...@@ -554,7 +555,8 @@ void IconSidePane::updatePlugins()
void IconSidePane::resizeEvent(QResizeEvent *event) void IconSidePane::resizeEvent(QResizeEvent *event)
{ {
Q_UNUSED(event); Q_UNUSED(event);
setMaximumWidth(mNavigator->sizeHint().width()); const int newWidth(mNavigator->sizeHint().width());
setMinimumWidth(mNavigator->sizeHint().width()); setFixedWidth(newWidth);
mNavigator->setFixedWidth(newWidth);
} }
...@@ -29,9 +29,8 @@ using namespace Kontact; ...@@ -29,9 +29,8 @@ using namespace Kontact;
SidePaneBase::SidePaneBase(KontactInterface::Core *core, QWidget *parent) SidePaneBase::SidePaneBase(KontactInterface::Core *core, QWidget *parent)
: QWidget(parent), mCore(core) : QWidget(parent), mCore(core)
{ {
QVBoxLayout *layout = new QVBoxLayout; QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0); layout->setMargin(0);
setLayout(layout);
} }
SidePaneBase::~SidePaneBase() SidePaneBase::~SidePaneBase()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment