diff --git a/src/adaptors/UBExportFullPDF.cpp b/src/adaptors/UBExportFullPDF.cpp index 402ef9cb..858809c6 100644 --- a/src/adaptors/UBExportFullPDF.cpp +++ b/src/adaptors/UBExportFullPDF.cpp @@ -179,9 +179,6 @@ void UBExportFullPDF::persistsDocument(UBDocumentProxy* pDocumentProxy, const QS QString pdfName = UBPersistenceManager::objectDirectory + "/" + pdfItem->fileUuid().toString() + ".pdf"; QString backgroundPath = pDocumentProxy->persistencePath() + "/" + pdfName; - QPointF boudingRectBottomLeft = scene->itemsBoundingRect().bottomLeft(); - QPointF pdfItemBottomLeft = pdfItem->sceneBoundingRect().bottomLeft(); - qDebug() << "scene->itemsBoundingRect()" << scene->itemsBoundingRect(); qDebug() << "pdfItem->boundingRect()" << pdfItem->boundingRect(); qDebug() << "pdfItem->sceneBoundingRect()" << pdfItem->sceneBoundingRect(); diff --git a/src/customWidgets/UBWidgetList.cpp b/src/customWidgets/UBWidgetList.cpp index e15bb2e0..1cebaa49 100644 --- a/src/customWidgets/UBWidgetList.cpp +++ b/src/customWidgets/UBWidgetList.cpp @@ -5,12 +5,12 @@ #include "UBWidgetList.h" UBWidgetList::UBWidgetList(QWidget* parent, eWidgetListOrientation orientation, const char* name):QScrollArea(parent) + , mCanRemove(true) , mpLayout(NULL) , mpContainer(NULL) , mMargin(5) , mListElementsSpacing(10) , mpEmptyLabel(NULL) - , mCanRemove(true) , mpCurrentWidget(NULL) { setObjectName(name); @@ -134,6 +134,7 @@ void UBWidgetList::resizeEvent(QResizeEvent *ev) void UBWidgetList::mousePressEvent(QMouseEvent *ev) { + Q_UNUSED(ev); if(mCanRemove){ } diff --git a/src/frameworks/UBBase32.cpp b/src/frameworks/UBBase32.cpp index efd0b614..29fcb75c 100644 --- a/src/frameworks/UBBase32.cpp +++ b/src/frameworks/UBBase32.cpp @@ -47,7 +47,7 @@ QByteArray UBBase32::decode(const QString& base32String) if (lookup < 0 || lookup >= 80) continue; - int digit = sBase32Lookup[lookup]; + int digit = sBase32Lookup[(int)lookup]; /* If this digit is not in the table, ignore it */ if (digit == 0xFF) diff --git a/src/gui/UBDockPalette.h b/src/gui/UBDockPalette.h index ff3b546d..0d660e0a 100644 --- a/src/gui/UBDockPalette.h +++ b/src/gui/UBDockPalette.h @@ -191,8 +191,8 @@ private: void resizeTabs(); private: - UBTabDockPalete *mTabPalette; eUBDockPaletteType mPaletteType; + UBTabDockPalete *mTabPalette; }; #endif // UBDOCKPALETTE_H diff --git a/src/gui/UBTBDocumentPreviewWidget.cpp b/src/gui/UBTBDocumentPreviewWidget.cpp index 9f2ca0d8..ed54ee1b 100644 --- a/src/gui/UBTBDocumentPreviewWidget.cpp +++ b/src/gui/UBTBDocumentPreviewWidget.cpp @@ -2,6 +2,7 @@ #include "UBTBDocumentPreviewWidget.h" UBTBDocumentPreviewWidget::UBTBDocumentPreviewWidget(UBTeacherBarDataMgr *pDataMgr, QWidget *parent, const char *name):QWidget(parent) + , mpContainer(NULL) , mpPageViewButton(NULL) , mpEditButton(NULL) , mpSessionLabel(NULL) @@ -19,7 +20,6 @@ UBTBDocumentPreviewWidget::UBTBDocumentPreviewWidget(UBTeacherBarDataMgr *pDataM , mpTopicLabel(NULL) , mpTopic(NULL) , mpLicense(NULL) - , mpContainer(NULL) { setObjectName(name); mpDataMgr = pDataMgr; diff --git a/src/gui/UBTeacherBarDataMgr.cpp b/src/gui/UBTeacherBarDataMgr.cpp index e2e2bdad..ae84996b 100644 --- a/src/gui/UBTeacherBarDataMgr.cpp +++ b/src/gui/UBTeacherBarDataMgr.cpp @@ -74,6 +74,7 @@ void UBTeacherBarDataMgr::saveContent() void UBTeacherBarDataMgr::loadContent(bool docChanged) { + Q_UNUSED(docChanged); clearLists(); UBDocumentProxy* documentProxy = UBApplication::boardController->activeDocument(); @@ -132,6 +133,7 @@ void UBTeacherBarDataMgr::loadContent(bool docChanged) // ------------------------------------------------------------------------------------ UBTBSeparator::UBTBSeparator(QWidget *parent, const char *name):QFrame(parent) { + Q_UNUSED(name); setObjectName("UBTBSeparator"); setMinimumHeight(5); setMaximumHeight(5); diff --git a/src/gui/UBTeacherBarPreviewWidget.cpp b/src/gui/UBTeacherBarPreviewWidget.cpp index e82acd30..46cf05e5 100644 --- a/src/gui/UBTeacherBarPreviewWidget.cpp +++ b/src/gui/UBTeacherBarPreviewWidget.cpp @@ -37,6 +37,7 @@ void UBTeacherBarPreviewMedia::cleanMedia() void UBTeacherBarPreviewMedia::loadWidgets(QList pWidgetsList, bool isResizable) { + Q_UNUSED(isResizable); foreach(QWidget*eachWidget, pWidgetsList){ mWidget->addWidget(eachWidget); mWidgetList[eachWidget]="DRAG UNAVAILABLE"; @@ -362,6 +363,7 @@ void UBTeacherBarPreviewWidget::generateComments() void UBTeacherBarPreviewWidget::showEvent(QShowEvent* ev) { + Q_UNUSED(ev); updateFields(); } diff --git a/src/podcast/youtube/UBYouTubePublisher.cpp b/src/podcast/youtube/UBYouTubePublisher.cpp index f160d4a4..ebd6fb61 100644 --- a/src/podcast/youtube/UBYouTubePublisher.cpp +++ b/src/podcast/youtube/UBYouTubePublisher.cpp @@ -112,6 +112,7 @@ void UBYouTubePublisher::postClientLoginRequest(const QString& userName, const Q void UBYouTubePublisher::postClientLoginResponse(bool success, const QByteArray& pPayload) { + Q_UNUSED(success); mAuthToken = ""; QString auth = QString::fromUtf8(pPayload); @@ -136,7 +137,7 @@ void UBYouTubePublisher::postClientLoginResponse(bool success, const QByteArray& if(mAuthToken.length() == 0) { UBApplication::showMessage(tr("YouTube authentication failed.")); - success = false; +// success = false; deleteLater(); } else diff --git a/src/web/UBOEmbedParser.cpp b/src/web/UBOEmbedParser.cpp index f4247bd0..1cb8e1f8 100644 --- a/src/web/UBOEmbedParser.cpp +++ b/src/web/UBOEmbedParser.cpp @@ -26,6 +26,7 @@ UBOEmbedParser::UBOEmbedParser(QObject *parent, const char* name) { + Q_UNUSED(parent); setObjectName(name); mParsedTitles.clear(); connect(this, SIGNAL(parseContent(QString)), this, SLOT(onParseContent(QString))); @@ -223,7 +224,6 @@ void UBOEmbedParser::onParseContent(QString url) void UBOEmbedParser::onFinished(QNetworkReply *reply) { - QNetworkReply::NetworkError err = reply->error(); if(QNetworkReply::NoError == reply->error()){ QString receivedDatas = reply->readAll().constData(); sOEmbedContent crntContent; diff --git a/src/web/browser/WBSearchLineEdit.cpp b/src/web/browser/WBSearchLineEdit.cpp index cc91b23d..cffca189 100644 --- a/src/web/browser/WBSearchLineEdit.cpp +++ b/src/web/browser/WBSearchLineEdit.cpp @@ -75,7 +75,6 @@ void WBClearButton::paintEvent(QPaintEvent *event) int height = this->height(); painter.setRenderHint(QPainter::Antialiasing, true); - QColor color = palette().color(QPalette::Mid); painter.setBrush(isDown() ? palette().color(QPalette::Dark) : palette().color(QPalette::Mid));