Remove random qDebug output
Makes it easier to spot the actual problems on the output. If there's something that's actually indicating a problem, we should make it a qWarning.
This commit is contained in:
parent
ac963b8a27
commit
556c1e321a
src
declarativeimports
plasma
plasmaquick
scriptengines/qml/plasmoid
@ -375,10 +375,10 @@ void WindowThumbnail::resolveGLXFunctions()
|
||||
auto *context = window()->openglContext();
|
||||
QList<QByteArray> extensions = QByteArray(glXQueryExtensionsString(QX11Info::display(), QX11Info::appScreen())).split(' ');
|
||||
if (extensions.contains(QByteArrayLiteral("GLX_EXT_texture_from_pixmap"))) {
|
||||
qDebug() << "Have texture from pixmap";
|
||||
m_bindTexImage = context->getProcAddress(QByteArrayLiteral("glXBindTexImageEXT"));
|
||||
m_releaseTexImage = context->getProcAddress(QByteArrayLiteral("glXReleaseTexImageEXT"));
|
||||
}
|
||||
} else
|
||||
qWarning() << "couldn't resolve GLX_EXT_texture_from_pixmap functions";
|
||||
m_openGLFunctionsResolved = true;
|
||||
}
|
||||
|
||||
|
@ -62,8 +62,6 @@ QString Application::application() const
|
||||
|
||||
void Application::setApplication(const QString &application)
|
||||
{
|
||||
qDebug() << "setting the application to" << application;
|
||||
|
||||
// TODO: make an application whitelist
|
||||
// and ensure those are invoked from the system
|
||||
// prefix (plasma's)
|
||||
@ -71,8 +69,6 @@ void Application::setApplication(const QString &application)
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug() << "setting the application to" << application;
|
||||
|
||||
d->application = application;
|
||||
|
||||
emit applicationChanged(application);
|
||||
@ -84,7 +80,6 @@ void Application::setApplication(const QString &application)
|
||||
|
||||
void Application::setRunning(bool run)
|
||||
{
|
||||
qDebug() << "running?" << run;
|
||||
d->running = run;
|
||||
|
||||
if (run) {
|
||||
@ -105,7 +100,6 @@ void Application::start()
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug() << "Starting" << d->application;
|
||||
d->process.start(d->application);
|
||||
|
||||
if (!d->process.waitForStarted()) {
|
||||
|
@ -33,12 +33,9 @@ public:
|
||||
PlatformComponentsPlugin(QObject *parent = Q_NULLPTR)
|
||||
: QQmlExtensionPlugin(parent)
|
||||
{
|
||||
qDebug() << "instantiated plugin object";
|
||||
}
|
||||
|
||||
void registerTypes(const char *uri) Q_DECL_OVERRIDE {
|
||||
qDebug() << "plugin loaded, registering types " << uri;
|
||||
|
||||
Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.plasma.platformcomponents"));
|
||||
|
||||
qmlRegisterType<Application> (uri, 2, 0, "Application");
|
||||
|
@ -540,7 +540,6 @@ QList<Plasma::Containment *> CoronaPrivate::importLayout(const KConfigGroup &con
|
||||
QObject::connect(containment, &Plasma::Containment::uiReadyChanged, [ = ]() {
|
||||
--containmentsStarting;
|
||||
if (containmentsStarting <= 0) {
|
||||
qDebug() << "Corona Startup Completed";
|
||||
emit q->startupCompleted();
|
||||
}
|
||||
});
|
||||
|
@ -72,7 +72,7 @@ void ViewPrivate::setContainment(Plasma::Containment *cont)
|
||||
QObject::disconnect(containment.data(), 0, q, 0);
|
||||
QObject *oldGraphicObject = containment.data()->property("_plasma_graphicObject").value<QObject *>();
|
||||
if (oldGraphicObject) {
|
||||
qDebug() << "Old graphics Object:" << oldGraphicObject << "Old containment" << containment.data();
|
||||
// qDebug() << "Old graphics Object:" << oldGraphicObject << "Old containment" << containment.data();
|
||||
//make sure the graphic object won't die with us
|
||||
//FIXME:we need a way to reparent to *NO* graphics item, but this makes Qt crash
|
||||
oldGraphicObject->setParent(containment.data());
|
||||
@ -106,7 +106,7 @@ void ViewPrivate::setContainment(Plasma::Containment *cont)
|
||||
QQuickItem *graphicObject = qobject_cast<QQuickItem *>(containment.data()->property("_plasma_graphicObject").value<QObject *>());
|
||||
|
||||
if (graphicObject) {
|
||||
qDebug() << "using as graphic containment" << graphicObject << containment.data();
|
||||
// qDebug() << "using as graphic containment" << graphicObject << containment.data();
|
||||
|
||||
//by resizing before adding, it will avoid some resizes in most cases
|
||||
graphicObject->setProperty("width", q->width());
|
||||
|
@ -140,8 +140,6 @@ void AppletInterface::init()
|
||||
|
||||
AppletQuickItem::init();
|
||||
|
||||
qDebug() << "Graphic object created:" << applet() << this;
|
||||
|
||||
geometryChanged(QRectF(), QRectF(x(), y(), width(), height()));
|
||||
emit busyChanged();
|
||||
|
||||
|
@ -131,7 +131,6 @@ void ContainmentInterface::init()
|
||||
if (toolBoxObject) {
|
||||
containmentGraphicObject->setProperty("toolBox", QVariant::fromValue(toolBoxObject));
|
||||
}
|
||||
qDebug() << "Loaded toolbox package" << pkg.path();
|
||||
}
|
||||
} else {
|
||||
qWarning() << "Could not load toolbox package." << pkg.path();
|
||||
@ -501,8 +500,8 @@ void ContainmentInterface::appletAddedForward(Plasma::Applet *applet)
|
||||
QObject *appletGraphicObject = applet->property("_plasma_graphicObject").value<QObject *>();
|
||||
QObject *contGraphicObject = containment()->property("_plasma_graphicObject").value<QObject *>();
|
||||
|
||||
qDebug() << "Applet added on containment:" << containment()->title() << contGraphicObject
|
||||
<< "Applet: " << applet << applet->title() << appletGraphicObject;
|
||||
// qDebug() << "Applet added on containment:" << containment()->title() << contGraphicObject
|
||||
// << "Applet: " << applet << applet->title() << appletGraphicObject;
|
||||
|
||||
if (!appletGraphicObject) {
|
||||
appletGraphicObject = new AppletInterface(applet, QVariantList(), this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user