diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
commit | bab40890696ec68c337dc290880423a0602b83c7 (patch) | |
tree | 6ba03f720b1fa88235ba339e7aedb4455430357e /kdeprint/cups/cupsaddsmb2.cpp | |
parent | f7e71d47719ab6094cf4a9fafffa5ea351973522 (diff) | |
download | tdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip |
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/cups/cupsaddsmb2.cpp')
-rw-r--r-- | kdeprint/cups/cupsaddsmb2.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeprint/cups/cupsaddsmb2.cpp b/kdeprint/cups/cupsaddsmb2.cpp index 8a6d44d6e..2737cfd71 100644 --- a/kdeprint/cups/cupsaddsmb2.cpp +++ b/kdeprint/cups/cupsaddsmb2.cpp @@ -58,9 +58,9 @@ CupsAddSmb::CupsAddSmb(TQWidget *parent, const char *name) connect(m_doit, TQT_SIGNAL(clicked()), TQT_SLOT(slotActionClicked())); m_bar = new TQProgressBar(this); m_text = new KActiveLabel(this); - QLabel *m_title = new TQLabel(i18n("Export Printer Driver to Windows Clients"), this); + TQLabel *m_title = new TQLabel(i18n("Export Printer Driver to Windows Clients"), this); setCaption(m_title->text()); - QFont f(m_title->font()); + TQFont f(m_title->font()); f.setBold(true); m_title->setFont(f); KSeparator *m_sep = new KSeparator(Qt::Horizontal, this); @@ -100,15 +100,15 @@ CupsAddSmb::CupsAddSmb(TQWidget *parent, const char *name) TQWhatsThis::add( m_passwdlab, txt ); TQWhatsThis::add( m_passwded, txt ); - QHBoxLayout *l0 = new TQHBoxLayout(this, 10, 10); - QVBoxLayout *l1 = new TQVBoxLayout(0, 0, 10); + TQHBoxLayout *l0 = new TQHBoxLayout(this, 10, 10); + TQVBoxLayout *l1 = new TQVBoxLayout(0, 0, 10); l0->addWidget(m_side); l0->addLayout(l1); l1->addWidget(m_title); l1->addWidget(m_sep); l1->addWidget(m_text); TQGridLayout *l3 = new TQGridLayout( 0, 3, 2, 0, 10 ); - l1->addLayout( l3 ); + l1->addLayout( TQT_TQLAYOUT(l3) ); l3->addWidget( m_loginlab, 1, 0 ); l3->addWidget( m_passwdlab, 2, 0 ); l3->addWidget( m_serverlab, 0, 0 ); @@ -120,7 +120,7 @@ CupsAddSmb::CupsAddSmb(TQWidget *parent, const char *name) l1->addWidget(m_bar); l1->addWidget( m_textinfo ); l1->addSpacing(30); - QHBoxLayout *l2 = new TQHBoxLayout(0, 0, 10); + TQHBoxLayout *l2 = new TQHBoxLayout(0, 0, 10); l1->addLayout(l2); l2->addStretch(1); l2->addWidget(m_doit); @@ -147,7 +147,7 @@ void CupsAddSmb::slotActionClicked() void CupsAddSmb::slotReceived(KProcess*, char *buf, int buflen) { - QString line; + TQString line; int index(0); bool partial(false); static bool incomplete(false); @@ -160,7 +160,7 @@ void CupsAddSmb::slotReceived(KProcess*, char *buf, int buflen) partial = true; while (index < buflen) { - QChar c(buf[index++]); + TQChar c(buf[index++]); if (c == '\n') { partial = false; @@ -253,7 +253,7 @@ void CupsAddSmb::doNextAction() m_state = None; if (m_proc.isRunning()) { - QCString s = m_actions[m_actionindex++].latin1(); + TQCString s = m_actions[m_actionindex++].latin1(); m_bar->setProgress(m_bar->progress()+1); kdDebug(500) << "NEXT ACTION = " << s << endl; if (s == "quit") @@ -289,7 +289,7 @@ void CupsAddSmb::doNextAction() m_state = AddPrinter; //m_text->setText(i18n("Installing printer %1").arg(m_actions[m_actionindex])); m_textinfo->setText(i18n("Installing printer %1").arg(m_actions[m_actionindex])); - QCString dest = m_actions[m_actionindex].local8Bit(); + TQCString dest = m_actions[m_actionindex].local8Bit(); if (s == "addprinter") s.append(" ").append(dest).append(" ").append(dest).append(" \"").append(dest).append("\" \"\""); else |