removing warning act 1

preferencesAboutTextFull
Claudio Valerio 13 years ago
parent 22704ab896
commit c570dce91a
  1. 3
      src/adaptors/UBExportFullPDF.cpp
  2. 3
      src/customWidgets/UBWidgetList.cpp
  3. 2
      src/frameworks/UBBase32.cpp
  4. 2
      src/gui/UBDockPalette.h
  5. 2
      src/gui/UBTBDocumentPreviewWidget.cpp
  6. 2
      src/gui/UBTeacherBarDataMgr.cpp
  7. 2
      src/gui/UBTeacherBarPreviewWidget.cpp
  8. 3
      src/podcast/youtube/UBYouTubePublisher.cpp
  9. 2
      src/web/UBOEmbedParser.cpp
  10. 1
      src/web/browser/WBSearchLineEdit.cpp

@ -179,9 +179,6 @@ void UBExportFullPDF::persistsDocument(UBDocumentProxy* pDocumentProxy, const QS
QString pdfName = UBPersistenceManager::objectDirectory + "/" + pdfItem->fileUuid().toString() + ".pdf"; QString pdfName = UBPersistenceManager::objectDirectory + "/" + pdfItem->fileUuid().toString() + ".pdf";
QString backgroundPath = pDocumentProxy->persistencePath() + "/" + pdfName; QString backgroundPath = pDocumentProxy->persistencePath() + "/" + pdfName;
QPointF boudingRectBottomLeft = scene->itemsBoundingRect().bottomLeft();
QPointF pdfItemBottomLeft = pdfItem->sceneBoundingRect().bottomLeft();
qDebug() << "scene->itemsBoundingRect()" << scene->itemsBoundingRect(); qDebug() << "scene->itemsBoundingRect()" << scene->itemsBoundingRect();
qDebug() << "pdfItem->boundingRect()" << pdfItem->boundingRect(); qDebug() << "pdfItem->boundingRect()" << pdfItem->boundingRect();
qDebug() << "pdfItem->sceneBoundingRect()" << pdfItem->sceneBoundingRect(); qDebug() << "pdfItem->sceneBoundingRect()" << pdfItem->sceneBoundingRect();

@ -5,12 +5,12 @@
#include "UBWidgetList.h" #include "UBWidgetList.h"
UBWidgetList::UBWidgetList(QWidget* parent, eWidgetListOrientation orientation, const char* name):QScrollArea(parent) UBWidgetList::UBWidgetList(QWidget* parent, eWidgetListOrientation orientation, const char* name):QScrollArea(parent)
, mCanRemove(true)
, mpLayout(NULL) , mpLayout(NULL)
, mpContainer(NULL) , mpContainer(NULL)
, mMargin(5) , mMargin(5)
, mListElementsSpacing(10) , mListElementsSpacing(10)
, mpEmptyLabel(NULL) , mpEmptyLabel(NULL)
, mCanRemove(true)
, mpCurrentWidget(NULL) , mpCurrentWidget(NULL)
{ {
setObjectName(name); setObjectName(name);
@ -134,6 +134,7 @@ void UBWidgetList::resizeEvent(QResizeEvent *ev)
void UBWidgetList::mousePressEvent(QMouseEvent *ev) void UBWidgetList::mousePressEvent(QMouseEvent *ev)
{ {
Q_UNUSED(ev);
if(mCanRemove){ if(mCanRemove){
} }

@ -47,7 +47,7 @@ QByteArray UBBase32::decode(const QString& base32String)
if (lookup < 0 || lookup >= 80) if (lookup < 0 || lookup >= 80)
continue; continue;
int digit = sBase32Lookup[lookup]; int digit = sBase32Lookup[(int)lookup];
/* If this digit is not in the table, ignore it */ /* If this digit is not in the table, ignore it */
if (digit == 0xFF) if (digit == 0xFF)

@ -191,8 +191,8 @@ private:
void resizeTabs(); void resizeTabs();
private: private:
UBTabDockPalete *mTabPalette;
eUBDockPaletteType mPaletteType; eUBDockPaletteType mPaletteType;
UBTabDockPalete *mTabPalette;
}; };
#endif // UBDOCKPALETTE_H #endif // UBDOCKPALETTE_H

@ -2,6 +2,7 @@
#include "UBTBDocumentPreviewWidget.h" #include "UBTBDocumentPreviewWidget.h"
UBTBDocumentPreviewWidget::UBTBDocumentPreviewWidget(UBTeacherBarDataMgr *pDataMgr, QWidget *parent, const char *name):QWidget(parent) UBTBDocumentPreviewWidget::UBTBDocumentPreviewWidget(UBTeacherBarDataMgr *pDataMgr, QWidget *parent, const char *name):QWidget(parent)
, mpContainer(NULL)
, mpPageViewButton(NULL) , mpPageViewButton(NULL)
, mpEditButton(NULL) , mpEditButton(NULL)
, mpSessionLabel(NULL) , mpSessionLabel(NULL)
@ -19,7 +20,6 @@ UBTBDocumentPreviewWidget::UBTBDocumentPreviewWidget(UBTeacherBarDataMgr *pDataM
, mpTopicLabel(NULL) , mpTopicLabel(NULL)
, mpTopic(NULL) , mpTopic(NULL)
, mpLicense(NULL) , mpLicense(NULL)
, mpContainer(NULL)
{ {
setObjectName(name); setObjectName(name);
mpDataMgr = pDataMgr; mpDataMgr = pDataMgr;

@ -74,6 +74,7 @@ void UBTeacherBarDataMgr::saveContent()
void UBTeacherBarDataMgr::loadContent(bool docChanged) void UBTeacherBarDataMgr::loadContent(bool docChanged)
{ {
Q_UNUSED(docChanged);
clearLists(); clearLists();
UBDocumentProxy* documentProxy = UBApplication::boardController->activeDocument(); UBDocumentProxy* documentProxy = UBApplication::boardController->activeDocument();
@ -132,6 +133,7 @@ void UBTeacherBarDataMgr::loadContent(bool docChanged)
// ------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------
UBTBSeparator::UBTBSeparator(QWidget *parent, const char *name):QFrame(parent) UBTBSeparator::UBTBSeparator(QWidget *parent, const char *name):QFrame(parent)
{ {
Q_UNUSED(name);
setObjectName("UBTBSeparator"); setObjectName("UBTBSeparator");
setMinimumHeight(5); setMinimumHeight(5);
setMaximumHeight(5); setMaximumHeight(5);

@ -37,6 +37,7 @@ void UBTeacherBarPreviewMedia::cleanMedia()
void UBTeacherBarPreviewMedia::loadWidgets(QList<QWidget*> pWidgetsList, bool isResizable) void UBTeacherBarPreviewMedia::loadWidgets(QList<QWidget*> pWidgetsList, bool isResizable)
{ {
Q_UNUSED(isResizable);
foreach(QWidget*eachWidget, pWidgetsList){ foreach(QWidget*eachWidget, pWidgetsList){
mWidget->addWidget(eachWidget); mWidget->addWidget(eachWidget);
mWidgetList[eachWidget]="DRAG UNAVAILABLE"; mWidgetList[eachWidget]="DRAG UNAVAILABLE";
@ -362,6 +363,7 @@ void UBTeacherBarPreviewWidget::generateComments()
void UBTeacherBarPreviewWidget::showEvent(QShowEvent* ev) void UBTeacherBarPreviewWidget::showEvent(QShowEvent* ev)
{ {
Q_UNUSED(ev);
updateFields(); updateFields();
} }

@ -112,6 +112,7 @@ void UBYouTubePublisher::postClientLoginRequest(const QString& userName, const Q
void UBYouTubePublisher::postClientLoginResponse(bool success, const QByteArray& pPayload) void UBYouTubePublisher::postClientLoginResponse(bool success, const QByteArray& pPayload)
{ {
Q_UNUSED(success);
mAuthToken = ""; mAuthToken = "";
QString auth = QString::fromUtf8(pPayload); QString auth = QString::fromUtf8(pPayload);
@ -136,7 +137,7 @@ void UBYouTubePublisher::postClientLoginResponse(bool success, const QByteArray&
if(mAuthToken.length() == 0) if(mAuthToken.length() == 0)
{ {
UBApplication::showMessage(tr("YouTube authentication failed.")); UBApplication::showMessage(tr("YouTube authentication failed."));
success = false; // success = false;
deleteLater(); deleteLater();
} }
else else

@ -26,6 +26,7 @@
UBOEmbedParser::UBOEmbedParser(QObject *parent, const char* name) UBOEmbedParser::UBOEmbedParser(QObject *parent, const char* name)
{ {
Q_UNUSED(parent);
setObjectName(name); setObjectName(name);
mParsedTitles.clear(); mParsedTitles.clear();
connect(this, SIGNAL(parseContent(QString)), this, SLOT(onParseContent(QString))); connect(this, SIGNAL(parseContent(QString)), this, SLOT(onParseContent(QString)));
@ -223,7 +224,6 @@ void UBOEmbedParser::onParseContent(QString url)
void UBOEmbedParser::onFinished(QNetworkReply *reply) void UBOEmbedParser::onFinished(QNetworkReply *reply)
{ {
QNetworkReply::NetworkError err = reply->error();
if(QNetworkReply::NoError == reply->error()){ if(QNetworkReply::NoError == reply->error()){
QString receivedDatas = reply->readAll().constData(); QString receivedDatas = reply->readAll().constData();
sOEmbedContent crntContent; sOEmbedContent crntContent;

@ -75,7 +75,6 @@ void WBClearButton::paintEvent(QPaintEvent *event)
int height = this->height(); int height = this->height();
painter.setRenderHint(QPainter::Antialiasing, true); painter.setRenderHint(QPainter::Antialiasing, true);
QColor color = palette().color(QPalette::Mid);
painter.setBrush(isDown() painter.setBrush(isDown()
? palette().color(QPalette::Dark) ? palette().color(QPalette::Dark)
: palette().color(QPalette::Mid)); : palette().color(QPalette::Mid));

Loading…
Cancel
Save