diff --git a/bin/hpdf.qrc b/bin/hpdf.qrc
index 6e886bb..e263e67 100644
--- a/bin/hpdf.qrc
+++ b/bin/hpdf.qrc
@@ -11,5 +11,6 @@
../img/about.png
../img/collapse.png
../img/expand.png
+ ../img/remove.png
diff --git a/img/remove.png b/img/remove.png
new file mode 100644
index 0000000..37c5279
Binary files /dev/null and b/img/remove.png differ
diff --git a/src/pdf_file_widget.cpp b/src/pdf_file_widget.cpp
index c4a0ded..a09cda7 100644
--- a/src/pdf_file_widget.cpp
+++ b/src/pdf_file_widget.cpp
@@ -58,12 +58,20 @@ PDFFileWidget::PDFFileWidget(QWidget* parent) :QFrame(parent) {
topLayout->addWidget(collapseButton, 0, 0);
fileNameLabel = new QLabel();
+ fileNameLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
topLayout->addWidget(fileNameLabel, 0, 1);
+
+ removeButton = new QPushButton();
+ removeButton->resize(QSize(COLLAPSE_BUTTON_WIDTH, COLLAPSE_BUTTON_HEIGHT));
+ removeButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+ removeButton->setIcon(QIcon(":img/remove.png"));
+ /*connect(collapseButton, SIGNAL(released()), this, SLOT(collapsedButtonClick()));*/
+ topLayout->addWidget(removeButton, 0, 2);
pagesContainerWidget = new PagesContainerWidget();
scrollArea = new QScrollArea();
scrollArea->setWidget(pagesContainerWidget);
- topLayout->addWidget(scrollArea, 1, 0, 1, 5);
+ topLayout->addWidget(scrollArea, 1, 0, 1, 3);
setLayout(topLayout);
diff --git a/src/pdf_file_widget.h b/src/pdf_file_widget.h
index 63e2196..0c19ac8 100644
--- a/src/pdf_file_widget.h
+++ b/src/pdf_file_widget.h
@@ -70,6 +70,7 @@ private:
QLabel* fileNameLabel;
QPushButton* collapseButton;
+ QPushButton* removeButton;
PagesContainerWidget* pagesContainerWidget;
QScrollArea* scrollArea;
QWidget* ancestor;