diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-21 18:49:01 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-03-21 18:49:13 -0400 |
commit | 65e219e1dd55bbebc7c02feddfa2b770f4d80f3a (patch) | |
tree | 17c4159c88457ab3ec33ddf8a8c3966ff26ffb61 /src-qt5/desktop-utils/lumina-pdf/BookmarkMenu.cpp | |
parent | Update the port makefile for deskutils/lumina-pdf to expose the MuPDF/Poppler... (diff) | |
download | lumina-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.cpp | 5 |
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()); }); } |