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