[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
13
bin/hpdf.pro
13
bin/hpdf.pro
@ -2,15 +2,20 @@ QT += widgets
|
|||||||
|
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
TARGET = hpdf
|
TARGET = hpdf
|
||||||
DEPENDPATH += .
|
DEPENDPATH += .
|
||||||
INCLUDEPATH += .
|
INCLUDEPATH += /usr/include/poppler/qt5
|
||||||
|
LIBS += -L/usr/lib -lpoppler-qt5
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
../src/pdf_factory.h
|
../src/pdf_factory.h \
|
||||||
|
../src/pdf_file.h \
|
||||||
|
../src/pdf_page_widget.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
../src/main.cpp \
|
../src/main.cpp \
|
||||||
../src/pdf_factory.cpp
|
../src/pdf_factory.cpp \
|
||||||
|
../src/pdf_file.cpp \
|
||||||
|
../src/pdf_page_widget.cpp
|
||||||
|
|
||||||
RESOURCES += hpdf.qrc
|
RESOURCES += hpdf.qrc
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#include <QtWidgets>
|
#include <QtWidgets>
|
||||||
|
#include <QtGlobal>
|
||||||
#include "pdf_factory.h"
|
#include "pdf_factory.h"
|
||||||
|
#include "pdf_file.h"
|
||||||
|
#include "pdf_page_widget.h"
|
||||||
|
|
||||||
PDFFactory::PDFFactory(void) {
|
PDFFactory::PDFFactory(void) {
|
||||||
createWidgets();
|
createWidgets();
|
||||||
@ -31,12 +34,19 @@ void PDFFactory::createWidgets(void) {
|
|||||||
/* Create main area (table). */
|
/* Create main area (table). */
|
||||||
pdfTableView = new QWidget();
|
pdfTableView = new QWidget();
|
||||||
pdfTableView->setLayout(new QVBoxLayout());
|
pdfTableView->setLayout(new QVBoxLayout());
|
||||||
|
/*pdfTableView->setMinimumSize(1000, 1000);*/
|
||||||
pdfTableView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
pdfTableView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
scrollArea = new QScrollArea();
|
scrollArea = new QScrollArea();
|
||||||
scrollArea->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
scrollArea->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
layout->addWidget(scrollArea);
|
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"));
|
setWindowIcon(QIcon(":/img/hpdf.png"));
|
||||||
|
setWindowTitle(tr("HPDF"));
|
||||||
setGeometry(0, 0, 550, 650);
|
setGeometry(0, 0, 550, 650);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,9 +2,8 @@
|
|||||||
#include <QMainWindow>
|
#include <QMainWindow>
|
||||||
|
|
||||||
class QAction;
|
class QAction;
|
||||||
class QToolBar;
|
|
||||||
class QTabWidget;
|
|
||||||
class QWidget;
|
class QWidget;
|
||||||
|
class QTabWidget;
|
||||||
class QScrollArea;
|
class QScrollArea;
|
||||||
|
|
||||||
class PDFFactory : public QMainWindow {
|
class PDFFactory : public QMainWindow {
|
||||||
|
Loading…
Reference in New Issue
Block a user