[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kontact/src
From: Rafael Fernández López <ereslibre () kde ! org>
Date: 2008-08-20 13:53:32
Message-ID: 1219240412.567494.21741.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 849937 by ereslibre:
Use a queued connection so this is always updated when the sizes have been recalculated
M +6 -0 iconsidepane.cpp
M +1 -0 iconsidepane.h
--- trunk/KDE/kdepim/kontact/src/iconsidepane.cpp #849936:849937
@@ -25,6 +25,7 @@
#include "plugin.h"
#include "prefs.h"
+#include <QtCore/QTimer>
#include <QtGui/QStringListModel>
#include <QtGui/QSortFilterProxyModel>
#include <QtGui/QDragEnterEvent>
@@ -462,6 +463,11 @@
mModel->emitLayoutChanged();
+ QTimer::singleShot( 0, this, SLOT(updateNavigatorSize()) );
+}
+
+void Navigator::updateNavigatorSize()
+{
parentWidget()->setMaximumWidth( sizeHint().width() );
parentWidget()->setMinimumWidth( sizeHint().width() );
}
--- trunk/KDE/kdepim/kontact/src/iconsidepane.h #849936:849937
@@ -81,6 +81,7 @@
private slots:
void slotCurrentChanged( const QModelIndex ¤t );
void slotActionTriggered( bool checked );
+ void updateNavigatorSize();
private:
SidePaneBase *mSidePane;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic