Commit 7f6e6add authored by Boudewijn Rempt's avatar Boudewijn Rempt

Clean up some superfluous qDebug statements

parent cf17b818
...@@ -321,13 +321,10 @@ Document* Krita::createDocument(int width, int height, const QString &name, cons ...@@ -321,13 +321,10 @@ Document* Krita::createDocument(int width, int height, const QString &name, cons
KoColor bgColor(qc, cs); KoColor bgColor(qc, cs);
if (!document->newImage(name, width, height, cs, bgColor, true, 1, "", double(resolution / 72) )) { if (!document->newImage(name, width, height, cs, bgColor, true, 1, "", double(resolution / 72) )) {
qDebug() << "Could not create a new image";
return 0; return 0;
} }
Q_ASSERT(document->image()); Q_ASSERT(document->image());
qDebug() << document->image()->objectName();
return new Document(document); return new Document(document);
} }
......
...@@ -108,7 +108,6 @@ KisSketchView::KisSketchView(QQuickItem* parent) ...@@ -108,7 +108,6 @@ KisSketchView::KisSketchView(QQuickItem* parent)
setAcceptHoverEvents(true); setAcceptHoverEvents(true);
d->actionCollection = new KActionCollection(this, "krita"); d->actionCollection = new KActionCollection(this, "krita");
qDebug() << ">>>>>>>>>>>>>" << qApp->activeWindow();
d->viewManager = 0; //new KisViewManager(qApp->activeWindow(), d->actionCollection); d->viewManager = 0; //new KisViewManager(qApp->activeWindow(), d->actionCollection);
// QT5TODO // QT5TODO
......
...@@ -51,7 +51,7 @@ class KRITAPIGMENT_EXPORT KoHistogramProducer ...@@ -51,7 +51,7 @@ class KRITAPIGMENT_EXPORT KoHistogramProducer
{ {
public: public:
KoHistogramProducer() : m_skipTransparent(true), m_skipUnselected(true) {} KoHistogramProducer() : m_skipTransparent(true), m_skipUnselected(true) {}
virtual ~KoHistogramProducer() { qDebug() << "removing KoHistogramProducer"; } virtual ~KoHistogramProducer() {}
// Methods to change the bins // Methods to change the bins
......
...@@ -325,7 +325,6 @@ bool KisApplicationArguments::doNewImage() const ...@@ -325,7 +325,6 @@ bool KisApplicationArguments::doNewImage() const
KisDocument *KisApplicationArguments::image() const KisDocument *KisApplicationArguments::image() const
{ {
KisDocument *doc = KisPart::instance()->createDocument(); KisDocument *doc = KisPart::instance()->createDocument();
qDebug() << d->colorDepth << d->colorDepth;
const KoColorSpace *cs = KoColorSpaceRegistry::instance()->colorSpace(d->colorModel, d->colorDepth, ""); const KoColorSpace *cs = KoColorSpaceRegistry::instance()->colorSpace(d->colorModel, d->colorDepth, "");
if (!cs) { if (!cs) {
qWarning() << "Could not create the colorspace for the new image. Check the colorspace and depth arguments."; qWarning() << "Could not create the colorspace for the new image. Check the colorspace and depth arguments.";
......
...@@ -1352,7 +1352,6 @@ void KisMainWindow::dropEvent(QDropEvent *event) ...@@ -1352,7 +1352,6 @@ void KisMainWindow::dropEvent(QDropEvent *event)
Q_FOREACH (const QUrl &url, event->mimeData()->urls()) { Q_FOREACH (const QUrl &url, event->mimeData()->urls()) {
if (url.toLocalFile().endsWith(".bundle")) { if (url.toLocalFile().endsWith(".bundle")) {
bool r = installBundle(url.toLocalFile()); bool r = installBundle(url.toLocalFile());
qDebug() << "\t" << r;
} }
else { else {
openDocument(url, None); openDocument(url, None);
......
...@@ -40,8 +40,6 @@ bool KisRemoteFileFetcher::fetchFile(const QUrl &remote, QIODevice *io) ...@@ -40,8 +40,6 @@ bool KisRemoteFileFetcher::fetchFile(const QUrl &remote, QIODevice *io)
{ {
Q_ASSERT(!remote.isLocalFile()); Q_ASSERT(!remote.isLocalFile());
qDebug() << "going to fetch" << remote;
QNetworkAccessManager *manager = new QNetworkAccessManager(this); QNetworkAccessManager *manager = new QNetworkAccessManager(this);
m_request = new QNetworkRequest(remote); m_request = new QNetworkRequest(remote);
m_request->setRawHeader("User-Agent", QString("Krita-%1").arg(qApp->applicationVersion()).toUtf8()); m_request->setRawHeader("User-Agent", QString("Krita-%1").arg(qApp->applicationVersion()).toUtf8());
...@@ -69,7 +67,7 @@ bool KisRemoteFileFetcher::fetchFile(const QUrl &remote, QIODevice *io) ...@@ -69,7 +67,7 @@ bool KisRemoteFileFetcher::fetchFile(const QUrl &remote, QIODevice *io)
void KisRemoteFileFetcher::downloadProgress(qint64 bytesReceived, qint64 bytesTotal) void KisRemoteFileFetcher::downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
{ {
qDebug() << "bytesReceived" << bytesReceived << "bytesTotal" << bytesTotal; //qDebug() << "bytesReceived" << bytesReceived << "bytesTotal" << bytesTotal;
} }
void KisRemoteFileFetcher::error(QNetworkReply::NetworkError error) void KisRemoteFileFetcher::error(QNetworkReply::NetworkError error)
......
...@@ -568,7 +568,7 @@ void KisView::dropEvent(QDropEvent *event) ...@@ -568,7 +568,7 @@ void KisView::dropEvent(QDropEvent *event)
tmp = new QTemporaryFile(); tmp = new QTemporaryFile();
tmp->setAutoRemove(true); tmp->setAutoRemove(true);
if (!fetcher.fetchFile(url, tmp)) { if (!fetcher.fetchFile(url, tmp)) {
qDebug() << "Fetching" << url << "failed"; qWarning() << "Fetching" << url << "failed";
continue; continue;
} }
url = url.fromLocalFile(tmp->fileName()); url = url.fromLocalFile(tmp->fileName());
......
...@@ -663,7 +663,6 @@ void KisCanvas2::setProofingOptions(bool softProof, bool gamutCheck) ...@@ -663,7 +663,6 @@ void KisCanvas2::setProofingOptions(bool softProof, bool gamutCheck)
{ {
m_d->proofingConfig = this->image()->proofingConfiguration(); m_d->proofingConfig = this->image()->proofingConfiguration();
if (!m_d->proofingConfig) { if (!m_d->proofingConfig) {
qDebug()<<"Canvas: No proofing config found, generating one.";
KisImageConfig cfg(false); KisImageConfig cfg(false);
m_d->proofingConfig = cfg.defaultProofingconfiguration(); m_d->proofingConfig = cfg.defaultProofingconfiguration();
} }
......
...@@ -128,7 +128,6 @@ KisImportCatcher::~KisImportCatcher() ...@@ -128,7 +128,6 @@ KisImportCatcher::~KisImportCatcher()
void KisImportCatcher::adaptClipToImageColorSpace(KisPaintDeviceSP dev, KisImageSP image) void KisImportCatcher::adaptClipToImageColorSpace(KisPaintDeviceSP dev, KisImageSP image)
{ {
KisConfig cfg(true); KisConfig cfg(true);
qDebug() << "dev" << dev->colorSpace() << "image" << image->colorSpace() << "cfg" << cfg.convertToImageColorspaceOnImport();
if (cfg.convertToImageColorspaceOnImport() && *dev->colorSpace() != *image->colorSpace()) { if (cfg.convertToImageColorspaceOnImport() && *dev->colorSpace() != *image->colorSpace()) {
/// XXX: do we need intent here? /// XXX: do we need intent here?
KUndo2Command* cmd = dev->convertTo(image->colorSpace()); KUndo2Command* cmd = dev->convertTo(image->colorSpace());
......
...@@ -526,8 +526,8 @@ void KisLayerManager::convertLayerToFileLayer(KisNodeSP source) ...@@ -526,8 +526,8 @@ void KisLayerManager::convertLayerToFileLayer(KisNodeSP source)
bool r = doc->exportDocumentSync(QUrl::fromLocalFile(path), mimeType.toLatin1()); bool r = doc->exportDocumentSync(QUrl::fromLocalFile(path), mimeType.toLatin1());
if (!r) { if (!r) {
qDebug()<< "Path:"<<path;
qWarning() << doc->errorMessage(); qWarning() << "Converting layer to file layer. path:"<< path << "gave errors" << doc->errorMessage();
} else { } else {
QString basePath = QFileInfo(m_view->document()->url().toLocalFile()).absolutePath(); QString basePath = QFileInfo(m_view->document()->url().toLocalFile()).absolutePath();
QString relativePath = QDir(basePath).relativeFilePath(path); QString relativePath = QDir(basePath).relativeFilePath(path);
......
...@@ -227,7 +227,6 @@ qreal KisZoomManager::zoom() const ...@@ -227,7 +227,6 @@ qreal KisZoomManager::zoom() const
qreal zoomX; qreal zoomX;
qreal zoomY; qreal zoomY;
m_zoomHandler->zoom(&zoomX, &zoomY); m_zoomHandler->zoom(&zoomX, &zoomY);
qDebug() << zoomX << zoomY;
return zoomX; return zoomX;
} }
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
KisNewsDelegate::KisNewsDelegate(QObject *parent) KisNewsDelegate::KisNewsDelegate(QObject *parent)
: QStyledItemDelegate(parent) : QStyledItemDelegate(parent)
{ {
qDebug() << "Delegate created";
} }
void KisNewsDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const void KisNewsDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
......
...@@ -233,7 +233,6 @@ void KisShortcutsEditor::exportConfiguration(KConfigBase *config) const ...@@ -233,7 +233,6 @@ void KisShortcutsEditor::exportConfiguration(KConfigBase *config) const
void KisShortcutsEditor::saveShortcuts(KConfigGroup *config) const void KisShortcutsEditor::saveShortcuts(KConfigGroup *config) const
{ {
qDebug() << "Saving shortcuts";
// This is a horrible mess with pointers... // This is a horrible mess with pointers...
KConfigGroup cg; KConfigGroup cg;
if (config == 0) { if (config == 0) {
......
...@@ -268,7 +268,6 @@ void OcioDisplayFilter::updateProcessor() ...@@ -268,7 +268,6 @@ void OcioDisplayFilter::updateProcessor()
bool OcioDisplayFilter::updateShader() bool OcioDisplayFilter::updateShader()
{ {
if (KisOpenGL::hasOpenGL3()) { if (KisOpenGL::hasOpenGL3()) {
qDebug() << 1;
QOpenGLFunctions_3_2_Core *f = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_2_Core>(); QOpenGLFunctions_3_2_Core *f = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_2_Core>();
if (f) { if (f) {
return updateShaderImpl(f); return updateShaderImpl(f);
...@@ -277,7 +276,6 @@ bool OcioDisplayFilter::updateShader() ...@@ -277,7 +276,6 @@ bool OcioDisplayFilter::updateShader()
// XXX This option can be removed once we move to Qt 5.7+ // XXX This option can be removed once we move to Qt 5.7+
if (KisOpenGL::supportsLoD()) { if (KisOpenGL::supportsLoD()) {
qDebug() << 2;
#ifdef Q_OS_MAC #ifdef Q_OS_MAC
QOpenGLFunctions_3_2_Core *f = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_2_Core>(); QOpenGLFunctions_3_2_Core *f = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_3_2_Core>();
#else #else
...@@ -287,12 +285,10 @@ bool OcioDisplayFilter::updateShader() ...@@ -287,12 +285,10 @@ bool OcioDisplayFilter::updateShader()
return updateShaderImpl(f); return updateShaderImpl(f);
} }
} }
qDebug() << 3;
QOpenGLExtraFunctions *f = QOpenGLContext::currentContext()->extraFunctions(); QOpenGLExtraFunctions *f = QOpenGLContext::currentContext()->extraFunctions();
if (f) { if (f) {
return updateShaderImpl(f); return updateShaderImpl(f);
} }
qDebug() << 4;
return false; return false;
} }
......
...@@ -96,7 +96,6 @@ void KritaGradientMapConfigWidget::setConfiguration(const KisPropertiesConfigura ...@@ -96,7 +96,6 @@ void KritaGradientMapConfigWidget::setConfiguration(const KisPropertiesConfigura
QDomDocument doc; QDomDocument doc;
if (config->hasProperty("gradientXML")) { if (config->hasProperty("gradientXML")) {
doc.setContent(config->getString("gradientXML", "")); doc.setContent(config->getString("gradientXML", ""));
qDebug()<<config->getString("gradientXML", "");
KoStopGradient gradient = KoStopGradient::fromXML(doc.firstChildElement()); KoStopGradient gradient = KoStopGradient::fromXML(doc.firstChildElement());
if (gradient.stops().size()>0) { if (gradient.stops().size()>0) {
m_activeGradient->setStops(gradient.stops()); m_activeGradient->setStops(gradient.stops());
......
...@@ -59,7 +59,7 @@ void KritaFilterGradientMap::processImpl(KisPaintDeviceSP device, ...@@ -59,7 +59,7 @@ void KritaFilterGradientMap::processImpl(KisPaintDeviceSP device,
QDomElement elt = doc.createElement("gradient"); QDomElement elt = doc.createElement("gradient");
KoAbstractGradient *gradientAb = KoResourceServerProvider::instance()->gradientServer()->resourceByName(config->getString("gradientName")); KoAbstractGradient *gradientAb = KoResourceServerProvider::instance()->gradientServer()->resourceByName(config->getString("gradientName"));
if (!gradientAb) { if (!gradientAb) {
qDebug() << "Could not find gradient" << config->getString("gradientName"); qWarning() << "Could not find gradient" << config->getString("gradientName");
} }
gradientAb = KoResourceServerProvider::instance()->gradientServer()->resources().first(); gradientAb = KoResourceServerProvider::instance()->gradientServer()->resources().first();
KoStopGradient::fromQGradient(gradientAb->toQGradient())->toXML(doc, elt); KoStopGradient::fromQGradient(gradientAb->toQGradient())->toXML(doc, elt);
......
...@@ -289,7 +289,6 @@ void SvgTextEditor::checkFormat() ...@@ -289,7 +289,6 @@ void SvgTextEditor::checkFormat()
{ {
KoColor fg(format.foreground().color(), KoColorSpaceRegistry::instance()->rgb8()); KoColor fg(format.foreground().color(), KoColorSpaceRegistry::instance()->rgb8());
qDebug() << "fg" << fg.toQString(fg);
KoColorPopupAction *fgColorPopup = qobject_cast<KoColorPopupAction*>(actionCollection()->action("svg_format_textcolor")); KoColorPopupAction *fgColorPopup = qobject_cast<KoColorPopupAction*>(actionCollection()->action("svg_format_textcolor"));
KisSignalsBlocker b(fgColorPopup); KisSignalsBlocker b(fgColorPopup);
fgColorPopup->setCurrentColor(fg); fgColorPopup->setCurrentColor(fg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment