[Add] Added a remove option for pages.

This commit is contained in:
Rtch90 2014-12-18 15:37:21 +00:00
parent 7d27339267
commit 59410e6233
4 changed files with 11 additions and 1 deletions

View File

@ -11,5 +11,6 @@
<file>../img/about.png</file>
<file>../img/collapse.png</file>
<file>../img/expand.png</file>
<file>../img/remove.png</file>
</qresource>
</RCC>

BIN
img/remove.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

View File

@ -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);

View File

@ -70,6 +70,7 @@ private:
QLabel* fileNameLabel;
QPushButton* collapseButton;
QPushButton* removeButton;
PagesContainerWidget* pagesContainerWidget;
QScrollArea* scrollArea;
QWidget* ancestor;