summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2015-03-17 22:15:20 (GMT)
committerMontel Laurent <montel@kde.org>2015-03-17 22:15:20 (GMT)
commit080dba35b2b29446605b7f873b8ed2e7790ddb2a (patch)
treeece9142cba7440730bca0122d7adb49d49d5849a
parentae30a7fc5124cdb88979b1f2c94228152357c39d (diff)
kdelibs4support--
-rw-r--r--part.cpp6
-rw-r--r--ui/thumbnaillist.h7
2 files changed, 7 insertions, 6 deletions
diff --git a/part.cpp b/part.cpp
index 38384ff..14e6c55 100644
--- a/part.cpp
+++ b/part.cpp
@@ -365,10 +365,12 @@ m_cliPresentation(false), m_cliPrint(false), m_embedMode(detectEmbedMode(parentW
enableTOC( false );
// [left toolbox: Thumbnails and Bookmarks] | []
- KVBox * thumbsBox = new ThumbnailsBox( 0 );
- thumbsBox->setSpacing( 6 );
+ QWidget * thumbsBox = new ThumbnailsBox( 0 );
+ thumbsBox->layout()->setSpacing( 6 );
m_searchWidget = new SearchWidget( thumbsBox, m_document );
+ thumbsBox->layout()->addWidget(m_searchWidget);
m_thumbnailList = new ThumbnailList( thumbsBox, m_document );
+ thumbsBox->layout()->addWidget(m_thumbnailList);
// ThumbnailController * m_tc = new ThumbnailController( thumbsBox, m_thumbnailList );
connect( m_thumbnailList, SIGNAL(rightClick(const Okular::Page*,QPoint)), this, SLOT(slotShowMenu(const Okular::Page*,QPoint)) );
tbIndex = m_sidebar->addItem( thumbsBox, QIcon::fromTheme( "view-preview" ), i18n("Thumbnails") );
diff --git a/ui/thumbnaillist.h b/ui/thumbnaillist.h
index 815e14a..c37044b 100644
--- a/ui/thumbnaillist.h
+++ b/ui/thumbnaillist.h
@@ -12,11 +12,10 @@
#include <qscrollarea.h>
-#include <kvbox.h>
#include <qtoolbar.h>
#include "core/observer.h"
-
+#include <QVBoxLayout>
class ThumbnailListPrivate;
namespace Okular {
@@ -76,10 +75,10 @@ Q_OBJECT
/**
* @short A vertical boxed container with zero size hint (for insertion on left toolbox)
*/
-class ThumbnailsBox : public KVBox
+class ThumbnailsBox : public QWidget
{
public:
- ThumbnailsBox( QWidget * parent ) : KVBox( parent ) {}
+ ThumbnailsBox( QWidget * parent ) : QWidget( parent ) { QVBoxLayout *vbox = new QVBoxLayout(this); vbox->setMargin(0); vbox->setSpacing(0);}
QSize sizeHint() const { return QSize(); }
};