summaryrefslogtreecommitdiffstats
path: root/kio
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-15 19:11:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-15 19:11:41 +0000
commit374d939d8af431477ce2601815f0ba121b66871c (patch)
treead878478dcc0bedf51e3cffb2ed611ada422b290 /kio
parentf9279733bf71e446933b46f40cbe9c9b9f57b778 (diff)
downloadtdelibs-374d939d8af431477ce2601815f0ba121b66871c.tar.gz
tdelibs-374d939d8af431477ce2601815f0ba121b66871c.zip
Allow kdelibs to function correctly with TQt for Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1220926 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kio')
-rw-r--r--kio/bookmarks/kbookmarkbar.cc8
-rw-r--r--kio/bookmarks/kbookmarkmenu.cc24
-rw-r--r--kio/kfile/kdiroperator.cpp4
-rw-r--r--kio/kfile/kencodingfiledialog.cpp4
-rw-r--r--kio/kfile/kfiledialog.cpp10
-rw-r--r--kio/kfile/kfilefiltercombo.cpp2
-rw-r--r--kio/kfile/kfileiconview.cpp6
-rw-r--r--kio/kfile/kicondialog.cpp10
-rw-r--r--kio/kfile/knotifydialog.cpp2
-rw-r--r--kio/kfile/kpropertiesdialog.cpp28
-rw-r--r--kio/kfile/kurlbar.cpp2
-rw-r--r--kio/kfile/kurlcombobox.cpp4
-rw-r--r--kio/kio/job.cpp2
-rw-r--r--kio/kio/kar.cpp8
-rw-r--r--kio/kio/karchive.cpp2
-rw-r--r--kio/kio/klimitediodevice.h8
-rw-r--r--kio/kio/kservicefactory.cpp12
-rw-r--r--kio/kio/kservicegroupfactory.cpp4
-rw-r--r--kio/kio/kservicetypefactory.cpp8
-rw-r--r--kio/kio/kshred.cpp6
-rw-r--r--kio/kio/ktar.cpp24
-rw-r--r--kio/kio/kurlcompletion.cpp10
-rw-r--r--kio/kio/kurlpixmapprovider.cpp2
-rw-r--r--kio/kio/kzip.cpp54
-rw-r--r--kio/kio/paste.cpp2
-rw-r--r--kio/kio/paste.h2
-rw-r--r--kio/kio/pastedialog.cpp2
-rw-r--r--kio/kio/scheduler.cpp4
-rw-r--r--kio/kssl/ksslcertificate.cc2
-rw-r--r--kio/kssl/ksslinfodlg.cc2
-rw-r--r--kio/kssl/ksslsettings.cc2
-rw-r--r--kio/misc/ksendbugmail/main.cpp4
-rw-r--r--kio/misc/kssld/kssld.cpp4
-rw-r--r--kio/misc/uiserver.cpp4
-rw-r--r--kio/misc/uiserver.h2
-rw-r--r--kio/tests/kfiltertest.cpp4
36 files changed, 139 insertions, 139 deletions
diff --git a/kio/bookmarks/kbookmarkbar.cc b/kio/bookmarks/kbookmarkbar.cc
index 4709988a4..158caf373 100644
--- a/kio/bookmarks/kbookmarkbar.cc
+++ b/kio/bookmarks/kbookmarkbar.cc
@@ -200,8 +200,8 @@ void KBookmarkBar::fillBookmarkBar(KBookmarkGroup & parent)
else
{
KAction *action = new KBookmarkAction( text, bm.icon(), 0, m_actionCollection, 0 );
- connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, Qt::ButtonState )),
- this, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, Qt::ButtonState ) ));
+ connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, TQt::ButtonState )),
+ this, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, TQt::ButtonState ) ));
action->setProperty( "url", bm.url().url() );
action->setProperty( "address", bm.address() );
@@ -231,8 +231,8 @@ void KBookmarkBar::fillBookmarkBar(KBookmarkGroup & parent)
bm.address());
connect(menu, TQT_SIGNAL( aboutToShowContextMenu(const KBookmark &, TQPopupMenu * ) ),
this, TQT_SIGNAL( aboutToShowContextMenu(const KBookmark &, TQPopupMenu * ) ));
- connect(menu, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState) ),
- this, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState) ));
+ connect(menu, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState) ),
+ this, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState) ));
menu->fillBookmarkMenu();
action->plug(m_toolBar);
m_lstSubMenus.append( menu );
diff --git a/kio/bookmarks/kbookmarkmenu.cc b/kio/bookmarks/kbookmarkmenu.cc
index 916690c19..a4195409b 100644
--- a/kio/bookmarks/kbookmarkmenu.cc
+++ b/kio/bookmarks/kbookmarkmenu.cc
@@ -404,9 +404,9 @@ void RMB::slotRMBActionCopyLocation( int val )
if ( !bookmark.isGroup() )
{
kapp->tqclipboard()->setData( KBookmarkDrag::newDrag(bookmark, 0),
- QClipboard::Selection );
+ TQClipboard::Selection );
kapp->tqclipboard()->setData( KBookmarkDrag::newDrag(bookmark, 0),
- QClipboard::Clipboard );
+ TQClipboard::Clipboard );
}
}
@@ -609,8 +609,8 @@ void KBookmarkMenu::fillBookmarkMenu()
new KBookmarkMenu( m_pManager, m_pOwner, actionMenu->popupMenu(),
m_actionCollection, false,
m_bAddBookmark, TQString::null );
- connect( subMenu, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) ),
- this, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) ));
+ connect( subMenu, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ),
+ this, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ));
m_lstSubMenus.append(subMenu);
connect(actionMenu->popupMenu(), TQT_SIGNAL(aboutToShow()), subMenu, TQT_SLOT(slotNSLoad()));
@@ -639,8 +639,8 @@ void KBookmarkMenu::fillBookmarkMenu()
{
//kdDebug(7043) << "Creating URL bookmark menu item for " << bm.text() << endl;
KAction * action = new KBookmarkAction( text, bm.icon(), 0, m_actionCollection, 0 );
- connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, Qt::ButtonState )),
- this, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, Qt::ButtonState ) ));
+ connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, TQt::ButtonState )),
+ this, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, TQt::ButtonState ) ));
action->setProperty( "url", bm.url().url() );
action->setProperty( "address", bm.address() );
@@ -668,8 +668,8 @@ void KBookmarkMenu::fillBookmarkMenu()
connect(subMenu, TQT_SIGNAL( aboutToShowContextMenu( const KBookmark &, TQPopupMenu * ) ),
this, TQT_SIGNAL( aboutToShowContextMenu( const KBookmark &, TQPopupMenu * ) ));
- connect(subMenu, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) ),
- this, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) ));
+ connect(subMenu, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ),
+ this, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ));
m_lstSubMenus.append( subMenu );
}
}
@@ -1058,8 +1058,8 @@ void KBookmarkMenuNSImporter::newBookmark( const TQString & text, const TQCStrin
TQString _text = KStringHandler::csqueeze(text);
_text.replace( '&', "&&" );
KAction * action = new KBookmarkAction(_text, "html", 0, 0, "", m_actionCollection, 0);
- connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, Qt::ButtonState )),
- m_menu, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, Qt::ButtonState ) ));
+ connect(action, TQT_SIGNAL( activated ( KAction::ActivationReason, TQt::ButtonState )),
+ m_menu, TQT_SLOT( slotBookmarkSelected( KAction::ActivationReason, TQt::ButtonState ) ));
action->setProperty( "url", url );
action->setToolTip( url );
action->plug( mstack.top()->m_parentMenu );
@@ -1076,8 +1076,8 @@ void KBookmarkMenuNSImporter::newFolder( const TQString & text, bool, const TQSt
KBookmarkMenu *subMenu = new KBookmarkMenu( m_pManager, m_menu->m_pOwner, actionMenu->popupMenu(),
m_actionCollection, false,
m_menu->m_bAddBookmark, TQString::null );
- connect( subMenu, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) ),
- m_menu, TQT_SIGNAL( openBookmark( const TQString &, Qt::ButtonState ) ));
+ connect( subMenu, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ),
+ m_menu, TQT_SIGNAL( openBookmark( const TQString &, TQt::ButtonState ) ));
mstack.top()->m_lstSubMenus.append( subMenu );
mstack.push(subMenu);
diff --git a/kio/kfile/kdiroperator.cpp b/kio/kfile/kdiroperator.cpp
index af3e25eec..6c38e5ef7 100644
--- a/kio/kfile/kdiroperator.cpp
+++ b/kio/kfile/kdiroperator.cpp
@@ -1269,8 +1269,8 @@ void KDirOperator::setupActions()
mkdirAction = new KAction( i18n("New Folder..."), 0,
TQT_TQOBJECT(this), TQT_SLOT( mkdir() ), myActionCollection, "mkdir" );
KAction* trash = new KAction( i18n( "Move to Trash" ), "edittrash", Key_Delete, myActionCollection, "trash" );
- connect( trash, TQT_SIGNAL( activated( KAction::ActivationReason, Qt::ButtonState ) ),
- this, TQT_SLOT( trashSelected( KAction::ActivationReason, Qt::ButtonState ) ) );
+ connect( trash, TQT_SIGNAL( activated( KAction::ActivationReason, TQt::ButtonState ) ),
+ this, TQT_SLOT( trashSelected( KAction::ActivationReason, TQt::ButtonState ) ) );
new KAction( i18n( "Delete" ), "editdelete", SHIFT+Key_Delete, TQT_TQOBJECT(this),
TQT_SLOT( deleteSelected() ), myActionCollection, "delete" );
mkdirAction->setIcon( TQString::tqfromLatin1("folder_new") );
diff --git a/kio/kfile/kencodingfiledialog.cpp b/kio/kfile/kencodingfiledialog.cpp
index be5ca033b..bded7fb79 100644
--- a/kio/kfile/kencodingfiledialog.cpp
+++ b/kio/kfile/kencodingfiledialog.cpp
@@ -170,7 +170,7 @@ KEncodingFileDialog::Result KEncodingFileDialog::getSaveFileNameAndEncoding(cons
TQWidget *parent,
const TQString& caption)
{
- bool specialDir = dir.at(0) == ':';
+ bool specialDir = dir.tqat(0) == ':';
KEncodingFileDialog dlg(specialDir?dir:TQString::null, encoding,filter,caption.isNull() ? i18n("Save As") : caption,
Saving,parent, "filedialog", true);
@@ -193,7 +193,7 @@ KEncodingFileDialog::Result KEncodingFileDialog::getSaveURLAndEncoding(const TQ
const TQString& dir, const TQString& filter,
TQWidget *parent, const TQString& caption)
{
- bool specialDir = dir.at(0) == ':';
+ bool specialDir = dir.tqat(0) == ':';
KEncodingFileDialog dlg(specialDir?dir:TQString::null, encoding,filter,caption.isNull() ? i18n("Save As") :
caption, Saving,parent, "filedialog", true);
diff --git a/kio/kfile/kfiledialog.cpp b/kio/kfile/kfiledialog.cpp
index 586b34d62..227bcffea 100644
--- a/kio/kfile/kfiledialog.cpp
+++ b/kio/kfile/kfiledialog.cpp
@@ -1595,7 +1595,7 @@ TQString KFileDialog::getSaveFileName(const TQString& dir, const TQString& filte
TQWidget *parent,
const TQString& caption)
{
- bool specialDir = dir.at(0) == ':';
+ bool specialDir = dir.tqat(0) == ':';
KFileDialog dlg( specialDir ? dir : TQString::null, filter, parent, "filedialog", true);
if ( !specialDir )
dlg.setSelection( dir ); // may also be a filename
@@ -1616,7 +1616,7 @@ TQString KFileDialog::getSaveFileNameWId(const TQString& dir, const TQString& fi
WId parent_id,
const TQString& caption)
{
- bool specialDir = dir.at(0) == ':';
+ bool specialDir = dir.tqat(0) == ':';
TQWidget* parent = TQT_TQWIDGET(TQWidget::find( parent_id ));
KFileDialog dlg( specialDir ? dir : TQString::null, filter, parent, "filedialog", true);
#ifdef Q_WS_X11
@@ -1644,7 +1644,7 @@ TQString KFileDialog::getSaveFileNameWId(const TQString& dir, const TQString& fi
KURL KFileDialog::getSaveURL(const TQString& dir, const TQString& filter,
TQWidget *parent, const TQString& caption)
{
- bool specialDir = dir.at(0) == ':';
+ bool specialDir = dir.tqat(0) == ':';
KFileDialog dlg(specialDir ? dir : TQString::null, filter, parent, "filedialog", true);
if ( !specialDir )
dlg.setSelection( dir ); // may also be a filename
@@ -1950,7 +1950,7 @@ void KFileDialog::updateAutoSelectExtension (void)
// first try X-KDE-NativeExtension
TQString nativeExtension = mime->property ("X-KDE-NativeExtension").toString ();
- if (nativeExtension.at (0) == '.')
+ if (nativeExtension.tqat (0) == '.')
{
d->extension = nativeExtension.lower ();
kdDebug (kfile_area) << "\tsetMimeFilter-style: native ext=\'"
@@ -2361,7 +2361,7 @@ void KFileDialog::setNonExtSelection()
TQString pattern, filename = locationEdit->currentText().stripWhiteSpace();
KServiceTypeFactory::self()->findFromPattern( filename, &pattern );
- if ( !pattern.isEmpty() && pattern.at( 0 ) == '*' && pattern.tqfind( '*' , 1 ) == -1 )
+ if ( !pattern.isEmpty() && pattern.tqat( 0 ) == '*' && pattern.tqfind( '*' , 1 ) == -1 )
locationEdit->lineEdit()->setSelection( 0, filename.length() - pattern.stripWhiteSpace().length()+1 );
else
{
diff --git a/kio/kfile/kfilefiltercombo.cpp b/kio/kfile/kfilefiltercombo.cpp
index 771cc76b0..117097c98 100644
--- a/kio/kfile/kfilefiltercombo.cpp
+++ b/kio/kfile/kfilefiltercombo.cpp
@@ -95,7 +95,7 @@ TQString KFileFilterCombo::currentFilter() const
{
TQString f = currentText();
if (f == text(currentItem())) { // user didn't edit the text
- f = *filters.at(currentItem());
+ f = *filters.tqat(currentItem());
if ( d->isMimeFilter || (currentItem() == 0 && d->hasAllSupportedFiles) ) {
return f; // we have a mimetype as filter
}
diff --git a/kio/kfile/kfileiconview.cpp b/kio/kfile/kfileiconview.cpp
index 38bdec9b3..c5c2ac697 100644
--- a/kio/kfile/kfileiconview.cpp
+++ b/kio/kfile/kfileiconview.cpp
@@ -340,10 +340,10 @@ void KFileIconView::insertItem( KFileItem *i )
TQIconView* qview = static_cast<TQIconView*>( this );
// Since creating and initializing an item leads to a tqrepaint,
// we disable updates on the IconView for a while.
- qview->setUpdatesEnabled( false );
+ qview->tqsetUpdatesEnabled( false );
KFileIconViewItem *item = new KFileIconViewItem( qview, i );
initItem( item, i, true );
- qview->setUpdatesEnabled( true );
+ qview->tqsetUpdatesEnabled( true );
if ( !i->isMimeTypeKnown() )
m_resolver->m_lstPendingMimeIconItems.append( item );
@@ -632,7 +632,7 @@ bool KFileIconView::canPreview( const KFileItem *item ) const
for ( ; it != d->previewMimeTypes.end(); ++it ) {
TQString type = *it;
// the "mimetype" can be "image/*"
- if ( type.at( type.length() - 1 ) == '*' ) {
+ if ( type.tqat( type.length() - 1 ) == '*' ) {
r.setPattern( type );
if ( r.search( item->mimetype() ) != -1 )
return true;
diff --git a/kio/kfile/kicondialog.cpp b/kio/kfile/kicondialog.cpp
index 2b1b68d68..fe2fff202 100644
--- a/kio/kfile/kicondialog.cpp
+++ b/kio/kfile/kicondialog.cpp
@@ -122,7 +122,7 @@ void KIconCanvas::slotLoadFiles()
TQApplication::setOverrideCursor(tqwaitCursor);
// disable updates to not trigger paint events when adding child items
- setUpdatesEnabled( false );
+ tqsetUpdatesEnabled( false );
#ifdef HAVE_LIBART
KSVGIconEngine *svgEngine = new KSVGIconEngine();
@@ -191,7 +191,7 @@ void KIconCanvas::slotLoadFiles()
#endif
// enable updates since we have to draw the whole view now
- setUpdatesEnabled( true );
+ tqsetUpdatesEnabled( true );
TQApplication::restoreOverrideCursor();
d->m_bLoading = false;
@@ -268,11 +268,11 @@ void KIconDialog::init()
top->setSpacing( spacingHint() );
TQButtonGroup *bgroup = new TQButtonGroup(0, Qt::Vertical, i18n("Icon Source"), main);
- bgroup->layout()->setSpacing(KDialog::spacingHint());
- bgroup->layout()->setMargin(KDialog::marginHint());
+ bgroup->tqlayout()->setSpacing(KDialog::spacingHint());
+ bgroup->tqlayout()->setMargin(KDialog::marginHint());
top->addWidget(bgroup);
connect(bgroup, TQT_SIGNAL(clicked(int)), TQT_SLOT(slotButtonClicked(int)));
- TQGridLayout *grid = new TQGridLayout(bgroup->layout(), 3, 2);
+ TQGridLayout *grid = new TQGridLayout(bgroup->tqlayout(), 3, 2);
mpRb1 = new TQRadioButton(i18n("S&ystem icons:"), bgroup);
grid->addWidget(mpRb1, 1, 0);
mpCombo = new TQComboBox(bgroup);
diff --git a/kio/kfile/knotifydialog.cpp b/kio/kfile/knotifydialog.cpp
index 47461dbce..a04f89773 100644
--- a/kio/kfile/knotifydialog.cpp
+++ b/kio/kfile/knotifydialog.cpp
@@ -374,7 +374,7 @@ Application * KNotifyWidget::addApplicationEvents( const TQString& path )
kdDebug() << "**** knotify: adding path: " << path << endl;
TQString relativePath = path;
- if ( path.at(0) == '/' && KStandardDirs::exists( path ) )
+ if ( path.tqat(0) == '/' && KStandardDirs::exists( path ) )
relativePath = makeRelative( path );
if ( !relativePath.isEmpty() )
diff --git a/kio/kfile/kpropertiesdialog.cpp b/kio/kfile/kpropertiesdialog.cpp
index a7be5de64..dde96f017 100644
--- a/kio/kfile/kpropertiesdialog.cpp
+++ b/kio/kfile/kpropertiesdialog.cpp
@@ -576,7 +576,7 @@ void KPropertiesDialog::rename( const TQString& _name )
else
{
TQString tmpurl = m_singleUrl.url();
- if ( tmpurl.at(tmpurl.length() - 1) == '/')
+ if ( tmpurl.tqat(tmpurl.length() - 1) == '/')
// It's a directory, so strip the trailing slash first
tmpurl.truncate( tmpurl.length() - 1);
newUrl = tmpurl;
@@ -908,7 +908,7 @@ KFilePropsPlugin::KFilePropsPlugin( KPropertiesDialog *_props )
// Enhanced rename: Don't highlight the file extension.
TQString pattern;
KServiceTypeFactory::self()->findFromPattern( filename, &pattern );
- if (!pattern.isEmpty() && pattern.at(0)=='*' && pattern.tqfind('*',1)==-1)
+ if (!pattern.isEmpty() && pattern.tqat(0)=='*' && pattern.tqfind('*',1)==-1)
d->m_lined->setSelection(0, filename.length()-pattern.stripWhiteSpace().length()+1);
else
{
@@ -1654,11 +1654,11 @@ KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin( KPropertiesDialog *_pr
/* Group: Access Permissions */
gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Access Permissions"), d->m_frame );
- gb->layout()->setSpacing(KDialog::spacingHint());
- gb->layout()->setMargin(KDialog::marginHint());
+ gb->tqlayout()->setSpacing(KDialog::spacingHint());
+ gb->tqlayout()->setMargin(KDialog::marginHint());
box->addWidget (gb);
- gl = new TQGridLayout (gb->layout(), 7, 2);
+ gl = new TQGridLayout (gb->tqlayout(), 7, 2);
gl->setColStretch(1, 1);
l = d->explanationLabel = new TQLabel( "", gb );
@@ -1723,11 +1723,11 @@ KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin( KPropertiesDialog *_pr
/**** Group: Ownership ****/
gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Ownership"), d->m_frame );
- gb->layout()->setSpacing(KDialog::spacingHint());
- gb->layout()->setMargin(KDialog::marginHint());
+ gb->tqlayout()->setSpacing(KDialog::spacingHint());
+ gb->tqlayout()->setMargin(KDialog::marginHint());
box->addWidget (gb);
- gl = new TQGridLayout (gb->layout(), 4, 3);
+ gl = new TQGridLayout (gb->tqlayout(), 4, 3);
gl->addRowSpacing(0, 10);
/*** Set Owner ***/
@@ -1915,10 +1915,10 @@ void KFilePermissionsPropsPlugin::slotShowAdvancedPermissions() {
// Group: Access Permissions
gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Access Permissions"), mainVBox );
- gb->layout()->setSpacing(KDialog::spacingHint());
- gb->layout()->setMargin(KDialog::marginHint());
+ gb->tqlayout()->setSpacing(KDialog::spacingHint());
+ gb->tqlayout()->setMargin(KDialog::marginHint());
- gl = new TQGridLayout (gb->layout(), 6, 6);
+ gl = new TQGridLayout (gb->tqlayout(), 6, 6);
gl->addRowSpacing(0, 10);
TQValueVector<TQWidget*> theNotSpecials;
@@ -3635,7 +3635,7 @@ KExecPropsPlugin::KExecPropsPlugin( KPropertiesDialog *_props )
mainlayout->addWidget(tmpQGroupBox);
- TQGridLayout *grid = new TQGridLayout(tmpQGroupBox->layout(), 2, 2);
+ TQGridLayout *grid = new TQGridLayout(tmpQGroupBox->tqlayout(), 2, 2);
grid->setSpacing( KDialog::spacingHint() );
grid->setColStretch(1, 1);
@@ -3662,7 +3662,7 @@ KExecPropsPlugin::KExecPropsPlugin( KPropertiesDialog *_props )
mainlayout->addWidget(tmpQGroupBox);
- grid = new TQGridLayout(tmpQGroupBox->layout(), 3, 2);
+ grid = new TQGridLayout(tmpQGroupBox->tqlayout(), 3, 2);
grid->setSpacing( KDialog::spacingHint() );
grid->setColStretch(1, 1);
@@ -3701,7 +3701,7 @@ KExecPropsPlugin::KExecPropsPlugin( KPropertiesDialog *_props )
mainlayout->addWidget(tmpQGroupBox);
- grid = new TQGridLayout(tmpQGroupBox->layout(), 2, 2);
+ grid = new TQGridLayout(tmpQGroupBox->tqlayout(), 2, 2);
grid->setSpacing(KDialog::spacingHint());
grid->setColStretch(1, 1);
diff --git a/kio/kfile/kurlbar.cpp b/kio/kfile/kurlbar.cpp
index 692fbd8de..5cb7afe58 100644
--- a/kio/kfile/kurlbar.cpp
+++ b/kio/kfile/kurlbar.cpp
@@ -1010,7 +1010,7 @@ KURL KURLBarItemDialog::url() const
{
TQString text = m_urlEdit->url();
KURL u;
- if ( text.at(0) == '/' )
+ if ( text.tqat(0) == '/' )
u.setPath( text );
else
u = text;
diff --git a/kio/kfile/kurlcombobox.cpp b/kio/kfile/kurlcombobox.cpp
index f7bf58bc0..0449795f5 100644
--- a/kio/kfile/kurlcombobox.cpp
+++ b/kio/kfile/kurlcombobox.cpp
@@ -87,7 +87,7 @@ TQStringList KURLComboBox::urls() const
for ( int i = defaultList.count(); i < count(); i++ ) {
url = text( i );
if ( !url.isEmpty() ) {
- //if ( url.at(0) == '/' )
+ //if ( url.tqat(0) == '/' )
// list.append( url.prepend( fileProt ) );
//else
list.append( url );
@@ -129,7 +129,7 @@ void KURLComboBox::setDefaults()
KURLComboItem *item;
for ( unsigned int id = 0; id < defaultList.count(); id++ ) {
- item = defaultList.at( id );
+ item = defaultList.tqat( id );
insertURLItem( item );
}
}
diff --git a/kio/kio/job.cpp b/kio/kio/job.cpp
index 2b82d2411..510d3538c 100644
--- a/kio/kio/job.cpp
+++ b/kio/kio/job.cpp
@@ -4533,7 +4533,7 @@ void MultiGetJob::slotFinished()
// return slave to pool
// fetch new slave for first entry in m_waitQueue and call start
// again.
- GetRequest *entry = m_waitQueue.at(0);
+ GetRequest *entry = m_waitQueue.tqat(0);
m_url = entry->url;
slaveDone();
Scheduler::doJob(this);
diff --git a/kio/kio/kar.cpp b/kio/kio/kar.cpp
index 92f923343..a68df7a85 100644
--- a/kio/kio/kar.cpp
+++ b/kio/kio/kar.cpp
@@ -98,7 +98,7 @@ bool KAr::openArchive( int mode )
TQCString name;
int date, uid, gid, mode, size;
- dev->at( dev->at() + (2 - (dev->at() % 2)) % 2 ); // Ar headers are padded to byte boundary
+ dev->tqat( dev->tqat() + (2 - (dev->tqat() % 2)) % 2 ); // Ar headers are padded to byte boundary
if ( dev->readBlock (ar_header.data(), 60) != 60 ) { // Read ar header
kdWarning(7042) << "Couldn't read header" << endl;
@@ -131,7 +131,7 @@ bool KAr::openArchive( int mode )
kdDebug(7042) << "Read in longnames entry" << endl;
} else if (name.mid(1, 1) == " ") { // Symbol table entry
kdDebug(7042) << "Skipped symbol entry" << endl;
- dev->at( dev->at() + size );
+ dev->tqat( dev->tqat() + size );
skip_entry = true;
} else { // Longfilename
kdDebug(7042) << "Longfilename #" << name.mid(1, 15).toInt() << endl;
@@ -150,10 +150,10 @@ bool KAr::openArchive( int mode )
kdDebug(7042) << "Filename: " << name << " Size: " << size << endl;
KArchiveEntry* entry;
- entry = new KArchiveFile(this, name, mode, date, /*uid*/ 0, /*gid*/ 0, 0, dev->at(), size);
+ entry = new KArchiveFile(this, name, mode, date, /*uid*/ 0, /*gid*/ 0, 0, dev->tqat(), size);
rootDir()->addEntry(entry); // Ar files don't support directorys, so everything in root
- dev->at( dev->at() + size ); // Skip contents
+ dev->tqat( dev->tqat() + size ); // Skip contents
}
delete[] ar_longnames;
diff --git a/kio/kio/karchive.cpp b/kio/kio/karchive.cpp
index 9f1ec3c79..6eca7f2db 100644
--- a/kio/kio/karchive.cpp
+++ b/kio/kio/karchive.cpp
@@ -491,7 +491,7 @@ int KArchiveFile::size() const
TQByteArray KArchiveFile::data() const
{
- archive()->device()->at( m_pos );
+ archive()->device()->tqat( m_pos );
// Read content
TQByteArray arr( m_size );
diff --git a/kio/kio/klimitediodevice.h b/kio/kio/klimitediodevice.h
index f148d5215..666021fa1 100644
--- a/kio/kio/klimitediodevice.h
+++ b/kio/kio/klimitediodevice.h
@@ -56,7 +56,7 @@ public:
else
ok = m_dev->open( m );
if ( ok )*/
- m_dev->at( m_start ); // No concurrent access !
+ m_dev->tqat( m_start ); // No concurrent access !
}
else
kdWarning(7005) << "KLimitedIODevice::open only supports IO_ReadOnly!" << endl;
@@ -89,13 +89,13 @@ public:
return c[0];
}
virtual int ungetch( int c ) { return m_dev->ungetch(c); } // ## apply lower limit ?
- virtual Offset at() const { return m_dev->at() - m_start; }
+ virtual Offset at() const { return m_dev->tqat() - m_start; }
virtual bool at( Offset pos ) {
Q_ASSERT( pos <= m_length );
pos = QMIN( pos, m_length ); // Apply upper limit
- return m_dev->at( m_start + pos );
+ return m_dev->tqat( m_start + pos );
}
- virtual bool atEnd() const { return m_dev->atEnd() || m_dev->at() >= m_start + m_length; }
+ virtual bool atEnd() const { return m_dev->atEnd() || m_dev->tqat() >= m_start + m_length; }
private:
TQIODevice* m_dev;
TQ_ULONG m_start;
diff --git a/kio/kio/kservicefactory.cpp b/kio/kio/kservicefactory.cpp
index d2d4a9623..47c3fc06b 100644
--- a/kio/kio/kservicefactory.cpp
+++ b/kio/kio/kservicefactory.cpp
@@ -52,14 +52,14 @@ KServiceFactory::KServiceFactory()
(*m_str) >> i;
m_menuIdDictOffset = i;
- int saveOffset = m_str->tqdevice()->at();
+ int saveOffset = m_str->tqdevice()->tqat();
// Init index tables
m_nameDict = new KSycocaDict(m_str, m_nameDictOffset);
// Init index tables
m_relNameDict = new KSycocaDict(m_str, m_relNameDictOffset);
// Init index tables
m_menuIdDict = new KSycocaDict(m_str, m_menuIdDictOffset);
- saveOffset = m_str->tqdevice()->at(saveOffset);
+ saveOffset = m_str->tqdevice()->tqat(saveOffset);
}
else
{
@@ -225,7 +225,7 @@ KService::List KServiceFactory::allInitServices()
// Assume we're NOT building a database
- m_str->tqdevice()->at(m_initListOffset);
+ m_str->tqdevice()->tqat(m_initListOffset);
TQ_INT32 entryCount;
(*m_str) >> entryCount;
@@ -253,7 +253,7 @@ KService::List KServiceFactory::offers( int serviceTypeOffset )
TQDataStream *str = m_str;
// Jump to the offer list
- str->tqdevice()->at( m_offerListOffset );
+ str->tqdevice()->tqat( m_offerListOffset );
TQ_INT32 aServiceTypeOffset;
TQ_INT32 aServiceOffset;
@@ -268,13 +268,13 @@ KService::List KServiceFactory::offers( int serviceTypeOffset )
if ( aServiceTypeOffset == serviceTypeOffset )
{
// Save stream position !
- int savedPos = str->tqdevice()->at();
+ int savedPos = str->tqdevice()->tqat();
// Create Service
KService * serv = createEntry( aServiceOffset );
if (serv)
list.append( KService::Ptr( serv ) );
// Restore position
- str->tqdevice()->at( savedPos );
+ str->tqdevice()->tqat( savedPos );
} else if ( aServiceTypeOffset > (TQ_INT32)serviceTypeOffset )
break; // too far
}
diff --git a/kio/kio/kservicegroupfactory.cpp b/kio/kio/kservicegroupfactory.cpp
index 326c41173..b693035a6 100644
--- a/kio/kio/kservicegroupfactory.cpp
+++ b/kio/kio/kservicegroupfactory.cpp
@@ -40,10 +40,10 @@ KServiceGroupFactory::KServiceGroupFactory()
(*m_str) >> i;
m_baseGroupDictOffset = i;
- int saveOffset = m_str->tqdevice()->at();
+ int saveOffset = m_str->tqdevice()->tqat();
// Init index tables
m_baseGroupDict = new KSycocaDict(m_str, m_baseGroupDictOffset);
- m_str->tqdevice()->at(saveOffset);
+ m_str->tqdevice()->tqat(saveOffset);
}
else
{
diff --git a/kio/kio/kservicetypefactory.cpp b/kio/kio/kservicetypefactory.cpp
index 99a0ee349..cb0f66fa1 100644
--- a/kio/kio/kservicetypefactory.cpp
+++ b/kio/kio/kservicetypefactory.cpp
@@ -118,14 +118,14 @@ KMimeType * KServiceTypeFactory::findFromPattern(const TQString &_filename, TQSt
// Get stream to the header
TQDataStream *str = m_str;
- str->tqdevice()->at( m_fastPatternOffset );
+ str->tqdevice()->tqat( m_fastPatternOffset );
TQ_INT32 nrOfEntries;
(*str) >> nrOfEntries;
TQ_INT32 entrySize;
(*str) >> entrySize;
- TQ_INT32 fastOffset = str->tqdevice()->at( );
+ TQ_INT32 fastOffset = str->tqdevice()->tqat( );
TQ_INT32 matchingOffset = 0;
@@ -145,7 +145,7 @@ KMimeType * KServiceTypeFactory::findFromPattern(const TQString &_filename, TQSt
while (left <= right) {
middle = (left + right) / 2;
// read pattern at position "middle"
- str->tqdevice()->at( middle * entrySize + fastOffset );
+ str->tqdevice()->tqat( middle * entrySize + fastOffset );
KSycocaEntry::read(*str, pattern);
int cmp = pattern.compare( extension );
if (cmp < 0)
@@ -166,7 +166,7 @@ KMimeType * KServiceTypeFactory::findFromPattern(const TQString &_filename, TQSt
// Now try the "other" Pattern table
if ( m_patterns.isEmpty() ) {
- str->tqdevice()->at( m_otherPatternOffset );
+ str->tqdevice()->tqat( m_otherPatternOffset );
TQString pattern;
TQ_INT32 mimetypeOffset;
diff --git a/kio/kio/kshred.cpp b/kio/kio/kshred.cpp
index f3997bf58..151cc69a6 100644
--- a/kio/kio/kshred.cpp
+++ b/kio/kio/kshred.cpp
@@ -95,7 +95,7 @@ KShred::fillbyte(unsigned int byte)
}
if (!flush())
return false;
- return file->at(0);
+ return file->tqat(0);
}
@@ -114,7 +114,7 @@ KShred::fillpattern(unsigned char *data, unsigned int size)
}
if (!flush())
return false;
- return file->at(0);
+ return file->tqat(0);
}
@@ -140,7 +140,7 @@ KShred::fillrandom()
}
if (!flush())
return false;
- return file->at(0);
+ return file->tqat(0);
}
diff --git a/kio/kio/ktar.cpp b/kio/kio/ktar.cpp
index 6c8227d3e..7d646d8f3 100644
--- a/kio/kio/ktar.cpp
+++ b/kio/kio/ktar.cpp
@@ -461,14 +461,14 @@ bool KTar::openArchive( int mode )
//kdDebug(7041) << "KTar::openArchive file " << nm << " size=" << size << endl;
e = new KArchiveFile( this, nm, access, time, user, group, symlink,
- dev->at(), size );
+ dev->tqat(), size );
}
// Skip contents + align bytes
int rest = size % 0x200;
int skip = size + (rest ? 0x200 - rest : 0);
- //kdDebug(7041) << "KTar::openArchive, at()=" << dev->at() << " rest=" << rest << " skipping " << skip << endl;
- if (! dev->at( dev->at() + skip ) )
+ //kdDebug(7041) << "KTar::openArchive, at()=" << dev->tqat() << " rest=" << rest << " skipping " << skip << endl;
+ if (! dev->tqat( dev->tqat() + skip ) )
kdWarning(7041) << "KTar::openArchive skipping " << skip << " failed" << endl;
}
@@ -495,7 +495,7 @@ bool KTar::openArchive( int mode )
else
{
//qDebug("Terminating. Read %d bytes, first one is %d", n, buffer[0]);
- d->tarEnd = dev->at() - n; // Remember end of archive
+ d->tarEnd = dev->tqat() - n; // Remember end of archive
ende = true;
}
} while( !ende );
@@ -591,7 +591,7 @@ bool KTar::writeDir( const TQString& name, const TQString& user, const TQString&
char buffer[ 0x201 ];
memset( buffer, 0, 0x200 );
- if ( mode() & IO_ReadWrite ) device()->at(d->tarEnd); // Go to end of archive as might have moved with a read
+ if ( mode() & IO_ReadWrite ) device()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read
// If more than 100 chars, we need to use the LongLink trick
if ( dirName.length() > 99 )
@@ -616,7 +616,7 @@ bool KTar::writeDir( const TQString& name, const TQString& user, const TQString&
// Write header
device()->writeBlock( buffer, 0x200 );
- if ( mode() & IO_ReadWrite ) d->tarEnd = device()->at();
+ if ( mode() & IO_ReadWrite ) d->tarEnd = device()->tqat();
d->dirList.append( dirName ); // contains trailing slash
return true; // TODO if wanted, better error control
@@ -636,7 +636,7 @@ bool KTar::doneWriting( uint size )
// Write tqalignment
int rest = size % 0x200;
if ( mode() & IO_ReadWrite )
- d->tarEnd = device()->at() + (rest ? 0x200 - rest : 0); // Record our new end of archive
+ d->tarEnd = device()->tqat() + (rest ? 0x200 - rest : 0); // Record our new end of archive
if ( rest )
{
char buffer[ 0x201 ];
@@ -799,7 +799,7 @@ bool KTar::prepareWriting_impl(const TQString &name, const TQString &user,
char buffer[ 0x201 ];
memset( buffer, 0, 0x200 );
- if ( mode() & IO_ReadWrite ) device()->at(d->tarEnd); // Go to end of archive as might have moved with a read
+ if ( mode() & IO_ReadWrite ) device()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read
// provide converted stuff we need lateron
TQCString encodedFilename = TQFile::encodeName(fileName);
@@ -858,7 +858,7 @@ bool KTar::writeDir_impl(const TQString &name, const TQString &user,
char buffer[ 0x201 ];
memset( buffer, 0, 0x200 );
- if ( mode() & IO_ReadWrite ) device()->at(d->tarEnd); // Go to end of archive as might have moved with a read
+ if ( mode() & IO_ReadWrite ) device()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read
// provide converted stuff we need lateron
TQCString encodedDirname = TQFile::encodeName(dirName);
@@ -882,7 +882,7 @@ bool KTar::writeDir_impl(const TQString &name, const TQString &user,
// Write header
device()->writeBlock( buffer, 0x200 );
- if ( mode() & IO_ReadWrite ) d->tarEnd = device()->at();
+ if ( mode() & IO_ReadWrite ) d->tarEnd = device()->tqat();
d->dirList.append( dirName ); // contains trailing slash
return true; // TODO if wanted, better error control
@@ -916,7 +916,7 @@ bool KTar::writeSymLink_impl(const TQString &name, const TQString &target,
char buffer[ 0x201 ];
memset( buffer, 0, 0x200 );
- if ( mode() & IO_ReadWrite ) device()->at(d->tarEnd); // Go to end of archive as might have moved with a read
+ if ( mode() & IO_ReadWrite ) device()->tqat(d->tarEnd); // Go to end of archive as might have moved with a read
// provide converted stuff we need lateron
TQCString encodedFilename = TQFile::encodeName(fileName);
@@ -946,7 +946,7 @@ bool KTar::writeSymLink_impl(const TQString &name, const TQString &target,
// Write header
bool retval = device()->writeBlock( buffer, 0x200 ) == 0x200;
- if ( mode() & IO_ReadWrite ) d->tarEnd = device()->at();
+ if ( mode() & IO_ReadWrite ) d->tarEnd = device()->tqat();
return retval;
}
diff --git a/kio/kio/kurlcompletion.cpp b/kio/kio/kurlcompletion.cpp
index 339f6c351..85429a6db 100644
--- a/kio/kio/kurlcompletion.cpp
+++ b/kio/kio/kurlcompletion.cpp
@@ -738,7 +738,7 @@ bool KURLCompletion::userCompletion(const MyURL &url, TQString *match)
{
if ( url.protocol() != "file"
|| !url.dir().isEmpty()
- || url.file().at(0) != '~' )
+ || url.file().tqat(0) != '~' )
return false;
if ( !isListedURL( CTUser ) ) {
@@ -770,7 +770,7 @@ extern char **environ; // Array of environment variables
bool KURLCompletion::envCompletion(const MyURL &url, TQString *match)
{
- if ( url.file().at(0) != '$' )
+ if ( url.file().tqat(0) != '$' )
return false;
if ( !isListedURL( CTEnv ) ) {
@@ -849,7 +849,7 @@ bool KURLCompletion::exeCompletion(const MyURL &url, TQString *match)
}
// No hidden files unless the user types "."
- bool no_hidden_files = url.file().at(0) != '.';
+ bool no_hidden_files = url.file().tqat(0) != '.';
// List files if needed
//
@@ -923,7 +923,7 @@ bool KURLCompletion::fileCompletion(const MyURL &url, TQString *match)
}
// No hidden files unless the user types "."
- bool no_hidden_files = ( url.file().at(0) != '.' );
+ bool no_hidden_files = ( url.file().tqat(0) != '.' );
// List files if needed
//
@@ -1293,7 +1293,7 @@ void KURLCompletion::postProcessMatch( TQString *match ) const
void KURLCompletion::adjustMatch( TQString& match ) const
{
- if ( match.at( match.length()-1 ) != '/' )
+ if ( match.tqat( match.length()-1 ) != '/' )
{
TQString copy;
diff --git a/kio/kio/kurlpixmapprovider.cpp b/kio/kio/kurlpixmapprovider.cpp
index caeedf066..c55546c55 100644
--- a/kio/kio/kurlpixmapprovider.cpp
+++ b/kio/kio/kurlpixmapprovider.cpp
@@ -22,7 +22,7 @@
TQPixmap KURLPixmapProvider::pixmapFor( const TQString& url, int size ) {
KURL u;
- if ( url.at(0) == '/' )
+ if ( url.tqat(0) == '/' )
u.setPath( url );
else
u = url;
diff --git a/kio/kio/kzip.cpp b/kio/kio/kzip.cpp
index 88d00c4e3..01d2dc4c9 100644
--- a/kio/kio/kzip.cpp
+++ b/kio/kio/kzip.cpp
@@ -427,7 +427,7 @@ bool KZip::openArchive( int mode )
for (;;) // repeat until 'end of entries' signature is reached
{
kdDebug(7040) << "loop starts" << endl;
-kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
+kdDebug(7040) << "dev->tqat() now : " << dev->tqat() << endl;
n = dev->readBlock( buffer, 4 );
if (n < 4)
@@ -449,7 +449,7 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
kdDebug(7040) << "PK34 found local file header" << endl;
startOfFile = false;
// can this fail ???
- dev->at( dev->at() + 2 ); // skip 'version needed to extract'
+ dev->tqat( dev->tqat() + 2 ); // skip 'version needed to extract'
// read static header stuff
n = dev->readBlock( buffer, 24 );
@@ -490,7 +490,7 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
// read and parse the beginning of the extra field,
// skip rest of extra field in case it is too long
- unsigned int extraFieldEnd = dev->at() + extralen;
+ unsigned int extraFieldEnd = dev->tqat() + extralen;
pfi->extralen = extralen;
int handledextralen = QMIN(extralen, (int)sizeof buffer);
@@ -505,7 +505,7 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
}
// jump to end of extra field
- dev->at( extraFieldEnd );
+ dev->tqat( extraFieldEnd );
// we have to take care of the 'general purpose bit flag'.
// if bit 3 is set, the header doesn't contain the length of
@@ -544,18 +544,18 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
if ( buffer[0] == 'K' && buffer[1] == 7 && buffer[2] == 8 )
{
foundSignature = true;
- dev->at( dev->at() + 12 ); // skip the 'data_descriptor'
+ dev->tqat( dev->tqat() + 12 ); // skip the 'data_descriptor'
}
else if ( ( buffer[0] == 'K' && buffer[1] == 1 && buffer[2] == 2 )
|| ( buffer[0] == 'K' && buffer[1] == 3 && buffer[2] == 4 ) )
{
foundSignature = true;
- dev->at( dev->at() - 4 ); // go back 4 bytes, so that the magic bytes can be found...
+ dev->tqat( dev->tqat() - 4 ); // go back 4 bytes, so that the magic bytes can be found...
}
else if ( buffer[0] == 'P' || buffer[1] == 'P' || buffer[2] == 'P' )
{
// We have another P character so we must go back a little to check if it is a magic
- dev->at( dev->at() - 3 );
+ dev->tqat( dev->tqat() - 3 );
}
}
@@ -611,14 +611,14 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
if ( buffer[0] == 'K' && buffer[1] == 7 && buffer[2] == 8 )
{
foundSignature = true;
- dev->at( dev->at() + 12 ); // skip the 'data_descriptor'
+ dev->tqat( dev->tqat() + 12 ); // skip the 'data_descriptor'
}
if ( ( buffer[0] == 'K' && buffer[1] == 1 && buffer[2] == 2 )
|| ( buffer[0] == 'K' && buffer[1] == 3 && buffer[2] == 4 ) )
{
foundSignature = true;
- dev->at( dev->at() - 4 );
+ dev->tqat( dev->tqat() - 4 );
// go back 4 bytes, so that the magic bytes can be found
// in the next cycle...
}
@@ -626,10 +626,10 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
}
else
{
-// kdDebug(7040) << "before interesting dev->at(): " << dev->at() << endl;
+// kdDebug(7040) << "before interesting dev->tqat(): " << dev->tqat() << endl;
bool success;
- success = dev->at( dev->at() + compr_size ); // can this fail ???
-/* kdDebug(7040) << "after interesting dev->at(): " << dev->at() << endl;
+ success = dev->tqat( dev->tqat() + compr_size ); // can this fail ???
+/* kdDebug(7040) << "after interesting dev->tqat(): " << dev->tqat() << endl;
if ( success )
kdDebug(7040) << "dev->at was successful... " << endl;
else
@@ -653,7 +653,7 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
// so we reached the central header at the end of the zip file
// here we get all interesting data out of the central header
// of a file
- offset = dev->at() - 4;
+ offset = dev->tqat() - 4;
//set offset for appending new files
if ( d->m_offset == 0L ) d->m_offset = offset;
@@ -792,7 +792,7 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
//calculate offset to next entry
offset += 46 + commlen + extralen + namelen;
- bool b = dev->at(offset);
+ bool b = dev->tqat(offset);
Q_ASSERT( b );
if ( !b )
return false;
@@ -832,12 +832,12 @@ kdDebug(7040) << "dev->at() now : " << dev->at() << endl;
if ( buffer[0] == 'K' && buffer[1] == 3 && buffer[2] == 4 )
{
foundSignature = true;
- dev->at( dev->at() - 4 ); // go back 4 bytes, so that the magic bytes can be found...
+ dev->tqat( dev->tqat() - 4 ); // go back 4 bytes, so that the magic bytes can be found...
}
else if ( buffer[0] == 'P' || buffer[1] == 'P' || buffer[2] == 'P' )
{
// We have another P character so we must go back a little to check if it is a magic
- dev->at( dev->at() - 3 );
+ dev->tqat( dev->tqat() - 3 );
}
}
}
@@ -871,14 +871,14 @@ bool KZip::closeArchive()
char buffer[ 22 ]; // first used for 12, then for 22 at the end
uLong crc = crc32(0L, Z_NULL, 0);
- TQ_LONG centraldiroffset = device()->at();
+ TQ_LONG centraldiroffset = device()->tqat();
//kdDebug(7040) << "closearchive: centraldiroffset: " << centraldiroffset << endl;
TQ_LONG atbackup = centraldiroffset;
TQPtrListIterator<KZipFileEntry> it( d->m_fileList );
for ( ; it.current() ; ++it )
{ //set crc and compressed size in each local file header
- if ( !device()->at( it.current()->headerStart() + 14 ) )
+ if ( !device()->tqat( it.current()->headerStart() + 14 ) )
return false;
//kdDebug(7040) << "closearchive setcrcandcsize: filename: "
// << it.current()->path()
@@ -905,7 +905,7 @@ bool KZip::closeArchive()
if ( device()->writeBlock( buffer, 12 ) != 12 )
return false;
}
- device()->at( atbackup );
+ device()->tqat( atbackup );
for ( it.toFirst(); it.current() ; ++it )
{
@@ -994,9 +994,9 @@ bool KZip::closeArchive()
if ( !ok )
return false;
}
- TQ_LONG centraldirendoffset = device()->at();
+ TQ_LONG centraldirendoffset = device()->tqat();
//kdDebug(7040) << "closearchive: centraldirendoffset: " << centraldirendoffset << endl;
- //kdDebug(7040) << "closearchive: device()->at(): " << device()->at() << endl;
+ //kdDebug(7040) << "closearchive: device()->tqat(): " << device()->tqat() << endl;
//write end of central dir record.
buffer[ 0 ] = 'P'; //end of central dir signature
@@ -1107,7 +1107,7 @@ bool KZip::prepareWriting_impl(const TQString &name, const TQString &user,
}
// set right offset in zip.
- if ( !device()->at( d->m_offset ) ) {
+ if ( !device()->tqat( d->m_offset ) ) {
kdWarning(7040) << "prepareWriting_impl: cannot seek in ZIP file. Disk full?" << endl;
abort();
return false;
@@ -1144,9 +1144,9 @@ bool KZip::prepareWriting_impl(const TQString &name, const TQString &user,
// construct a KZipFileEntry and add it to list
KZipFileEntry * e = new KZipFileEntry( this, fileName, perm, mtime, user, group, TQString::null,
- name, device()->at() + 30 + name.length(), // start
+ name, device()->tqat() + 30 + name.length(), // start
0 /*size unknown yet*/, d->m_compression, 0 /*csize unknown yet*/ );
- e->setHeaderStart( device()->at() );
+ e->setHeaderStart( device()->tqat() );
//kdDebug(7040) << "wrote file start: " << e->position() << " name: " << name << endl;
parentDir->addEntry( e );
@@ -1274,13 +1274,13 @@ bool KZip::doneWriting( uint size )
Q_ASSERT( d->m_currentFile );
//kdDebug(7040) << "donewriting reached." << endl;
//kdDebug(7040) << "filename: " << d->m_currentFile->path() << endl;
- //kdDebug(7040) << "getpos (at): " << device()->at() << endl;
+ //kdDebug(7040) << "getpos (at): " << device()->tqat() << endl;
d->m_currentFile->setSize(size);
int extra_field_len = 0;
if ( d->m_extraField == ModificationTime )
extra_field_len = 17; // value also used in doneWriting()
- int csize = device()->at() -
+ int csize = device()->tqat() -
d->m_currentFile->headerStart() - 30 -
d->m_currentFile->path().length() - extra_field_len;
d->m_currentFile->setCompressedSize(csize);
@@ -1294,7 +1294,7 @@ bool KZip::doneWriting( uint size )
d->m_currentFile = 0L;
// update saved offset for appending new files
- d->m_offset = device()->at();
+ d->m_offset = device()->tqat();
return true;
}
diff --git a/kio/kio/paste.cpp b/kio/kio/paste.cpp
index 37ba406f6..5a74c3e48 100644
--- a/kio/kio/paste.cpp
+++ b/kio/kio/paste.cpp
@@ -132,7 +132,7 @@ static KIO::CopyJob* chooseAndPaste( const KURL& u, TQMimeSource* data,
kdDebug() << " result=" << result << " chosenFormat=" << chosenFormat << endl;
KURL new_url( u );
new_url.addPath( result );
- // if "data" came from QClipboard, then it was deleted already - by a nice 0-seconds timer
+ // if "data" came from TQClipboard, then it was deleted already - by a nice 0-seconds timer
// In that case, get it again. Let's hope the user didn't copy something else meanwhile :/
if ( clipboard ) {
data = TQApplication::tqclipboard()->data();
diff --git a/kio/kio/paste.h b/kio/kio/paste.h
index a65e956e1..3fad2c8b6 100644
--- a/kio/kio/paste.h
+++ b/kio/kio/paste.h
@@ -93,7 +93,7 @@ namespace KIO {
* The filename to use in that directory is prompted by this method.
* @param dialogText the text to show in the dialog
* @param widget parent widget to use for dialogs
- * @param clipboard whether the TQMimeSource comes from QClipboard. If you
+ * @param clipboard whether the TQMimeSource comes from TQClipboard. If you
* use pasteClipboard for that case, you never have to worry about this parameter.
*
* @see pasteClipboard()
diff --git a/kio/kio/pastedialog.cpp b/kio/kio/pastedialog.cpp
index 480eaaba8..f698d2de3 100644
--- a/kio/kio/pastedialog.cpp
+++ b/kio/kio/pastedialog.cpp
@@ -62,7 +62,7 @@ KIO::PasteDialog::PasteDialog( const TQString &caption, const TQString &label,
m_clipboardChanged = false;
if ( clipboard )
- connect( TQApplication::clipboard(), TQT_SIGNAL( dataChanged() ),
+ connect( TQApplication::tqclipboard(), TQT_SIGNAL( dataChanged() ),
this, TQT_SLOT( slotClipboardDataChanged() ) );
}
diff --git a/kio/kio/scheduler.cpp b/kio/kio/scheduler.cpp
index 830ebe93c..52b342dee 100644
--- a/kio/kio/scheduler.cpp
+++ b/kio/kio/scheduler.cpp
@@ -346,7 +346,7 @@ bool Scheduler::startJobScheduled(ProtocolInfo *protInfo)
// Prevent starvation. We skip the first entry in the queue at most
// 2 times in a row. The
protInfo->skipCount = 0;
- job = protInfo->joblist.at(0);
+ job = protInfo->joblist.tqat(0);
slave = findIdleSlave(protInfo, job, dummy );
}
else
@@ -356,7 +356,7 @@ bool Scheduler::startJobScheduled(ProtocolInfo *protInfo)
Slave *firstSlave = 0;
for(uint i = 0; (i < protInfo->joblist.count()) && (i < 10); i++)
{
- job = protInfo->joblist.at(i);
+ job = protInfo->joblist.tqat(i);
slave = findIdleSlave(protInfo, job, exact);
if (!firstSlave)
{
diff --git a/kio/kssl/ksslcertificate.cc b/kio/kssl/ksslcertificate.cc
index d712c185c..7971e57ba 100644
--- a/kio/kssl/ksslcertificate.cc
+++ b/kio/kssl/ksslcertificate.cc
@@ -246,7 +246,7 @@ TQString KSSLCertificate::getMD5DigestFromKDEKey(const TQString &k) {
int pos = k.tqfindRev('(');
if (pos != -1) {
unsigned int len = k.length();
- if (k.at(len-1) == ')') {
+ if (k.tqat(len-1) == ')') {
rc = k.mid(pos+1, len-pos-2);
}
}
diff --git a/kio/kssl/ksslinfodlg.cc b/kio/kssl/ksslinfodlg.cc
index ea7dd1457..fa0655a46 100644
--- a/kio/kssl/ksslinfodlg.cc
+++ b/kio/kssl/ksslinfodlg.cc
@@ -348,7 +348,7 @@ void KSSLInfoDlg::slotChain(int x) {
cl.setAutoDelete(true);
for (int i = 0; i < x-1; i++)
cl.remove((unsigned int)0);
- KSSLCertificate thisCert = *(cl.at(0));
+ KSSLCertificate thisCert = *(cl.tqat(0));
cl.remove((unsigned int)0);
thisCert.chain().setChain(cl);
displayCert(&thisCert);
diff --git a/kio/kssl/ksslsettings.cc b/kio/kssl/ksslsettings.cc
index 40b3493cd..c060c6c7c 100644
--- a/kio/kssl/ksslsettings.cc
+++ b/kio/kssl/ksslsettings.cc
@@ -182,7 +182,7 @@ TQString KSSLSettings::getCipherList() {
// Also remove NULL ciphers and 168bit ciphers
for (unsigned int i = 0; i < cipherList.count(); i++) {
CipherNode *j = 0L;
- while ((j = cipherList.at(i)) != 0L) {
+ while ((j = cipherList.tqat(i)) != 0L) {
if (j->name.contains("ADH-") || j->name.contains("NULL-") || j->name.contains("DES-CBC3-SHA") || j->name.contains("FZA")) {
cipherList.remove(j);
} else {
diff --git a/kio/misc/ksendbugmail/main.cpp b/kio/misc/ksendbugmail/main.cpp
index b80a23d1b..d6c852f68 100644
--- a/kio/misc/ksendbugmail/main.cpp
+++ b/kio/misc/ksendbugmail/main.cpp
@@ -74,7 +74,7 @@ int main(int argc, char **argv) {
if (recipient.isEmpty())
recipient = "submit@bugs.kde.org";
else {
- if (recipient.at(0) == '\'') {
+ if (recipient.tqat(0) == '\'') {
recipient = recipient.mid(1).left(recipient.length() - 2);
}
}
@@ -84,7 +84,7 @@ int main(int argc, char **argv) {
if (subject.isEmpty())
subject = "(no subject)";
else {
- if (subject.at(0) == '\'')
+ if (subject.tqat(0) == '\'')
subject = subject.mid(1).left(subject.length() - 2);
}
TQTextIStream input(stdin);
diff --git a/kio/misc/kssld/kssld.cpp b/kio/misc/kssld/kssld.cpp
index 1a7cc1edf..79b5998d1 100644
--- a/kio/misc/kssld/kssld.cpp
+++ b/kio/misc/kssld/kssld.cpp
@@ -867,7 +867,7 @@ void KSSLD::searchAddCert(KSSLCertificate *cert) {
if (elem.tqfindRef(cert) == -1) {
unsigned int n = 0;
for(; n < elem.size(); n++) {
- if (!elem.at(n)) {
+ if (!elem.tqat(n)) {
elem.insert(n, cert);
break;
}
@@ -912,7 +912,7 @@ TQStringList KSSLD::getKDEKeyByEmail(const TQString &email) {
TQPtrVector<KSSLCertificate> &elem = *it;
for (unsigned int n = 0; n < elem.size(); n++) {
- KSSLCertificate *cert = elem.at(n);
+ KSSLCertificate *cert = elem.tqat(n);
if (cert) {
rc.append(cert->getKDEKey());
}
diff --git a/kio/misc/uiserver.cpp b/kio/misc/uiserver.cpp
index 0524d60b3..44fb8af19 100644
--- a/kio/misc/uiserver.cpp
+++ b/kio/misc/uiserver.cpp
@@ -418,7 +418,7 @@ void ProgressItem::slotToggleDefaultProgress() {
// Called when a rename or skip dialog pops up
// We want to prevent someone from killing the job in the uiserver then
-void ProgressItem::setVisible( bool visible ) {
+void ProgressItem::tqsetVisible( bool visible ) {
if ( m_visible != visible )
{
m_visible = visible;
@@ -792,7 +792,7 @@ ProgressItem* UIServer::findItem( int id )
void UIServer::setItemVisible( ProgressItem * item, bool visible )
{
- item->setVisible( visible );
+ item->tqsetVisible( visible );
// Check if we were the last one to be visible
// or the first one -> hide/show the list in that case
// (Note that the user could have hidden the listview by hand yet, no time)
diff --git a/kio/misc/uiserver.h b/kio/misc/uiserver.h
index 85e255a43..74c1a681e 100644
--- a/kio/misc/uiserver.h
+++ b/kio/misc/uiserver.h
@@ -118,7 +118,7 @@ public:
bool keepOpen() const;
void finished();
- void setVisible( bool visible );
+ void tqsetVisible( bool visible );
void setDefaultProgressVisible( bool visible );
bool isVisible() const { return m_visible; }
diff --git a/kio/tests/kfiltertest.cpp b/kio/tests/kfiltertest.cpp
index e070418e4..54599e838 100644
--- a/kio/tests/kfiltertest.cpp
+++ b/kio/tests/kfiltertest.cpp
@@ -41,8 +41,8 @@ void test_block( const TQString & fileName )
// TQCString s(array,n+1); // Terminate with 0 before printing
// printf("%s", s.data());
- kdDebug() << "dev.at = " << dev->at() << endl;
- //kdDebug() << "f.at = " << f.at() << endl;
+ kdDebug() << "dev.at = " << dev->tqat() << endl;
+ //kdDebug() << "f.at = " << f.tqat() << endl;
}
dev->close();
delete dev;