[Add] For some reason my work earlier wasn't saved. This should bring it
back to it's previous state though.
This commit is contained in:
parent
2f3f0c4d0e
commit
60eb0e9f40
11
bin/hpdf.pro
11
bin/hpdf.pro
@ -3,14 +3,19 @@ QT += widgets
|
||||
TEMPLATE = app
|
||||
TARGET = hpdf
|
||||
DEPENDPATH += .
|
||||
INCLUDEPATH += .
|
||||
INCLUDEPATH += /usr/include/poppler/qt5
|
||||
LIBS += -L/usr/lib -lpoppler-qt5
|
||||
|
||||
HEADERS += \
|
||||
../src/pdf_factory.h
|
||||
../src/pdf_factory.h \
|
||||
../src/pdf_file.h \
|
||||
../src/pdf_page_widget.h
|
||||
|
||||
SOURCES += \
|
||||
../src/main.cpp \
|
||||
../src/pdf_factory.cpp
|
||||
../src/pdf_factory.cpp \
|
||||
../src/pdf_file.cpp \
|
||||
../src/pdf_page_widget.cpp
|
||||
|
||||
RESOURCES += hpdf.qrc
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
#include <QtWidgets>
|
||||
#include <QtGlobal>
|
||||
#include "pdf_factory.h"
|
||||
#include "pdf_file.h"
|
||||
#include "pdf_page_widget.h"
|
||||
|
||||
PDFFactory::PDFFactory(void) {
|
||||
createWidgets();
|
||||
@ -31,12 +34,19 @@ void PDFFactory::createWidgets(void) {
|
||||
/* Create main area (table). */
|
||||
pdfTableView = new QWidget();
|
||||
pdfTableView->setLayout(new QVBoxLayout());
|
||||
/*pdfTableView->setMinimumSize(1000, 1000);*/
|
||||
pdfTableView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
scrollArea = new QScrollArea();
|
||||
scrollArea->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
layout->addWidget(scrollArea);
|
||||
|
||||
/*PDFFile* pdfFile = new PDFFile("/home/docs/loa.pdf");
|
||||
PDFPageWidget* pdfPage = new PDFPageWidget();
|
||||
pdfPage->setPageImage(pdfFile->getPageImage(0));
|
||||
pdfTableView->layout()->addWidget(pdfPage);*/
|
||||
|
||||
setWindowIcon(QIcon(":/img/hpdf.png"));
|
||||
setWindowTitle(tr("HPDF"));
|
||||
setGeometry(0, 0, 550, 650);
|
||||
}
|
||||
|
||||
|
@ -2,9 +2,8 @@
|
||||
#include <QMainWindow>
|
||||
|
||||
class QAction;
|
||||
class QToolBar;
|
||||
class QTabWidget;
|
||||
class QWidget;
|
||||
class QTabWidget;
|
||||
class QScrollArea;
|
||||
|
||||
class PDFFactory : public QMainWindow {
|
||||
|
Loading…
Reference in New Issue
Block a user