diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-17 08:20:48 +0000 |
commit | aa0726b20f398264f0a2abc60215be044b106f9c (patch) | |
tree | 070fdbc19a1106cfdd7f651a8ce76bb1b89a513d /src/debugwindow.cpp | |
parent | d3cf5b3e75aadc3b02d0b56f030d4c3f8c2c749d (diff) | |
download | basket-aa0726b20f398264f0a2abc60215be044b106f9c.tar.gz basket-aa0726b20f398264f0a2abc60215be044b106f9c.zip |
TQt4 port basket
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1232416 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/debugwindow.cpp')
-rw-r--r-- | src/debugwindow.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/debugwindow.cpp b/src/debugwindow.cpp index 7df259e..d6e5b0e 100644 --- a/src/debugwindow.cpp +++ b/src/debugwindow.cpp @@ -18,42 +18,42 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include <qlayout.h> -#include <qtextbrowser.h> -#include <qstring.h> -#include <qevent.h> +#include <tqlayout.h> +#include <tqtextbrowser.h> +#include <tqstring.h> +#include <tqevent.h> #include <klocale.h> #include "global.h" #include "debugwindow.h" -DebugWindow::DebugWindow(QWidget *parent, const char *name ) - : QWidget(parent, name != 0 ? name : "DebugWindow") +DebugWindow::DebugWindow(TQWidget *tqparent, const char *name ) + : TQWidget(tqparent, name != 0 ? name : "DebugWindow") { Global::debugWindow = this; setCaption(i18n("Debug Window")); - layout = new QVBoxLayout(this); - textBrowser = new QTextBrowser(this); + tqlayout = new TQVBoxLayout(this); + textBrowser = new TQTextBrowser(this); - textBrowser->setWordWrap(QTextBrowser::NoWrap); + textBrowser->setWordWrap(TQTextBrowser::NoWrap); - layout->addWidget(textBrowser); + tqlayout->addWidget(textBrowser); textBrowser->show(); } DebugWindow::~DebugWindow() { delete textBrowser; - delete layout; + delete tqlayout; } -void DebugWindow::postMessage(const QString msg) +void DebugWindow::postMessage(const TQString msg) { textBrowser->append(msg); } -DebugWindow& DebugWindow::operator<<(const QString msg) +DebugWindow& DebugWindow::operator<<(const TQString msg) { textBrowser->append(msg); return *this; @@ -64,10 +64,10 @@ void DebugWindow::insertHLine() textBrowser->append("<hr>"); } -void DebugWindow::closeEvent(QCloseEvent *event) +void DebugWindow::closeEvent(TQCloseEvent *event) { Global::debugWindow = 0L; - QWidget::closeEvent(event); + TQWidget::closeEvent(event); } #include "debugwindow.moc" |