[Add] Added a remove option for pages.
This commit is contained in:
parent
7d27339267
commit
59410e6233
@ -11,5 +11,6 @@
|
|||||||
<file>../img/about.png</file>
|
<file>../img/about.png</file>
|
||||||
<file>../img/collapse.png</file>
|
<file>../img/collapse.png</file>
|
||||||
<file>../img/expand.png</file>
|
<file>../img/expand.png</file>
|
||||||
|
<file>../img/remove.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
BIN
img/remove.png
Normal file
BIN
img/remove.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 507 B |
@ -58,12 +58,20 @@ PDFFileWidget::PDFFileWidget(QWidget* parent) :QFrame(parent) {
|
|||||||
topLayout->addWidget(collapseButton, 0, 0);
|
topLayout->addWidget(collapseButton, 0, 0);
|
||||||
|
|
||||||
fileNameLabel = new QLabel();
|
fileNameLabel = new QLabel();
|
||||||
|
fileNameLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
topLayout->addWidget(fileNameLabel, 0, 1);
|
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();
|
pagesContainerWidget = new PagesContainerWidget();
|
||||||
scrollArea = new QScrollArea();
|
scrollArea = new QScrollArea();
|
||||||
scrollArea->setWidget(pagesContainerWidget);
|
scrollArea->setWidget(pagesContainerWidget);
|
||||||
topLayout->addWidget(scrollArea, 1, 0, 1, 5);
|
topLayout->addWidget(scrollArea, 1, 0, 1, 3);
|
||||||
|
|
||||||
setLayout(topLayout);
|
setLayout(topLayout);
|
||||||
|
|
||||||
|
@ -70,6 +70,7 @@ private:
|
|||||||
|
|
||||||
QLabel* fileNameLabel;
|
QLabel* fileNameLabel;
|
||||||
QPushButton* collapseButton;
|
QPushButton* collapseButton;
|
||||||
|
QPushButton* removeButton;
|
||||||
PagesContainerWidget* pagesContainerWidget;
|
PagesContainerWidget* pagesContainerWidget;
|
||||||
QScrollArea* scrollArea;
|
QScrollArea* scrollArea;
|
||||||
QWidget* ancestor;
|
QWidget* ancestor;
|
||||||
|
Loading…
Reference in New Issue
Block a user