summaryrefslogtreecommitdiff
path: root/utils/wpseditor/gui/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/wpseditor/gui/src/utils.cpp')
-rw-r--r--utils/wpseditor/gui/src/utils.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/utils/wpseditor/gui/src/utils.cpp b/utils/wpseditor/gui/src/utils.cpp
deleted file mode 100644
index 74e4c907c8..0000000000
--- a/utils/wpseditor/gui/src/utils.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 by Rostilav Checkan
10 * $Id$
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#include "utils.h"
23#include <QPointer>
24#include <QtGlobal>
25#include "qwpseditorwindow.h"
26
27extern QPointer<QWpsEditorWindow> win;
28
29int qlogger(const char* fmt,...) {
30 va_list ap;
31 va_start(ap, fmt);
32 QString s;
33 s.vsprintf(fmt,ap);
34 va_end(ap);
35 s.replace("\n","");
36 //qDebug()<<s;
37 if (win==0)
38 qDebug()<<s;
39 if (s.indexOf("ERR")>=0)
40 s = "<font color=red>"+s+"</font>";
41 if (win!=0)
42 win->logMsg(s);
43 return s.length();
44}
45
46int qlogger(const QString& s) {
47 return qlogger(s.toAscii().data());
48}