From 65e219e1dd55bbebc7c02feddfa2b770f4d80f3a Mon Sep 17 00:00:00 2001 From: ZackaryWelch Date: Wed, 21 Mar 2018 18:49:01 -0400 Subject: Added a splitter for the bookmarks menu to be able to change size --- src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp') diff --git a/src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp b/src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp index 39d4e314..a90007d8 100644 --- a/src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp +++ b/src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp @@ -8,10 +8,13 @@ #include "BookmarkMenu.h" #include "ui_BookmarkMenu.h" #include +#include +#include BookmarkMenu::BookmarkMenu(Renderer *Backend, QWidget *parent) : QWidget(parent), ui(new Ui::BookmarkMenu()), BACKEND(Backend){ ui->setupUi(this); - connect(ui->closeButton, SIGNAL(clicked()), this, SLOT(close())); + connect(ui->closeButton, &QPushButton::clicked, parent, [=]() { static_cast(parent)->setSizes(QList() << 0 << this->width()); }); + connect(ui->closeButton, &QPushButton::clicked, parent, [=]() { }); connect(ui->bookmarks, &QTreeWidget::itemClicked, this, [=](QTreeWidgetItem *item) { Backend->handleLink(item->data(1, Qt::UserRole).toString()); }); } -- cgit