Shutted down warnings.

preferencesAboutTextFull
Yimgo 12 years ago
parent cae2caecac
commit b94b86291e
  1. 14
      plugins/cffadaptor/src/UBCFFAdaptor.cpp
  2. 1
      src/adaptors/UBImportImage.cpp
  3. 2
      src/gui/UBMessagesDialog.h
  4. 2
      src/gui/UBRubberBand.cpp

@ -654,29 +654,25 @@ QDomElement UBCFFAdaptor::UBToCFFConverter::parseSvgPageSection(const QDomElemen
void UBCFFAdaptor::UBToCFFConverter::writeQDomElementToXML(const QDomNode &node) void UBCFFAdaptor::UBToCFFConverter::writeQDomElementToXML(const QDomNode &node)
{ {
if (!node.isNull()) if (!node.isNull()) {
if (node.isText()) if (node.isText())
{
mIWBContentWriter->writeCharacters(node.nodeValue()); mIWBContentWriter->writeCharacters(node.nodeValue());
} else {
else
{
mIWBContentWriter->writeStartElement(node.namespaceURI(), node.toElement().tagName()); mIWBContentWriter->writeStartElement(node.namespaceURI(), node.toElement().tagName());
for (int i = 0; i < node.toElement().attributes().count(); i++) for (int i = 0; i < node.toElement().attributes().count(); i++) {
{
QDomAttr attr = node.toElement().attributes().item(i).toAttr(); QDomAttr attr = node.toElement().attributes().item(i).toAttr();
mIWBContentWriter->writeAttribute(attr.name(), attr.value()); mIWBContentWriter->writeAttribute(attr.name(), attr.value());
} }
QDomNode child = node.firstChild(); QDomNode child = node.firstChild();
while(!child.isNull()) while(!child.isNull()) {
{
writeQDomElementToXML(child); writeQDomElementToXML(child);
child = child.nextSibling(); child = child.nextSibling();
} }
mIWBContentWriter->writeEndElement(); mIWBContentWriter->writeEndElement();
} }
}
} }
bool UBCFFAdaptor::UBToCFFConverter::writeExtendedIwbSection() bool UBCFFAdaptor::UBToCFFConverter::writeExtendedIwbSection()

@ -76,6 +76,7 @@ QString UBImportImage::importFileFilter()
QList<UBGraphicsItem*> UBImportImage::import(const QUuid& uuid, const QString& filePath) QList<UBGraphicsItem*> UBImportImage::import(const QUuid& uuid, const QString& filePath)
{ {
Q_UNUSED(uuid);
QList<UBGraphicsItem*> result; QList<UBGraphicsItem*> result;
QPixmap pix(filePath); QPixmap pix(filePath);

@ -34,4 +34,4 @@ private:
int mMessagesFontSize; int mMessagesFontSize;
}; };
#endif UB_MESSAGES_DIALOG_H_ #endif /* UB_MESSAGES_DIALOG_H_ */

@ -32,8 +32,8 @@
UBRubberBand::UBRubberBand(Shape s, QWidget * p) UBRubberBand::UBRubberBand(Shape s, QWidget * p)
: QRubberBand(s, p) : QRubberBand(s, p)
, mResizingMode(None) , mResizingMode(None)
, mMouseIsPressed(false)
, mResizingBorderHeight(20) , mResizingBorderHeight(20)
, mMouseIsPressed(false)
, mLastPressedPoint(QPoint()) , mLastPressedPoint(QPoint())
{ {
customStyle = NULL; customStyle = NULL;

Loading…
Cancel
Save