diff options
Diffstat (limited to 'krdc/rdp/krdpview.cpp')
-rw-r--r-- | krdc/rdp/krdpview.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/krdc/rdp/krdpview.cpp b/krdc/rdp/krdpview.cpp index 3415ae14..2fdbdab8 100644 --- a/krdc/rdp/krdpview.cpp +++ b/krdc/rdp/krdpview.cpp @@ -27,7 +27,7 @@ #include <kwallet.h> #include <kpassdlg.h> -#include <qvbox.h> +#include <tqvbox.h> #include <qxembed.h> #include <X11/Xlib.h> @@ -45,7 +45,7 @@ extern KWallet::Wallet *wallet; static KRdpView *krdpview; -RdpContainer::RdpContainer(QWidget *parent, const char *name, WFlags f) : +RdpContainer::RdpContainer(TQWidget *parent, const char *name, WFlags f) : QXEmbed(parent, name, f), m_viewOnly(false) { @@ -82,11 +82,11 @@ bool RdpContainer::x11Event(XEvent *e) // constructor -KRdpView::KRdpView(QWidget *parent, const char *name, - const QString &host, int port, - const QString &user, const QString &password, - int flags, const QString &domain, - const QString &shell, const QString &directory) : +KRdpView::KRdpView(TQWidget *parent, const char *name, + const TQString &host, int port, + const TQString &user, const TQString &password, + int flags, const TQString &domain, + const TQString &shell, const TQString &directory) : KRemoteView(parent, name, Qt::WResizeNoErase | Qt::WRepaintNoErase | Qt::WStaticContents), m_name(name), m_host(host), @@ -118,13 +118,13 @@ KRdpView::~KRdpView() } // returns the size of the framebuffer -QSize KRdpView::framebufferSize() +TQSize KRdpView::framebufferSize() { return m_container->sizeHint(); } // returns the suggested size -QSize KRdpView::sizeHint() +TQSize KRdpView::sizeHint() { return maximumSize(); } @@ -146,7 +146,7 @@ bool KRdpView::isQuitting() } // return the host we're connected to -QString KRdpView::host() +TQString KRdpView::host() { return m_host; } @@ -164,7 +164,7 @@ bool KRdpView::editPreferences( HostPrefPtr host ) int wv = hp->width(); int hv = hp->height(); int cd = hp->colorDepth(); - QString kl = hp->layout(); + TQString kl = hp->layout(); bool kwallet = hp->useKWallet(); // show preferences dialog @@ -172,9 +172,9 @@ bool KRdpView::editPreferences( HostPrefPtr host ) i18n( "RDP Host Preferences for %1" ).arg( host->host() ), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ); - QVBox *vbox = dlg->makeVBoxMainWidget(); + TQVBox *vbox = dlg->makeVBoxMainWidget(); RdpPrefs *prefs = new RdpPrefs( vbox ); - QWidget *spacer = new QWidget( vbox ); + TQWidget *spacer = new TQWidget( vbox ); vbox->setStretchFactor( spacer, 10 ); prefs->setRdpWidth( wv ); @@ -185,7 +185,7 @@ bool KRdpView::editPreferences( HostPrefPtr host ) prefs->setShowPrefs( true ); prefs->setUseKWallet(kwallet); - if ( dlg->exec() == QDialog::Rejected ) + if ( dlg->exec() == TQDialog::Rejected ) return false; wv = prefs->rdpWidth(); @@ -209,7 +209,7 @@ bool KRdpView::start() SmartPtr<RdpHostPref> hp, rdpDefaults; bool useKWallet = false; - QWidget *desktop = QApplication::desktop(); + TQWidget *desktop = TQApplication::desktop(); if(!rdpAppDataConfigured) { @@ -233,21 +233,21 @@ bool KRdpView::start() // Check for fullscreen mode if ((hp->width() == 0) && (hp->height() == 0)) { launch_Fullscreen_rdp = true; - *m_process << "-g" << (QString::number(desktop->width()) + "x" + QString::number((desktop->height()-2))); + *m_process << "-g" << (TQString::number(desktop->width()) + "x" + TQString::number((desktop->height()-2))); } else { if ((hp->height() > (desktop->height()-2)) && (hp->height() <= (desktop->height()))) { - *m_process << "-g" << (QString::number(hp->width()) + "x" + QString::number(desktop->height()-2)); + *m_process << "-g" << (TQString::number(hp->width()) + "x" + TQString::number(desktop->height()-2)); } else { - *m_process << "-g" << (QString::number(hp->width()) + "x" + QString::number(hp->height())); + *m_process << "-g" << (TQString::number(hp->width()) + "x" + TQString::number(hp->height())); } } *m_process << "-k" << hp->layout(); if(!m_user.isEmpty()) { *m_process << "-u" << m_user; } if(m_password.isEmpty() && useKWallet ) { - QString krdc_folder = "KRDC-RDP"; + TQString krdc_folder = "KRDC-RDP"; // Bugfix: Check if wallet has been closed by an outside source if ( wallet && !wallet->isOpen() ) { @@ -256,7 +256,7 @@ bool KRdpView::start() // Do we need to open the wallet? if ( !wallet ) { - QString walletName = KWallet::Wallet::NetworkWallet(); + TQString walletName = KWallet::Wallet::NetworkWallet(); wallet = KWallet::Wallet::openWallet(walletName); } @@ -275,7 +275,7 @@ bool KRdpView::start() if ( m_password.isEmpty() ) { //There must not be an existing entry. Let's make one. - QCString newPassword; + TQCString newPassword; if (KPasswordDialog::getPassword(newPassword, i18n("Please enter the password.")) == KPasswordDialog::Accepted) { m_password = newPassword; wallet->writePassword(m_host, m_password); @@ -288,13 +288,13 @@ bool KRdpView::start() *m_process << "-p" << m_password; } - *m_process << "-X" << ("0x" + QString::number(m_container->winId(), 16)); - *m_process << "-a" << QString::number(hp->colorDepth()); - *m_process << (m_host + ":" + QString::number(m_port)); - connect(m_process, SIGNAL(processExited(KProcess *)), SLOT(processDied(KProcess *))); - connect(m_process, SIGNAL(receivedStderr(KProcess *, char *, int)), SLOT(receivedStderr(KProcess *, char *, int))); - connect(m_container, SIGNAL(embeddedWindowDestroyed()), SLOT(connectionClosed())); - connect(m_container, SIGNAL(newEmbeddedWindow(WId)), SLOT(connectionOpened(WId))); + *m_process << "-X" << ("0x" + TQString::number(m_container->winId(), 16)); + *m_process << "-a" << TQString::number(hp->colorDepth()); + *m_process << (m_host + ":" + TQString::number(m_port)); + connect(m_process, TQT_SIGNAL(processExited(KProcess *)), TQT_SLOT(processDied(KProcess *))); + connect(m_process, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), TQT_SLOT(receivedStderr(KProcess *, char *, int))); + connect(m_container, TQT_SIGNAL(embeddedWindowDestroyed()), TQT_SLOT(connectionClosed())); + connect(m_container, TQT_SIGNAL(newEmbeddedWindow(WId)), TQT_SLOT(connectionOpened(WId))); qDebug("Color depth: %d", hp->colorDepth()); if(!m_process->start(KProcess::NotifyOnExit, KProcess::Stderr)) { @@ -340,7 +340,7 @@ void KRdpView::setViewOnly(bool s) void KRdpView::connectionOpened(WId /*window*/) { - QSize size = m_container->sizeHint(); + TQSize size = m_container->sizeHint(); setStatus(REMOTE_VIEW_CONNECTED); setFixedSize(size); @@ -373,8 +373,8 @@ void KRdpView::processDied(KProcess */*proc*/) void KRdpView::receivedStderr(KProcess */*proc*/, char *buffer, int /*buflen*/) { - QString output(buffer); - QString line; + TQString output(buffer); + TQString line; int i = 0; while(!(line = output.section('\n', i, i)).isEmpty()) { |