summaryrefslogtreecommitdiffstats
path: root/krfb
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:58:08 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:58:08 -0600
commit1de96857f5b0ed5d4a36e9486ffc8c7f8c802f98 (patch)
treee24fdc0514249de1233dd5dc07f09d07a35f4269 /krfb
parent089118c18533dfa3e6ce5065dbebdd4db94051f1 (diff)
downloadtdenetwork-1de96857f5b0ed5d4a36e9486ffc8c7f8c802f98.tar.gz
tdenetwork-1de96857f5b0ed5d4a36e9486ffc8c7f8c802f98.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'krfb')
-rw-r--r--krfb/kcm_krfb/configurationwidget.ui2
-rw-r--r--krfb/kcm_krfb/kcm_krfb.cpp2
-rw-r--r--krfb/kinetd/kinetd.cpp8
-rw-r--r--krfb/krfb/configuration.cc18
-rw-r--r--krfb/krfb/connectionwidget.ui2
-rw-r--r--krfb/krfb/invitation.cc12
-rw-r--r--krfb/krfb/invitedialog.cc2
-rw-r--r--krfb/krfb/invitewidget.ui2
-rw-r--r--krfb/krfb/personalinvitedialog.cc2
-rw-r--r--krfb/krfb/rfbcontroller.cc18
-rw-r--r--krfb/krfb/trayicon.cpp2
-rw-r--r--krfb/libvncserver/cursor.c4
-rw-r--r--krfb/libvncserver/rfb.h6
-rw-r--r--krfb/libvncserver/rfbproto.h12
-rw-r--r--krfb/libvncserver/rfbserver.c2
-rw-r--r--krfb/libvncserver/stats.c2
-rw-r--r--krfb/libvncserver/zlib.c2
-rw-r--r--krfb/srvloc/kserviceregistry.cpp2
-rw-r--r--krfb/srvloc/kserviceregistry.h2
19 files changed, 51 insertions, 51 deletions
diff --git a/krfb/kcm_krfb/configurationwidget.ui b/krfb/kcm_krfb/configurationwidget.ui
index f4e79d39..0eb11995 100644
--- a/krfb/kcm_krfb/configurationwidget.ui
+++ b/krfb/kcm_krfb/configurationwidget.ui
@@ -53,7 +53,7 @@
<property name="title">
<string>Invitations</string>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignAuto</set>
</property>
<vbox>
diff --git a/krfb/kcm_krfb/kcm_krfb.cpp b/krfb/kcm_krfb/kcm_krfb.cpp
index 688b674b..50595505 100644
--- a/krfb/kcm_krfb/kcm_krfb.cpp
+++ b/krfb/kcm_krfb/kcm_krfb.cpp
@@ -97,7 +97,7 @@ void KcmKRfb::setInvitationNum(int num) {
if (num == 0)
m_confWidget->invitationNumLabel->setText(i18n("You have no open invitation."));
else
- m_confWidget->invitationNumLabel->setText(i18n("Open invitations: %1").tqarg(num));
+ m_confWidget->invitationNumLabel->setText(i18n("Open invitations: %1").arg(num));
}
void KcmKRfb::checkKInetd(bool &kinetdAvailable, bool &krfbAvailable) {
diff --git a/krfb/kinetd/kinetd.cpp b/krfb/kinetd/kinetd.cpp
index e0d37f61..2aa7a0cd 100644
--- a/krfb/kinetd/kinetd.cpp
+++ b/krfb/kinetd/kinetd.cpp
@@ -210,7 +210,7 @@ void PortListener::accepted(KSocket *sock) {
}
KExtendedSocket::resolve(ksa, host, port);
KNotifyClient::event("IncomingConnection",
- i18n("Connection from %1").tqarg(host));
+ i18n("Connection from %1").arg(host));
delete ksa;
if ((!m_enabled) ||
@@ -226,9 +226,9 @@ void PortListener::accepted(KSocket *sock) {
m_process << m_execPath << m_argument << TQString::number(sock->socket());
if (!m_process.start(KProcess::DontCare)) {
KNotifyClient::event("ProcessFailed",
- i18n("Call \"%1 %2 %3\" failed").tqarg(m_execPath)
- .tqarg(m_argument)
- .tqarg(sock->socket()));
+ i18n("Call \"%1 %2 %3\" failed").arg(m_execPath)
+ .arg(m_argument)
+ .arg(sock->socket()));
}
delete sock;
diff --git a/krfb/krfb/configuration.cc b/krfb/krfb/configuration.cc
index efab5974..bf0e31a7 100644
--- a/krfb/krfb/configuration.cc
+++ b/krfb/krfb/configuration.cc
@@ -453,15 +453,15 @@ void Configuration::inviteEmail() {
" http://%7:%8/\n"
"\n"
"For security reasons this invitation will expire at %9.")
- .tqarg(inv.password())
- .tqarg(hostname())
- .tqarg(port())
- .tqarg(hostname())
- .tqarg(port())
- .tqarg(inv.password())
- .tqarg(hostname())
- .tqarg(5800) // determine with dcop ... later ...
- .tqarg(KGlobal::locale()->formatDateTime(inv.expirationTime())));
+ .arg(inv.password())
+ .arg(hostname())
+ .arg(port())
+ .arg(hostname())
+ .arg(port())
+ .arg(inv.password())
+ .arg(hostname())
+ .arg(5800) // determine with dcop ... later ...
+ .arg(KGlobal::locale()->formatDateTime(inv.expirationTime())));
}
////////////// invoke kcontrol module //////////////////////////
diff --git a/krfb/krfb/connectionwidget.ui b/krfb/krfb/connectionwidget.ui
index e5378cbe..db280527 100644
--- a/krfb/krfb/connectionwidget.ui
+++ b/krfb/krfb/connectionwidget.ui
@@ -71,7 +71,7 @@
<property name="textFormat">
<enum>AutoText</enum>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>WordBreak|AlignVCenter|AlignLeft</set>
</property>
<property name="indent">
diff --git a/krfb/krfb/invitation.cc b/krfb/krfb/invitation.cc
index ce7e19d8..8cb51ca2 100644
--- a/krfb/krfb/invitation.cc
+++ b/krfb/krfb/invitation.cc
@@ -71,9 +71,9 @@ Invitation::Invitation(const Invitation &x) :
}
Invitation::Invitation(KConfig* config, int num) {
- m_password = cryptStr(config->readEntry(TQString("password%1").tqarg(num), ""));
- m_creationTime = config->readDateTimeEntry(TQString("creation%1").tqarg(num));
- m_expirationTime = config->readDateTimeEntry(TQString("expiration%1").tqarg(num));
+ m_password = cryptStr(config->readEntry(TQString("password%1").arg(num), ""));
+ m_creationTime = config->readDateTimeEntry(TQString("creation%1").arg(num));
+ m_expirationTime = config->readDateTimeEntry(TQString("expiration%1").arg(num));
m_viewItem = 0;
}
@@ -93,9 +93,9 @@ Invitation &Invitation::operator= (const Invitation&x) {
}
void Invitation::save(KConfig *config, int num) const {
- config->writeEntry(TQString("password%1").tqarg(num), cryptStr(m_password));
- config->writeEntry(TQString("creation%1").tqarg(num), m_creationTime);
- config->writeEntry(TQString("expiration%1").tqarg(num), m_expirationTime);
+ config->writeEntry(TQString("password%1").arg(num), cryptStr(m_password));
+ config->writeEntry(TQString("creation%1").arg(num), m_creationTime);
+ config->writeEntry(TQString("expiration%1").arg(num), m_expirationTime);
}
TQString Invitation::password() const {
diff --git a/krfb/krfb/invitedialog.cc b/krfb/krfb/invitedialog.cc
index 73d55b75..f3b202a9 100644
--- a/krfb/krfb/invitedialog.cc
+++ b/krfb/krfb/invitedialog.cc
@@ -59,7 +59,7 @@ void InviteDialog::enableInviteButton( bool enable )
void InviteDialog::setInviteCount( int count )
{
m_inviteWidget->btnManageInvite->setText(
- i18n( "&Manage Invitations (%1)..." ).tqarg( count ) );
+ i18n( "&Manage Invitations (%1)..." ).arg( count ) );
}
#include "invitedialog.moc"
diff --git a/krfb/krfb/invitewidget.ui b/krfb/krfb/invitewidget.ui
index e60ee6c8..589f929c 100644
--- a/krfb/krfb/invitewidget.ui
+++ b/krfb/krfb/invitewidget.ui
@@ -80,7 +80,7 @@
<property name="scaledContents">
<bool>true</bool>
</property>
- <property name="tqalignment">
+ <property name="alignment">
<set>AlignTop</set>
</property>
</widget>
diff --git a/krfb/krfb/personalinvitedialog.cc b/krfb/krfb/personalinvitedialog.cc
index 245e0069..a5664bcb 100644
--- a/krfb/krfb/personalinvitedialog.cc
+++ b/krfb/krfb/personalinvitedialog.cc
@@ -40,7 +40,7 @@ PersonalInviteDialog::PersonalInviteDialog( TQWidget *parent, const char *name )
void PersonalInviteDialog::setHost( const TQString &host, uint port )
{
m_inviteWidget->hostLabel->setText( TQString( "%1:%2" )
- .tqarg( host ).tqarg( port ) );
+ .arg( host ).arg( port ) );
}
void PersonalInviteDialog::setPassword( const TQString &passwd )
diff --git a/krfb/krfb/rfbcontroller.cc b/krfb/krfb/rfbcontroller.cc
index 81c00da7..411d3098 100644
--- a/krfb/krfb/rfbcontroller.cc
+++ b/krfb/krfb/rfbcontroller.cc
@@ -373,7 +373,7 @@ RFBController::RFBController(Configuration *c) :
if (gethostname(hostname, 255))
hostname[0] = 0;
hostname[255] = 0;
- desktopName = i18n("%1@%2 (shared desktop)").tqarg(KUser().loginName()).tqarg(hostname);
+ desktopName = i18n("%1@%2 (shared desktop)").arg(KUser().loginName()).arg(hostname);
}
RFBController::~RFBController()
@@ -508,7 +508,7 @@ void RFBController::acceptConnection(bool aRemoteControl)
{
KNotifyClient::event("UserAcceptsConnection",
i18n("User accepts connection from %1")
- .tqarg(remoteIp));
+ .arg(remoteIp));
if (state != RFB_CONNECTING)
return;
@@ -521,7 +521,7 @@ void RFBController::refuseConnection()
{
KNotifyClient::event("UserRefusesConnection",
i18n("User refuses connection from %1")
- .tqarg(remoteIp));
+ .arg(remoteIp));
if (state != RFB_CONNECTING)
return;
@@ -569,7 +569,7 @@ void RFBController::connectionClosed()
{
KNotifyClient::event("ConnectionClosed",
i18n("Closed connection: %1.")
- .tqarg(remoteIp));
+ .arg(remoteIp));
idleTimer.stop();
initIdleTimer.stop();
@@ -698,12 +698,12 @@ bool RFBController::handleCheckPassword(rfbClientPtr cl,
if (configuration->invitations().size() > 0) {
sendKNotifyEvent("InvalidPasswordInvitations",
i18n("Failed login attempt from %1: wrong password")
- .tqarg(remoteIp));
+ .arg(remoteIp));
}
else
sendKNotifyEvent("InvalidPassword",
i18n("Failed login attempt from %1: wrong password")
- .tqarg(remoteIp));
+ .arg(remoteIp));
return FALSE;
}
@@ -739,7 +739,7 @@ enum rfbNewClientAction RFBController::handleNewClient(rfbClientPtr cl)
if (state != RFB_WAITING) {
sendKNotifyEvent("TooManyConnections",
i18n("Connection refused from %1, already connected.")
- .tqarg(host));
+ .arg(host));
return RFB_CLIENT_REFUSE;
}
remoteIp = host;
@@ -749,7 +749,7 @@ enum rfbNewClientAction RFBController::handleNewClient(rfbClientPtr cl)
(configuration->invitations().size() == 0)) {
sendKNotifyEvent("NewConnectionAutoAccepted",
i18n("Accepted uninvited connection from %1")
- .tqarg(remoteIp));
+ .arg(remoteIp));
connectionAccepted(configuration->allowDesktopControl());
return RFB_CLIENT_ACCEPT;
@@ -757,7 +757,7 @@ enum rfbNewClientAction RFBController::handleNewClient(rfbClientPtr cl)
sendKNotifyEvent("NewConnectionOnHold",
i18n("Received connection from %1, on hold (waiting for confirmation)")
- .tqarg(remoteIp));
+ .arg(remoteIp));
dialog.setRemoteHost(remoteIp);
dialog.setAllowRemoteControl( true );
diff --git a/krfb/krfb/trayicon.cpp b/krfb/krfb/trayicon.cpp
index 5878b633..14c94bc2 100644
--- a/krfb/krfb/trayicon.cpp
+++ b/krfb/krfb/trayicon.cpp
@@ -101,7 +101,7 @@ void TrayIcon::showConnectedMessage(TQString host) {
i18n("The remote user has been authenticated and is now connected."),
trayIconOpen,
this);
- TQToolTip::add(this, i18n("Desktop Sharing - connected with %1").tqarg(host));
+ TQToolTip::add(this, i18n("Desktop Sharing - connected with %1").arg(host));
}
void TrayIcon::showDisconnectedMessage() {
diff --git a/krfb/libvncserver/cursor.c b/krfb/libvncserver/cursor.c
index ebbaedee..a27a2fef 100644
--- a/krfb/libvncserver/cursor.c
+++ b/krfb/libvncserver/cursor.c
@@ -1,5 +1,5 @@
/*
- * cursor.c - support for cursor tqshape updates.
+ * cursor.c - support for cursor shape updates.
*/
/*
@@ -25,7 +25,7 @@
#include "rfb.h"
/*
- * Send cursor tqshape either in X-style format or in client pixel format.
+ * Send cursor shape either in X-style format or in client pixel format.
*/
Bool
diff --git a/krfb/libvncserver/rfb.h b/krfb/libvncserver/rfb.h
index 9e097f59..e8dbfb65 100644
--- a/krfb/libvncserver/rfb.h
+++ b/krfb/libvncserver/rfb.h
@@ -535,10 +535,10 @@ typedef struct _rfbClientRec {
Bool enableLastRectEncoding; /* client supports LastRect encoding */
Bool enableSoftCursorUpdates; /* client supports softcursor updates */
Bool disableBackground; /* client wants to disable background */
- Bool enableCursorShapeUpdates; /* client supports cursor tqshape updates */
+ Bool enableCursorShapeUpdates; /* client supports cursor shape updates */
Bool useRichCursorEncoding; /* rfbEncodingRichCursor is preferred */
- Bool cursorWasChanged; /* cursor tqshape update should be sent */
- Bool cursorWasMoved; /* cursor move tqshape update should be sent */
+ Bool cursorWasChanged; /* cursor shape update should be sent */
+ Bool cursorWasMoved; /* cursor move shape update should be sent */
#ifdef BACKCHANNEL
Bool enableBackChannel;
#endif
diff --git a/krfb/libvncserver/rfbproto.h b/krfb/libvncserver/rfbproto.h
index e511006e..cd619dff 100644
--- a/krfb/libvncserver/rfbproto.h
+++ b/krfb/libvncserver/rfbproto.h
@@ -30,7 +30,7 @@
*
* All multiple byte integers are in big endian (network) order (most
* significant byte first). Unless noted otherwise there is no special
- * tqalignment of protocol structures.
+ * alignment of protocol structures.
*
*
* Once the initial handshaking is done, all messages start with a type byte,
@@ -56,7 +56,7 @@
/*-----------------------------------------------------------------------------
* Structure used to specify a rectangle. This structure is a multiple of 4
* bytes so that it can be interspersed with 32-bit pixel data without
- * affecting tqalignment.
+ * affecting alignment.
*/
typedef struct {
@@ -306,7 +306,7 @@ typedef struct {
/*
* Special encoding numbers:
* 0xFFFFFF00 .. 0xFFFFFF0F -- encoding-specific compression levels;
- * 0xFFFFFF10 .. 0xFFFFFF1F -- mouse cursor tqshape data;
+ * 0xFFFFFF10 .. 0xFFFFFF1F -- mouse cursor shape data;
* 0xFFFFFF20 .. 0xFFFFFF2F -- various protocol extensions;
* 0xFFFFFF30 .. 0xFFFFFFDF -- not allocated yet;
* 0xFFFFFFE0 .. 0xFFFFFFEF -- quality level for JPEG compressor;
@@ -356,7 +356,7 @@ typedef struct {
* This message consists of a header giving the number of rectangles of pixel
* data followed by the rectangles themselves. The header is padded so that
* together with the type byte it is an exact multiple of 4 bytes (to help
- * with tqalignment of 32-bit pixels):
+ * with alignment of 32-bit pixels):
*/
typedef struct {
@@ -517,7 +517,7 @@ typedef struct {
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* XCursor encoding. This is a special encoding used to transmit X-style
- * cursor tqshapes from server to clients. Note that for this encoding,
+ * cursor shapes from server to clients. Note that for this encoding,
* coordinates in rfbFramebufferUpdateRectHeader structure hold hotspot
* position (r.x, r.y) and cursor size (r.w, r.h). If (w * h != 0), two RGB
* samples are sent after header in the rfbXCursorColors structure. They
@@ -548,7 +548,7 @@ typedef struct {
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* RichCursor encoding. This is a special encoding used to transmit cursor
- * tqshapes from server to clients. It is similar to the XCursor encoding but
+ * shapes from server to clients. It is similar to the XCursor encoding but
* uses client pixel format instead of two RGB colors to represent cursor
* image. For this encoding, coordinates in rfbFramebufferUpdateRectHeader
* structure hold hotspot position (r.x, r.y) and cursor size (r.w, r.h).
diff --git a/krfb/libvncserver/rfbserver.c b/krfb/libvncserver/rfbserver.c
index 493f22c9..66cc4ee3 100644
--- a/krfb/libvncserver/rfbserver.c
+++ b/krfb/libvncserver/rfbserver.c
@@ -966,7 +966,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion)
cl->screen->displayHook(cl);
/*
- * If this client understands cursor tqshape updates, cursor should be
+ * If this client understands cursor shape updates, cursor should be
* removed from the framebuffer. Otherwise, make sure it's put up.
*/
diff --git a/krfb/libvncserver/stats.c b/krfb/libvncserver/stats.c
index 86934011..954e6d14 100644
--- a/krfb/libvncserver/stats.c
+++ b/krfb/libvncserver/stats.c
@@ -82,7 +82,7 @@ rfbPrintStats(rfbClientPtr cl)
cl->rfbLastRectMarkersSent, cl->rfbLastRectBytesSent);
if (cl->rfbCursorUpdatesSent != 0)
- rfbLog(" cursor tqshape updates %d, bytes %d\n",
+ rfbLog(" cursor shape updates %d, bytes %d\n",
cl->rfbCursorUpdatesSent, cl->rfbCursorBytesSent);
for (i = 0; i < MAX_ENCODINGS; i++) {
diff --git a/krfb/libvncserver/zlib.c b/krfb/libvncserver/zlib.c
index d1b300b0..5661d265 100644
--- a/krfb/libvncserver/zlib.c
+++ b/krfb/libvncserver/zlib.c
@@ -89,7 +89,7 @@ rfbSendOneRectEncodingZlib(cl, x, y, w, h)
int result;
/* The translation function (used also by the in raw encoding)
- * requires 4/2/1 byte tqalignment in the output buffer (which is
+ * requires 4/2/1 byte alignment in the output buffer (which is
* updateBuf for the raw encoding) based on the bitsPerPixel of
* the viewer/client. This prevents SIGBUS errors on some
* architectures like SPARC, PARISC...
diff --git a/krfb/srvloc/kserviceregistry.cpp b/krfb/srvloc/kserviceregistry.cpp
index eac3ac18..1dd57881 100644
--- a/krfb/srvloc/kserviceregistry.cpp
+++ b/krfb/srvloc/kserviceregistry.cpp
@@ -119,7 +119,7 @@ bool KServiceRegistry::registerService(const TQString &serviceURL,
while (it != attributes.end()) {
if (!s.isEmpty())
s += ",";
- s += TQString("(%1=%2)").tqarg(it.key()).tqarg(it.data());
+ s += TQString("(%1=%2)").arg(it.key()).arg(it.data());
it++;
}
return registerService(serviceURL, s, lifetime);
diff --git a/krfb/srvloc/kserviceregistry.h b/krfb/srvloc/kserviceregistry.h
index 05e88780..ad2c0b1a 100644
--- a/krfb/srvloc/kserviceregistry.h
+++ b/krfb/srvloc/kserviceregistry.h
@@ -78,7 +78,7 @@ class KServiceRegistryPrivate;
* <pre>
* KServiceRegistry ksr;
* KInetAddress kia = KInetAddress->getLocalAddress();
- * ksr.registerService(TQString("service:remotedesktop.kde:vnc://%1:0").tqarg(kia->nodeName()),
+ * ksr.registerService(TQString("service:remotedesktop.kde:vnc://%1:0").arg(kia->nodeName()),
* "(type=shared)");
* delete kia;
* </pre>