From 34bbc5e4578d969e2fddc01b500f7649fcc75e8b Mon Sep 17 00:00:00 2001 From: David Faure Date: Sun, 24 Feb 2002 18:16:45 +0000 Subject: [PATCH] qWarning -> kdWarning svn path=/trunk/kdebase/kwin/; revision=138408 --- clients/kwmtheme/cli_installer/main.cpp | 9 +++++---- clients/kwmtheme/kwmthemeclient.cpp | 5 +++-- plugins.cpp | 3 ++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/clients/kwmtheme/cli_installer/main.cpp b/clients/kwmtheme/cli_installer/main.cpp index 6fcc3676a6..88b3067bbc 100644 --- a/clients/kwmtheme/cli_installer/main.cpp +++ b/clients/kwmtheme/cli_installer/main.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -21,11 +22,11 @@ void copy(const QString &src, const QString &dest) QFile copyInput(src); QFile copyOutput(dest); if(!copyInput.open(IO_ReadOnly)){ - qWarning("Couldn't open %s", src.latin1()); + kdWarning() << "Couldn't open " << src << endl; return; } if(!copyOutput.open(IO_WriteOnly)){ - qWarning("Couldn't open %s", dest.latin1()); + kdWarning() << "Couldn't open " << dest << endl; copyInput.close(); return; } @@ -43,7 +44,7 @@ int main(int argc, char **argv) KApplication app(argc, argv); KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); if(!args->count()){ - qWarning("You need to specify the path to a theme config file!"); + kdWarning() << "You need to specify the path to a theme config file!" << endl; return(1); } @@ -52,7 +53,7 @@ int main(int argc, char **argv) QString tmpStr; if(!f.exists()){ - qWarning("Specified theme config file doesn't exist!"); + kdWarning() << "Specified theme config file doesn't exist!" << endl; return(2); } diff --git a/clients/kwmtheme/kwmthemeclient.cpp b/clients/kwmtheme/kwmthemeclient.cpp index 1e9a39889a..28a7f294c6 100644 --- a/clients/kwmtheme/kwmthemeclient.cpp +++ b/clients/kwmtheme/kwmthemeclient.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -91,7 +92,7 @@ static void create_pixmaps() framePixmaps[i] = new QPixmap(locate("appdata", "pics/"+config->readEntry(keys[i], " "))); if(framePixmaps[i]->isNull()) - qWarning("Unable to load frame pixmap for %s", keys[i]); + kdWarning() << "Unable to load frame pixmap for " << keys[i] << endl; } /* *framePixmaps[FrameTop] = stretchPixmap(*framePixmaps[FrameTop], false); @@ -331,7 +332,7 @@ KWMThemeClient::KWMThemeClient( Workspace *ws, WId w, QWidget *parent, if((val != "Off") && ((val == "Iconify") && !isMinimizable()) && ((val == "Maximize") && !isMaximizable())) - qWarning("KWin: Unrecognized button value: %s", val.latin1()); + kdWarning() << "KWin: Unrecognized button value: " << val << endl; } } diff --git a/plugins.cpp b/plugins.cpp index 5abd7f9229..981090f63a 100644 --- a/plugins.cpp +++ b/plugins.cpp @@ -7,6 +7,7 @@ Copyright (C) 1999, 2000 Daniel M. Duley #include #include #include +#include #include #include #include @@ -113,7 +114,7 @@ void PluginMgr::loadPlugin(QString nameStr) if(alloc_func) { alloc_ptr = (Client* (*)(Workspace *ws, WId w, int tool))alloc_func; } else { - qWarning("KWin: The library %s is not a KWin plugin.", path.latin1()); + kdWarning() << "KWin: The library " << path << " is not a KWin plugin." << endl; library->unload(); exit(1); }