diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kppp/debug.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/debug.cpp')
-rw-r--r-- | kppp/debug.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kppp/debug.cpp b/kppp/debug.cpp index e551bdea..3dee5797 100644 --- a/kppp/debug.cpp +++ b/kppp/debug.cpp @@ -29,24 +29,24 @@ extern KPPPWidget *p_kppp; -myMultiEdit::myMultiEdit(QWidget *parent, const char *name) - : QMultiLineEdit(parent, name) +myMultiEdit::myMultiEdit(TQWidget *parent, const char *name) + : TQMultiLineEdit(parent, name) { setReadOnly(true); } void myMultiEdit::insertChar(unsigned char c) { - QMultiLineEdit::insert(QChar(c)); + TQMultiLineEdit::insert(TQChar(c)); } void myMultiEdit::newLine() { - QMultiLineEdit::newLine(); + TQMultiLineEdit::newLine(); } -DebugWidget::DebugWidget(QWidget *parent, const char *name) - : QDialog(parent, name, FALSE) +DebugWidget::DebugWidget(TQWidget *parent, const char *name) + : TQDialog(parent, name, FALSE) { setCaption(i18n("Login Script Debug Window")); @@ -54,29 +54,29 @@ DebugWidget::DebugWidget(QWidget *parent, const char *name) text_window->setGeometry(2,5,400, 300); // text_window->setReadOnly(FALSE); - statuslabel = new QLabel("", this, "statuslabel"); + statuslabel = new TQLabel("", this, "statuslabel"); - statuslabel->setFrameStyle( QFrame::Panel | QFrame::Sunken ); + statuslabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); statuslabel->setAlignment( AlignLeft|AlignVCenter ); statuslabel->setGeometry(2, 307, 400, 20); //statusPageLabel->setFont( KGlobalSettings::generalFont() ); - dismiss = new QPushButton(this); + dismiss = new TQPushButton(this); dismiss->setGeometry(330,340,70,30); dismiss->setText(i18n("&Close")); dismiss->setFocus(); - connect(dismiss, SIGNAL(clicked()), SLOT(hide())); + connect(dismiss, TQT_SIGNAL(clicked()), TQT_SLOT(hide())); - /* fline = new QFrame(this,"line"); - fline->setFrameStyle(QFrame::HLine |QFrame::Sunken); + /* fline = new TQFrame(this,"line"); + fline->setFrameStyle(TQFrame::HLine |TQFrame::Sunken); fline->setGeometry(2,332,398,5);*/ adjustSize(); setMinimumSize(width(),height()); } -void DebugWidget::hideEvent(QHideEvent *) +void DebugWidget::hideEvent(TQHideEvent *) { assert(p_kppp); p_kppp->con->debug->setOn(false); @@ -88,7 +88,7 @@ void DebugWidget::clear() { void DebugWidget::addChar(unsigned char c) { - QString stuff; + TQString stuff; if(c == '\r' || c == '\n') { if(c == '\n') @@ -98,17 +98,17 @@ void DebugWidget::addChar(unsigned char c) { } -void DebugWidget::statusLabel(const QString &s) { +void DebugWidget::statusLabel(const TQString &s) { statuslabel->setText(s); } /* -void DebugWidget::keyPressEvent(QKeyEvent *k) { +void DebugWidget::keyPressEvent(TQKeyEvent *k) { } */ -void DebugWidget::resizeEvent(QResizeEvent *e){ +void DebugWidget::resizeEvent(TQResizeEvent *e){ int w = width() ; int h = height(); e = e; |