aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp
diff options
context:
space:
mode:
authorZackaryWelch <welch.zackary@gmail.com>2018-03-21 18:49:01 -0400
committerZackaryWelch <welch.zackary@gmail.com>2018-03-21 18:49:13 -0400
commit65e219e1dd55bbebc7c02feddfa2b770f4d80f3a (patch)
tree17c4159c88457ab3ec33ddf8a8c3966ff26ffb61 /src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp
parentUpdate the port makefile for deskutils/lumina-pdf to expose the MuPDF/Poppler... (diff)
downloadlumina-65e219e1dd55bbebc7c02feddfa2b770f4d80f3a.tar.gz
lumina-65e219e1dd55bbebc7c02feddfa2b770f4d80f3a.tar.bz2
lumina-65e219e1dd55bbebc7c02feddfa2b770f4d80f3a.zip
Added a splitter for the bookmarks menu to be able to change size
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp5
1 files changed, 4 insertions, 1 deletions
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 <LuminaXDG.h>
+#include <QSplitter>
+#include <QPushButton>
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<QSplitter*>(parent)->setSizes(QList<int>() << 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()); });
}
bgstack15