diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-01-30 12:39:22 -0500 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-01-30 12:39:22 -0500 |
commit | 03d5085b11f1f2b569ffb10832a8e3247ca4381c (patch) | |
tree | 60b5b4155d269fba5610c513b912327394afa1e2 /src-qt5/desktop-utils/lumina-pdf | |
parent | Merged some previous changes to lumina-pdf, mainly changing how rotating page... (diff) | |
download | lumina-03d5085b11f1f2b569ffb10832a8e3247ca4381c.tar.gz lumina-03d5085b11f1f2b569ffb10832a8e3247ca4381c.tar.bz2 lumina-03d5085b11f1f2b569ffb10832a8e3247ca4381c.zip |
Fixed signal error and commented out some debug statements
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp | 3 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/mainUI.cpp | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp b/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp index 145ce311..4f3e0acc 100644 --- a/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp +++ b/src-qt5/desktop-utils/lumina-pdf/PrintWidget.cpp @@ -16,7 +16,6 @@ PrintWidget::PrintWidget(QWidget *parent) : QGraphicsView(parent), scene(0), cur QObject::connect(this->verticalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(updateCurrentPage())); QObject::connect(this, SIGNAL(resized()), this, SLOT(fit())); - QObject::connect(parent, SIGNAL(sendDocument(Poppler::Document*)), this, SLOT(receiveDocument(Poppler::Document*))); scene = new QGraphicsScene(this); scene->setBackgroundBrush(Qt::gray); @@ -183,7 +182,7 @@ void PrintWidget::populateScene() int numPages = pictures->count(); //Replace from loadingHash resolution QSize paperSize = pictures->value(0).size(); - qDebug() << "Image paperSize" << paperSize; + //qDebug() << "Image paperSize" << paperSize; for (int i = 0; i < numPages; i++) { PageItem* item = new PageItem(i+1, (*pictures)[i].scaled( paperSize, Qt::KeepAspectRatio, Qt::SmoothTransformation), paperSize, degrees); diff --git a/src-qt5/desktop-utils/lumina-pdf/mainUI.cpp b/src-qt5/desktop-utils/lumina-pdf/mainUI.cpp index c358d0a1..01639b87 100644 --- a/src-qt5/desktop-utils/lumina-pdf/mainUI.cpp +++ b/src-qt5/desktop-utils/lumina-pdf/mainUI.cpp @@ -61,6 +61,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI()){ connect(WIDGET, SIGNAL(currentPageChanged()), this, SLOT(updatePageNumber()) ); DOC = 0; connect(this, SIGNAL(PageLoaded(int)), this, SLOT(slotPageLoaded(int)) ); + connect(this, SIGNAL(sendDocument(Poppler::Document*)), WIDGET, SLOT(receiveDocument(Poppler::Document*))); PrintDLG = new QPrintDialog(this); connect(PrintDLG, SIGNAL(accepted(QPrinter*)), this, SLOT(paintToPrinter(QPrinter*)) ); @@ -91,7 +92,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI()){ tmp->addAction(ui->actionAll_Pages); ui->actionSingle_Page->setChecked(true); - qDebug() << "Starting connections"; + //qDebug() << "Starting connections"; //Connect up the buttons connect(ui->actionClose, SIGNAL(triggered()), this, SLOT(close()) ); @@ -187,7 +188,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI()){ ui->matchCase->setIcon(LXDG::findIcon("format-text-italic")); ui->closeFind->setIcon(LXDG::findIcon("dialog-close")); - qDebug() << "Finished setting icons"; + //qDebug() << "Finished setting icons"; //Now set the default state of the menu's and actions ui->actionStop_Presentation->setEnabled(false); |