summaryrefslogtreecommitdiffstats
path: root/kcharselect
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:23:49 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:23:49 -0600
commit89856e749bf14e63fed55a8f3436ea9a6f19667a (patch)
tree4aafeedd270ea6358ae47dbe41758758e7a3c780 /kcharselect
parent7ea89afa119615e547323a7a482ea7fef8e67029 (diff)
downloadtdeutils-89856e749bf14e63fed55a8f3436ea9a6f19667a.tar.gz
tdeutils-89856e749bf14e63fed55a8f3436ea9a6f19667a.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'kcharselect')
-rw-r--r--kcharselect/kcharselectdia.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/kcharselect/kcharselectdia.cc b/kcharselect/kcharselectdia.cc
index 369d0e4..cafdab3 100644
--- a/kcharselect/kcharselectdia.cc
+++ b/kcharselect/kcharselectdia.cc
@@ -148,7 +148,7 @@ void KCharSelectDia::add(const TQChar &_chr)
//==================================================================
void KCharSelectDia::toClip()
{
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
cb->setSelectionMode( true );
cb->setText(lined->text());
cb->setSelectionMode( false );
@@ -161,7 +161,7 @@ void KCharSelectDia::toClip()
//
void KCharSelectDia::toClipUTF8()
{
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
TQString str = lined->text();
cb->setText(str.utf8());
}
@@ -174,7 +174,7 @@ void KCharSelectDia::toClipUTF8()
//
void KCharSelectDia::toClipHTML()
{
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
TQString input;
TQString html;
TQString tempstring;
@@ -185,13 +185,13 @@ void KCharSelectDia::toClipHTML()
for(i=0; i< input.length(); i++ )
{
tempchar = input.at(i);
- if( tempchar.latin1() && ((tempchar.tqunicode() < 128) || (tempchar.tqunicode() >= 128+32)) )
+ if( tempchar.latin1() && ((tempchar.unicode() < 128) || (tempchar.unicode() >= 128+32)) )
{
html.append(input.at(i));
}
else
{
- html.append(tempstring.sprintf("&#x%x;", tempchar.tqunicode()));
+ html.append(tempstring.sprintf("&#x%x;", tempchar.unicode()));
}
}
cb->setText(html);
@@ -201,7 +201,7 @@ void KCharSelectDia::toClipHTML()
//
void KCharSelectDia::fromClip()
{
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
lined->setText( cb->text() );
}
@@ -213,7 +213,7 @@ void KCharSelectDia::fromClip()
//
void KCharSelectDia::fromClipUTF8()
{
- TQClipboard *cb = TQApplication::tqclipboard();
+ TQClipboard *cb = TQApplication::clipboard();
TQString str = cb->text();
lined->setText( str.fromUtf8( str.latin1() ) );
@@ -266,7 +266,7 @@ void KCharSelectDia::_exit()
config->setGroup("General");
config->writeEntry("selectedFont",vFont);
- config->writeEntry("char",static_cast<int>(vChr.tqunicode()));
+ config->writeEntry("char",static_cast<int>(vChr.unicode()));
config->writeEntry("table",charSelect->tableNum());
config->writeEntry("entryDirection",entryDirection);
config->sync();