Remove additional unneeded tq method conversions

pull/2/head
Timothy Pearson 14 years ago
parent 628043be55
commit f64397c82f

@ -332,12 +332,12 @@ void KateConfigDialog::removePluginPage (Kate::Plugin *plugin)
for (uint i=0; i<pluginPages.count(); i++)
{
if ( pluginPages.tqat(i)->plugin == plugin )
if ( pluginPages.at(i)->plugin == plugin )
{
TQWidget *w = pluginPages.tqat(i)->page->parentWidget();
delete pluginPages.tqat(i)->page;
TQWidget *w = pluginPages.at(i)->page->parentWidget();
delete pluginPages.at(i)->page;
delete w;
pluginPages.remove(pluginPages.tqat(i));
pluginPages.remove(pluginPages.at(i));
i--;
}
}
@ -415,7 +415,7 @@ void KateConfigDialog::slotApply()
//
for (uint i=0; i<editorPages.count(); i++)
{
editorPages.tqat(i)->apply();
editorPages.at(i)->apply();
}
v->getDoc()->writeConfig(config);
@ -425,7 +425,7 @@ void KateConfigDialog::slotApply()
//
for (uint i=0; i<pluginPages.count(); i++)
{
pluginPages.tqat(i)->page->apply();
pluginPages.at(i)->page->apply();
}
config->sync();

@ -69,7 +69,7 @@ KateDocManager::~KateDocManager ()
{
// save config
if (!m_docList.isEmpty())
m_docList.tqat(0)->writeConfig(KateApp::self()->config());
m_docList.at(0)->writeConfig(KateApp::self()->config());
if (m_saveMetaInfos)
{
@ -150,7 +150,7 @@ void KateDocManager::deleteDoc (Kate::Document *doc)
Kate::Document *KateDocManager::document (uint n)
{
return m_docList.tqat(n);
return m_docList.at(n);
}
Kate::Document *KateDocManager::activeDocument ()
@ -234,7 +234,7 @@ bool KateDocManager::isOpen(KURL url)
Kate::Document *KateDocManager::openURL (const KURL& url,const TQString &encoding, uint *id, bool isTempFile)
{
// special handling if still only the first initial doc is there
if (!documentList().isEmpty() && (documentList().count() == 1) && (!documentList().tqat(0)->isModified() && documentList().tqat(0)->url().isEmpty()))
if (!documentList().isEmpty() && (documentList().count() == 1) && (!documentList().at(0)->isModified() && documentList().at(0)->url().isEmpty()))
{
Kate::Document* doc = documentList().getFirst();
@ -354,7 +354,7 @@ bool KateDocManager::closeAllDocuments(bool closeURL)
}
while (!docs.isEmpty() && res)
if (! closeDocument(docs.tqat(0),closeURL) )
if (! closeDocument(docs.at(0),closeURL) )
res = false;
else
docs.remove ((uint)0);
@ -364,7 +364,7 @@ bool KateDocManager::closeAllDocuments(bool closeURL)
KateApp::self()->mainWindow(i)->viewManager()->setViewActivationBlocked(false);
for (uint s=0; s < KateApp::self()->mainWindow(i)->viewManager()->containers()->count(); s++)
KateApp::self()->mainWindow(i)->viewManager()->containers()->tqat(s)->activateView (m_docList.tqat(0)->documentNumber());
KateApp::self()->mainWindow(i)->viewManager()->containers()->at(s)->activateView (m_docList.at(0)->documentNumber());
}
return res;

@ -439,7 +439,7 @@ KateExternalToolServiceEditor::KateExternalToolServiceEditor( KateExternalTool *
leName = new TQLineEdit( w );
lo->addWidget( leName, 1, 2 );
l = new TQLabel( leName, i18n("&Label:"), w );
l->setAlignment( l->tqalignment()|Qt::AlignRight );
l->setAlignment( l->alignment()|Qt::AlignRight );
lo->addWidget( l, 1, 1 );
if ( tool ) leName->setText( tool->name );
TQWhatsThis::add( leName, i18n(
@ -477,7 +477,7 @@ KateExternalToolServiceEditor::KateExternalToolServiceEditor( KateExternalTool *
leExecutable = new TQLineEdit( w );
lo->addMultiCellWidget( leExecutable, 3, 3, 2, 3 );
l = new TQLabel( leExecutable, i18n("&Executable:"), w );
l->setAlignment( l->tqalignment()|Qt::AlignRight );
l->setAlignment( l->alignment()|Qt::AlignRight );
lo->addWidget( l, 3, 1 );
if ( tool ) leExecutable->setText( tool->tryexec );
TQWhatsThis::add( leExecutable, i18n(
@ -488,7 +488,7 @@ KateExternalToolServiceEditor::KateExternalToolServiceEditor( KateExternalTool *
leMimetypes = new TQLineEdit( w );
lo->addWidget( leMimetypes, 4, 2 );
l = new TQLabel( leMimetypes, i18n("&Mime types:"), w );
l->setAlignment( l->tqalignment()|Qt::AlignRight );
l->setAlignment( l->alignment()|Qt::AlignRight );
lo->addWidget( l, 4, 1 );
if ( tool ) leMimetypes->setText( tool->mimetypes.join("; ") );
TQWhatsThis::add( leMimetypes, i18n(
@ -506,7 +506,7 @@ KateExternalToolServiceEditor::KateExternalToolServiceEditor( KateExternalTool *
cmbSave = new TQComboBox(w);
lo->addMultiCellWidget( cmbSave, 5, 5, 2, 3 );
l = new TQLabel( cmbSave, i18n("&Save:"), w );
l->setAlignment( l->tqalignment()|Qt::AlignRight );
l->setAlignment( l->alignment()|Qt::AlignRight );
lo->addWidget( l, 5, 1 );
TQStringList sl;
sl << i18n("None") << i18n("Current Document") << i18n("All Documents");
@ -521,7 +521,7 @@ KateExternalToolServiceEditor::KateExternalToolServiceEditor( KateExternalTool *
leCmdLine = new TQLineEdit( w );
lo->addMultiCellWidget( leCmdLine, 6, 6, 2, 3 );
l = new TQLabel( leCmdLine, i18n("&Command line name:"), w );
l->setAlignment( l->tqalignment()|Qt::AlignRight );
l->setAlignment( l->alignment()|Qt::AlignRight );
lo->addWidget( l, 6, 1 );
if ( tool ) leCmdLine->setText( tool->cmdname );
TQWhatsThis::add( leCmdLine, i18n(

@ -272,8 +272,8 @@ void KateFileList::slotModChanged (Kate::Document *doc)
for ( uint i=0; i < m_editHistory.count(); i++ )
{
m_editHistory.tqat( i )->setEditHistPos( i+1 );
repaintItem( m_editHistory.tqat( i ) );
m_editHistory.at( i )->setEditHistPos( i+1 );
repaintItem( m_editHistory.at( i ) );
}
}
else
@ -334,7 +334,7 @@ void KateFileList::slotViewChanged ()
// int p = 0;
// if ( m_viewHistory.count() )
// {
// int p = m_viewHistory.findRef( item ); // only tqrepaint items that needs it
// int p = m_viewHistory.findRef( item ); // only repaint items that needs it
// }
m_viewHistory.removeRef( item );
@ -342,8 +342,8 @@ void KateFileList::slotViewChanged ()
for ( uint i=0; i < m_viewHistory.count(); i++ )
{
m_viewHistory.tqat( i )->setViewHistPos( i+1 );
repaintItem( m_viewHistory.tqat( i ) );
m_viewHistory.at( i )->setViewHistPos( i+1 );
repaintItem( m_viewHistory.at( i ) );
}
}
@ -616,7 +616,7 @@ void KFLConfigPage::apply()
m_filelist->m_editShade = kcbEditShade->color();
m_filelist->m_enableBgShading = cbEnableShading->isChecked();
m_filelist->setSortType( cmbSort->currentItem() );
// tqrepaint the affected items
// repaint the affected items
m_filelist->triggerUpdate();
}

@ -544,10 +544,10 @@ void KateMainWindow::editKeys()
TQPtrList<Kate::Document> l=KateDocManager::self()->documentList();
for (uint i=0;i<l.count();i++) {
// kdDebug(13001)<<"reloading Keysettings for document "<<i<<endl;
l.tqat(i)->reloadXML();
TQPtrList<class KTextEditor::View> l1=l.tqat(i)->views ();//KTextEditor::Document
l.at(i)->reloadXML();
TQPtrList<class KTextEditor::View> l1=l.at(i)->views ();//KTextEditor::Document
for (uint i1=0;i1<l1.count();i1++) {
l1.tqat(i1)->reloadXML();
l1.at(i1)->reloadXML();
// kdDebug(13001)<<"reloading Keysettings for view "<<i<<"/"<<i1<<endl;
}
}

@ -152,7 +152,7 @@ KateSaveModifiedDialog::KateSaveModifiedDialog(TQWidget *parent, TQPtrList<Kate:
m_documentRoot=new TQListViewItem(m_list,i18n("Documents"));
const uint docCnt=documents.count();
for (uint i=0;i<docCnt;i++) {
new KateSaveModifiedDocumentCheckListItem(m_documentRoot,documents.tqat(i));
new KateSaveModifiedDocumentCheckListItem(m_documentRoot,documents.at(i));
}
m_documentRoot->setOpen(true);
} else m_documentRoot=0;

@ -70,7 +70,7 @@ void KateTabWidget::insertTab ( TQWidget * child, const TQString & label, int in
KTabWidget::insertTab(child,label,index);
showPage(child);
maybeShow();
tabBar()->tqrepaint();
tabBar()->repaint();
}
void KateTabWidget::insertTab ( TQWidget * child, const TQIconSet & iconset, const TQString & label, int index )
@ -78,7 +78,7 @@ void KateTabWidget::insertTab ( TQWidget * child, const TQIconSet & iconset, con
KTabWidget::insertTab(child,iconset,label,index);
showPage(child);
maybeShow();
tabBar()->tqrepaint();
tabBar()->repaint();
}
void KateTabWidget::insertTab ( TQWidget * child, TQTab * tab, int index)
@ -86,7 +86,7 @@ void KateTabWidget::insertTab ( TQWidget * child, TQTab * tab, int index)
KTabWidget::insertTab(child,tab,index);
showPage(child);
maybeShow();
tabBar()->tqrepaint();
tabBar()->repaint();
}
void KateTabWidget::removePage ( TQWidget * w )

@ -316,7 +316,7 @@ uint KateViewManager::viewCount ()
{
uint viewCount=0;
for (uint i=0;i<m_viewSpaceContainerList.count();i++) {
viewCount+=m_viewSpaceContainerList.tqat(i)->viewCount();
viewCount+=m_viewSpaceContainerList.at(i)->viewCount();
}
return viewCount;
@ -326,7 +326,7 @@ uint KateViewManager::viewSpaceCount ()
{
uint viewSpaceCount=0;
for (uint i=0;i<m_viewSpaceContainerList.count();i++) {
viewSpaceCount+=m_viewSpaceContainerList.tqat(i)->viewSpaceCount();
viewSpaceCount+=m_viewSpaceContainerList.at(i)->viewSpaceCount();
}
return viewSpaceCount;
}
@ -334,7 +334,7 @@ uint KateViewManager::viewSpaceCount ()
void KateViewManager::setViewActivationBlocked (bool block)
{
for (uint i=0;i<m_viewSpaceContainerList.count();i++)
m_viewSpaceContainerList.tqat(i)->m_blockViewCreationAndActivation=block;
m_viewSpaceContainerList.at(i)->m_blockViewCreationAndActivation=block;
}
void KateViewManager::activateNextView()
@ -354,7 +354,7 @@ void KateViewManager::activatePrevView()
void KateViewManager::closeViews(uint documentNumber)
{
for (uint i=0;i<m_viewSpaceContainerList.count();i++) {
m_viewSpaceContainerList.tqat(i)->closeViews(documentNumber);
m_viewSpaceContainerList.at(i)->closeViews(documentNumber);
}
tabChanged(m_currentContainer);
}
@ -454,7 +454,7 @@ void KateViewManager::setShowFullPath( bool enable )
{
showFullPath=enable;
for (uint i=0;i<m_viewSpaceContainerList.count();i++) {
m_viewSpaceContainerList.tqat(i)->setShowFullPath(enable);
m_viewSpaceContainerList.at(i)->setShowFullPath(enable);
}
m_mainWindow->slotWindowActivated ();
}
@ -477,7 +477,7 @@ void KateViewManager::saveViewConfiguration(KConfig *config,const TQString& grp)
config->writeEntry("ViewSpaceContainers",m_viewSpaceContainerList.count());
config->writeEntry("Active ViewSpaceContainer", m_mainWindow->tabWidget()->currentPageIndex());
for (uint i=0;i<m_viewSpaceContainerList.count();i++) {
m_viewSpaceContainerList.tqat(i)->saveViewConfiguration(config,group+TQString(":ViewSpaceContainer-%1:").arg(i));
m_viewSpaceContainerList.at(i)->saveViewConfiguration(config,group+TQString(":ViewSpaceContainer-%1:").arg(i));
}
}
@ -495,10 +495,10 @@ void KateViewManager::restoreViewConfiguration (KConfig *config, const TQString&
uint tabCount=config->readNumEntry("ViewSpaceContainers",0);
int activeOne=config->readNumEntry("Active ViewSpaceContainer",0);
if (tabCount==0) return;
m_viewSpaceContainerList.tqat(0)->restoreViewConfiguration(config,group+TQString(":ViewSpaceContainer-0:"));
m_viewSpaceContainerList.at(0)->restoreViewConfiguration(config,group+TQString(":ViewSpaceContainer-0:"));
for (uint i=1;i<tabCount;i++) {
slotNewTab();
m_viewSpaceContainerList.tqat(i)->restoreViewConfiguration(config,group+TQString(":ViewSpaceContainer-%1:").arg(i));
m_viewSpaceContainerList.at(i)->restoreViewConfiguration(config,group+TQString(":ViewSpaceContainer-%1:").arg(i));
}
if (activeOne != m_mainWindow->tabWidget()->currentPageIndex())

@ -342,8 +342,8 @@ void KateViewSpaceContainer::activateNextView()
if (i >= m_viewSpaceList.count())
i=0;
setActiveSpace (m_viewSpaceList.tqat(i));
activateView(m_viewSpaceList.tqat(i)->currentView());
setActiveSpace (m_viewSpaceList.at(i));
activateView(m_viewSpaceList.at(i)->currentView());
}
void KateViewSpaceContainer::activatePrevView()
@ -353,8 +353,8 @@ void KateViewSpaceContainer::activatePrevView()
if (i < 0)
i=m_viewSpaceList.count()-1;
setActiveSpace (m_viewSpaceList.tqat(i));
activateView(m_viewSpaceList.tqat(i)->currentView());
setActiveSpace (m_viewSpaceList.at(i));
activateView(m_viewSpaceList.at(i)->currentView());
}
void KateViewSpaceContainer::closeViews(uint documentNumber)
@ -363,7 +363,7 @@ void KateViewSpaceContainer::closeViews(uint documentNumber)
for (uint z=0 ; z < m_viewList.count(); z++)
{
Kate::View* current = m_viewList.tqat(z);
Kate::View* current = m_viewList.at(z);
if ( current->getDoc()->documentNumber() == documentNumber )
{
closeList.append (current);
@ -644,7 +644,7 @@ void KateViewSpaceContainer::restoreViewConfiguration (KConfig *config, const TQ
{
// send all views + their gui to **** ;)
for (uint i=0; i < m_viewList.count(); i++)
mainWindow()->guiFactory ()->removeClient (m_viewList.tqat(i));
mainWindow()->guiFactory ()->removeClient (m_viewList.at(i));
m_viewList.clear ();
@ -658,7 +658,7 @@ void KateViewSpaceContainer::restoreViewConfiguration (KConfig *config, const TQ
// finally, make the correct view active.
config->setGroup (group);
/*
KateViewSpace *vs = m_viewSpaceList.tqat( config->readNumEntry("Active ViewSpace") );
KateViewSpace *vs = m_viewSpaceList.at( config->readNumEntry("Active ViewSpace") );
if ( vs )
activateSpace( vs->currentView() );
*/

@ -474,7 +474,7 @@ void KWrite::saveGlobalProperties(KConfig *config) //save documents
TQString buf = TQString("Document %1").arg(z);
config->setGroup(buf);
KTextEditor::Document *doc = docList.tqat(z - 1);
KTextEditor::Document *doc = docList.at(z - 1);
if (KTextEditor::configInterface(doc))
KTextEditor::configInterface(doc)->writeSessionConfig(config);
@ -485,7 +485,7 @@ void KWrite::saveGlobalProperties(KConfig *config) //save documents
TQString buf = TQString("Window %1").arg(z);
config->setGroup(buf);
config->writeEntry("DocumentNumber",docList.find(winList.tqat(z-1)->view()->document()) + 1);
config->writeEntry("DocumentNumber",docList.find(winList.at(z-1)->view()->document()) + 1);
}
}
@ -521,7 +521,7 @@ void KWrite::restore()
{
buf = TQString("Window %1").arg(z);
config->setGroup(buf);
t = new KWrite(docList.tqat(config->readNumEntry("DocumentNumber") - 1));
t = new KWrite(docList.at(config->readNumEntry("DocumentNumber") - 1));
t->restore(config,z);
}
}

@ -789,7 +789,7 @@ Please note that on slow machines this may cause a "lag" between the event causi
<property name="text">
<string>Ma&amp;ximum speed:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@ -806,7 +806,7 @@ Please note that on slow machines this may cause a "lag" between the event causi
<property name="text">
<string>Acceleration &amp;time:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@ -944,7 +944,7 @@ Please note that on slow machines this may cause a "lag" between the event causi
<property name="text">
<string>&amp;Repeat interval:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@ -992,7 +992,7 @@ Please note that on slow machines this may cause a "lag" between the event causi
<property name="text">
<string>Acceleration &amp;profile:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">
@ -1087,7 +1087,7 @@ Please note that on slow machines this may cause a "lag" between the event causi
<property name="text">
<string>&amp;Acceleration delay:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="buddy" stdset="0">

@ -297,7 +297,7 @@ void KArtsModule::load( bool useDefaults )
{
if(a->name == audioIO) // first item: "autodetect"
{
hardware->audioIO->setCurrentItem(audioIOList.tqat() + 1);
hardware->audioIO->setCurrentItem(audioIOList.at() + 1);
break;
}
@ -334,7 +334,7 @@ void KArtsModule::saveParams( void )
int item = hardware->audioIO->currentItem() - 1; // first item: "default"
if (item >= 0) {
audioIO = audioIOList.tqat(item)->name;
audioIO = audioIOList.at(item)->name;
}
TQString dev = customDevice->isChecked() ? deviceName->text() : TQString::null;
@ -498,7 +498,7 @@ void KArtsModule::updateWidgets()
int item = hardware->audioIO->currentItem() - 1; // first item: "default"
if (item >= 0)
{
audioIO = audioIOList.tqat(item)->name;
audioIO = audioIOList.at(item)->name;
bool jack = (audioIO == TQString::fromLatin1("jack"));
if(jack)
{

@ -441,14 +441,14 @@ void BGDialog::initUI()
else {
for (unsigned i = 0; i < (m_numDesks/m_numViewports); ++i) {
for (unsigned j = 0; j < m_numViewports; ++j) {
m_comboDesktop->insertItem(i18n("Desktop %1 Viewport %2").tqarg(i+1).tqarg(j+1));
m_comboDesktop->insertItem(i18n("Desktop %1 Viewport %2").arg(i+1).arg(j+1));
}
}
}
// Screens
for (unsigned i = 0; i < m_numScreens; ++i)
m_comboScreen->insertItem( i18n("Screen %1").tqarg(TQString::number(i+1)) );
m_comboScreen->insertItem( i18n("Screen %1").arg(TQString::number(i+1)) );
// Patterns
m_comboPattern->insertItem(i18n("Single Color"));

@ -129,7 +129,7 @@ TQString KBackgroundRenderer::buildCommand()
if (pos == (int) (cmd.length() - 1))
break;
switch (cmd.tqat(pos+1).latin1()) {
switch (cmd.at(pos+1).latin1()) {
case 'f':
createTempFile();
cmd.replace(pos, 2, KShellProcess::quote(m_Tempfile->name()));

@ -148,7 +148,7 @@ bool KBackgroundPattern::isAvailable()
if (m_Pattern.isEmpty())
return false;
TQString file = m_Pattern;
if (file.tqat(0) != '/')
if (file.at(0) != '/')
file = m_pDirs->findResource("dtop_pattern", file);
TQFileInfo fi(file);
return (fi.exists());
@ -895,7 +895,7 @@ void KBackgroundSettings::randomizeWallpaperFiles()
tmpList.pop_front();
while(tmpList.count())
{
randomList.insert(randomList.tqat(
randomList.insert(randomList.at(
rseq.getLong(randomList.count()+1)),
1, tmpList.front());
@ -985,7 +985,7 @@ bool KBackgroundSettings::discardCurrentWallpaper()
{
return false;
}
m_WallpaperFiles.remove(m_WallpaperFiles.tqat(m_CurrentWallpaper));
m_WallpaperFiles.remove(m_WallpaperFiles.at(m_CurrentWallpaper));
--m_CurrentWallpaper;
changeWallpaper();

@ -293,7 +293,7 @@ void Dtime::save()
proc << ntpUtility << timeServer;
proc.start( KProcess::Block );
if( proc.exitStatus() != 0 ){
KMessageBox::error( this, i18n(TQString("Unable to contact time server: %1.").tqarg(timeServer).latin1()));
KMessageBox::error( this, i18n(TQString("Unable to contact time server: %1.").arg(timeServer).latin1()));
setDateTimeAuto->setChecked( false );
}
else {
@ -368,7 +368,7 @@ TQString Dtime::quickHelp() const
void Kclock::setTime(const TQTime &time)
{
this->time = time;
tqrepaint();
repaint();
}
void Kclock::paintEvent( TQPaintEvent * )

@ -77,7 +77,7 @@ void Tzone::currentZone()
time_t now = time(0);
tzset();
strftime(result.data(), result.size(), "%Z", localtime(&now));
m_local->setText(localZone.tqarg(KTimezoneWidget::displayName(m_zoneDb.local())).tqarg(static_cast<const char *>(result)));
m_local->setText(localZone.arg(KTimezoneWidget::displayName(m_zoneDb.local())).arg(static_cast<const char *>(result)));
}
// FIXME: Does the logic in this routine actually work correctly? For example,

@ -440,7 +440,7 @@ void KColorScheme::sliderValueChanged( int val )
void KColorScheme::slotSave( )
{
KColorSchemeEntry *entry = mSchemeList->tqat(sList->currentItem()-nSysSchemes);
KColorSchemeEntry *entry = mSchemeList->at(sList->currentItem()-nSysSchemes);
if (!entry) return;
sCurrentScheme = entry->path;
KSimpleConfig *config = new KSimpleConfig(sCurrentScheme );
@ -482,7 +482,7 @@ void KColorScheme::slotSave( )
void KColorScheme::slotRemove()
{
uint ind = sList->currentItem();
KColorSchemeEntry *entry = mSchemeList->tqat(ind-nSysSchemes);
KColorSchemeEntry *entry = mSchemeList->at(ind-nSysSchemes);
if (!entry) return;
if (unlink(TQFile::encodeName(entry->path).data())) {
@ -497,7 +497,7 @@ void KColorScheme::slotRemove()
mSchemeList->remove(entry);
ind = sList->currentItem();
entry = mSchemeList->tqat(ind-nSysSchemes);
entry = mSchemeList->at(ind-nSysSchemes);
if (!entry) return;
removeBt->setEnabled(entry ? entry->local : false);
}
@ -795,7 +795,7 @@ void KColorScheme::readScheme( int index )
config->setGroup("General");
} else {
// Open scheme file
KColorSchemeEntry *entry = mSchemeList->tqat(sList->currentItem()-nSysSchemes);
KColorSchemeEntry *entry = mSchemeList->at(sList->currentItem()-nSysSchemes);
if (!entry) return;
sCurrentScheme = entry->path;
config = new KSimpleConfig(sCurrentScheme, true);
@ -941,7 +941,7 @@ void KColorScheme::slotPreviewScheme(int indx)
removeBt->setEnabled(false);
else
{
KColorSchemeEntry *entry = mSchemeList->tqat(indx-nSysSchemes);
KColorSchemeEntry *entry = mSchemeList->at(indx-nSysSchemes);
removeBt->setEnabled(entry ? entry->local : false);
}

@ -327,7 +327,7 @@ void WidgetCanvas::drawSampleWidgets()
#ifndef __osf__
TQPainter::redirect( vertScrollBar, &pm );
#endif
vertScrollBar->tqrepaint();
vertScrollBar->repaint();
TQPainter::redirect( vertScrollBar, 0 );
vertScrollBar->hide();
@ -592,5 +592,5 @@ void WidgetCanvas::drawSampleWidgets()
hotspots[ spot++ ] =
HotSpot( TQRect( 0, 0, width(), height() ), CSM_Background ); // ?
tqrepaint( FALSE );
repaint( FALSE );
}

@ -91,7 +91,7 @@
<property name="text">
<string></string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>

@ -26,7 +26,7 @@
<property name="text">
<string></string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>

@ -1219,10 +1219,10 @@ void KDisplayConfig::setGammaLabels() {
screendata->gamma_blue = floorf(screendata->gamma_blue * 10 + 0.5) / 10;
// Set the labels
base->gammaAllLabel->setText(TQString("%1").tqarg(((float)base->gammaAllSlider->value())/10.0, 0, 'f', 1));
base->gammaRedLabel->setText(TQString("%1").tqarg(((float)base->gammaRedSlider->value())/10.0, 0, 'f', 1));
base->gammaGreenLabel->setText(TQString("%1").tqarg(((float)base->gammaGreenSlider->value())/10.0, 0, 'f', 1));
base->gammaBlueLabel->setText(TQString("%1").tqarg(((float)base->gammaBlueSlider->value())/10.0, 0, 'f', 1));
base->gammaAllLabel->setText(TQString("%1").arg(((float)base->gammaAllSlider->value())/10.0, 0, 'f', 1));
base->gammaRedLabel->setText(TQString("%1").arg(((float)base->gammaRedSlider->value())/10.0, 0, 'f', 1));
base->gammaGreenLabel->setText(TQString("%1").arg(((float)base->gammaGreenSlider->value())/10.0, 0, 'f', 1));
base->gammaBlueLabel->setText(TQString("%1").arg(((float)base->gammaBlueSlider->value())/10.0, 0, 'f', 1));
}
void KDisplayConfig::gammaSetAverageAllSlider() {

@ -124,7 +124,7 @@ void KCMDnssd::load()
while (avahiStatus.isRunning()) {
kapp->processEvents();
}
int exitStatus = avahiStatus.exiStatus();
int exitStatus = avahiStatus.exitStatus();
if (exitStatus == 0) { // disabled
enableZeroconf->setChecked(false);
} else if (exitStatus == 1) { // enabled

@ -688,7 +688,7 @@ void KFonts::load()
void KFonts::load( bool useDefaults )
{
for ( uint i = 0; i < fontUseList.count(); i++ )
fontUseList.tqat( i )->readFont( useDefaults );
fontUseList.at( i )->readFont( useDefaults );
useAA_original = useAA = aaSettings->load( useDefaults ) ? AAEnabled : AADisabled;
cbAA->setCurrentItem( useAA );
@ -779,7 +779,7 @@ void KFonts::slotApplyFontDiff()
if (ret == KDialog::Accepted && fontDiffFlags)
{
for ( int i = 0; i < (int) fontUseList.count(); i++ )
fontUseList.tqat( i )->applyFontDiff( font,fontDiffFlags );
fontUseList.at( i )->applyFontDiff( font,fontDiffFlags );
emit changed(true);
}
}

@ -184,10 +184,10 @@ bool GetInfo_Partitions( TQListView *lBox ) {
lBox->addColumn( i18n( "Mount Point" ));
lBox->addColumn( i18n( "FS Type" ));
lBox->addColumn( i18n( "Total Size" ));
// XXX: FIXME: how do I set column tqalignment correctly?
// XXX: FIXME: how do I set column alignment correctly?
lBox->setColumnAlignment( 3, 2 );
lBox->addColumn( i18n( "Free Size" ));
// XXX: FIXME: how do I set column tqalignment correctly?
// XXX: FIXME: how do I set column alignment correctly?
lBox->setColumnAlignment( 4, 2 );
lBox->addColumn( i18n( "Mount Time" ));
lBox->addColumn( i18n( "Mount Options" ));

@ -288,7 +288,7 @@ bool KMemoryWidget::Display_Graph(int widgetindex,
TQPixmap pm(width, height);
TQPainter paint;
paint.tqbegin(&pm, this);
paint.begin(&pm, this);
TQPen pen(TQColor(0, 0, 0));

@ -181,10 +181,10 @@
</widget>
<widget class="TQCheckBox" row="2" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>cb_pointertqshape</cstring>
<cstring>cb_pointershape</cstring>
</property>
<property name="text">
<string>Cha&amp;nge pointer tqshape over icons</string>
<string>Cha&amp;nge pointer shape over icons</string>
</property>
<property name="checked">
<bool>true</bool>
@ -283,7 +283,7 @@
<property name="text">
<string>Long</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="hAlign" stdset="0">
@ -344,7 +344,7 @@
<connection>
<sender>singleClick</sender>
<signal>toggled(bool)</signal>
<receiver>cb_pointertqshape</receiver>
<receiver>cb_pointershape</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
@ -364,7 +364,7 @@
<tabstop>rightHanded</tabstop>
<tabstop>leftHanded</tabstop>
<tabstop>singleClick</tabstop>
<tabstop>cb_pointertqshape</tabstop>
<tabstop>cb_pointershape</tabstop>
<tabstop>cbAutoSelect</tabstop>
<tabstop>slAutoSelect</tabstop>
<tabstop>doubleClick</tabstop>

@ -31,7 +31,7 @@
<property name="text">
<string>You have a Logitech Mouse connected, and libusb was found at compile time, but it was not possible to access this mouse. This is probably caused by a permissions problem - you should consult the manual on how to fix this.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>

@ -150,7 +150,7 @@ MouseConfig::MouseConfig (TQWidget * parent, const char *name)
connect(tab1->slAutoSelect, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed()));
connect(tab1->cbVisualActivate, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
connect(tab1->cb_pointertqshape, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
connect(tab1->cb_pointershape, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
connect(tab1->singleClick, TQT_SIGNAL(clicked()), this, TQT_SLOT(changed()));
connect(tab1->singleClick, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClick()));
@ -506,7 +506,7 @@ void MouseConfig::load( bool useDefaults )
tab1->singleClick->setChecked( settings->singleClick );
tab1->doubleClick->setChecked(!settings->singleClick);
tab1->cb_pointertqshape->setChecked(settings->changeCursor);
tab1->cb_pointershape->setChecked(settings->changeCursor);
tab1->cbAutoSelect->setChecked( settings->autoSelectDelay >= 0 );
if ( settings->autoSelectDelay < 0 )
tab1->slAutoSelect->setValue( 0 );
@ -564,7 +564,7 @@ void MouseConfig::save()
settings->autoSelectDelay = tab1->cbAutoSelect->isChecked()? tab1->slAutoSelect->value():-1;
settings->visualActivate = tab1->cbVisualActivate->isChecked();
// settings->changeCursor = tab1->singleClick->isChecked();
settings->changeCursor = tab1->cb_pointertqshape->isChecked();
settings->changeCursor = tab1->cb_pointershape->isChecked();
settings->reverseScrollPolarity = tab1->cbScrollPolarity->isChecked();
settings->apply();

@ -303,7 +303,7 @@ void PreviewWidget::setTheme( const TQString &theme )
current = -1;
setFixedSize( ( maxWidth + cursorSpacing ) * numCursors, kMax( maxHeight, minHeight ) );
setUpdatesEnabled( true );
tqrepaint( false );
repaint( false );
}

@ -170,7 +170,7 @@ void JoyWidget::init()
// we found one
device->insertItem(TQString("%1 (%2)").tqarg(joy->text()).tqarg(joy->device()));
device->insertItem(TQString("%1 (%2)").arg(joy->text()).arg(joy->device()));
// display values for first device
if ( first )

@ -42,7 +42,7 @@ void HelpWidget::setText(const TQString& docPath, const TQString& text)
helptext = text;
else
helptext = (text + i18n("<p>Use the \"What's This?\" (Shift+F1) to get help on specific options.</p><p>To read the full manual click <a href=\"%1\">here</a>.</p>")
.tqarg(static_cast<const char *>(docPath.local8Bit())));
.arg(static_cast<const char *>(docPath.local8Bit())));
}
void HelpWidget::setBaseText()

@ -238,7 +238,7 @@ void KKeyModule::defaults()
uint ind = sList->currentItem();
if ( !d.remove( *sFileList->tqat( ind ) ) ) {
if ( !d.remove( *sFileList->at( ind ) ) ) {
KMessageBox::sorry( 0,
i18n("This key scheme could not be removed.\n"
"Perhaps you do not have permission to alter the file "
@ -247,7 +247,7 @@ void KKeyModule::defaults()
}
sList->removeItem( ind );
sFileList->remove( sFileList->tqat(ind) );
sFileList->remove( sFileList->at(ind) );
}*/
void KKeyModule::slotKeyChange()
@ -258,7 +258,7 @@ void KKeyModule::slotKeyChange()
/*void KKeyModule::slotSave( )
{
KSimpleConfig config(*sFileList->tqat( sList->currentItem() ) );
KSimpleConfig config(*sFileList->at( sList->currentItem() ) );
// global=true is necessary in order to
// let both 'Global Shortcuts' and 'Shortcut Sequences' be
// written to the same scheme file.
@ -281,7 +281,7 @@ void KKeyModule::readScheme( int index )
else {
KConfigBase* config = 0;
if( index == 0 ) config = new KConfig( "kdeglobals" );
//else config = new KSimpleConfig( *sFileList->tqat( index ), true );
//else config = new KSimpleConfig( *sFileList->at( index ), true );
actions.readActions( (index == 0) ? KeySet : KeyScheme, config );
kc->listSync();
@ -416,8 +416,8 @@ void KKeyModule::readScheme( int index )
// Set various appropriate for the scheme
if ( indx < nSysSchemes ||
(*sFileList->tqat(indx)).contains( "/global-" ) ||
(*sFileList->tqat(indx)).contains( "/app-" ) ) {
(*sFileList->at(indx)).contains( "/global-" ) ||
(*sFileList->at(indx)).contains( "/app-" ) ) {
removeBt->setEnabled( FALSE );
} else {
removeBt->setEnabled( TRUE );

@ -208,7 +208,7 @@
<property name="text">
<string>Min</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter|AlignLeft</set>
</property>
<property name="whatsThis" stdset="0">
@ -250,7 +250,7 @@
<property name="text">
<string>Max</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="whatsThis" stdset="0">

@ -125,7 +125,7 @@ void ExtensionInfo::load()
c.setGroup("General");
_position = c.readNumEntry ("Position", _position);
_tqalignment = c.readNumEntry ("Alignment", _tqalignment);
_alignment = c.readNumEntry ("Alignment", _alignment);
_xineramaScreen = c.readNumEntry ("XineramaScreen", _xineramaScreen);
_showLeftHB = c.readBoolEntry("ShowLeftHideButton", _showLeftHB);
_showRightHB = c.readBoolEntry("ShowRightHideButton", _showRightHB);
@ -147,7 +147,7 @@ void ExtensionInfo::load()
}
_orig_position = _position;
_orig_tqalignment = _tqalignment;
_orig_alignment = _alignment;
_orig_size = _size;
_orig_customSize = _customSize;
@ -170,10 +170,10 @@ void ExtensionInfo::configChanged()
_orig_position = _position = position;
}
int tqalignment = c.readNumEntry ("Alignment", TQApplication::reverseLayout() ? 2 : 0);
if (tqalignment != _tqalignment && tqalignment != _orig_tqalignment)
int alignment = c.readNumEntry ("Alignment", TQApplication::reverseLayout() ? 2 : 0);
if (alignment != _alignment && alignment != _orig_alignment)
{
_orig_tqalignment = _tqalignment = tqalignment;
_orig_alignment = _alignment = alignment;
}
if (_resizeable)
@ -197,7 +197,7 @@ void ExtensionInfo::setDefaults()
{
// defaults
_position = 3;
_tqalignment = TQApplication::reverseLayout() ? 2 : 0;
_alignment = TQApplication::reverseLayout() ? 2 : 0;
_xineramaScreen = TQApplication::desktop()->primaryScreen();
_size = 2;
_showLeftHB = false;
@ -225,7 +225,7 @@ void ExtensionInfo::save()
c.setGroup("General");
c.writeEntry("Position", _position);
c.writeEntry("Alignment", _tqalignment);
c.writeEntry("Alignment", _alignment);
c.writeEntry("XineramaScreen", _xineramaScreen);
c.writeEntry("ShowLeftHideButton", _showLeftHB);
c.writeEntry("ShowRightHideButton", _showRightHB);
@ -251,7 +251,7 @@ void ExtensionInfo::save()
}
_orig_position = _position;
_orig_tqalignment = _tqalignment;
_orig_alignment = _alignment;
_orig_size = _size;
_orig_customSize = _customSize;

@ -47,7 +47,7 @@ class ExtensionInfo
// Configuration settings
TQString _name;
int _position;
int _tqalignment;
int _alignment;
int _xineramaScreen;
int _size;
int _customSize;
@ -67,7 +67,7 @@ class ExtensionInfo
// Original settings to ensure that we can figure out
// what has changed externally to the panel vs within the panel
int _orig_position;
int _orig_tqalignment;
int _orig_alignment;
int _orig_size;
int _orig_customSize;

@ -557,7 +557,7 @@
<property name="text">
<string>Fast</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="hAlign" stdset="0">
@ -598,7 +598,7 @@
<property name="text">
<string>Medium</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">

@ -449,7 +449,7 @@
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">

@ -132,7 +132,7 @@
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignCenter</set>
</property>
<property name="whatsThis" stdset="0">

@ -558,7 +558,7 @@ void PositionTab::switchPanel(int panelItem)
m_customSpinbox->setValue(m_panelInfo->_customSize);
m_sizeGroup->setEnabled(m_panelInfo->_resizeable);
m_panelPos = m_panelInfo->_position;
m_panelAlign = m_panelInfo->_tqalignment;
m_panelAlign = m_panelInfo->_alignment;
if(m_panelInfo->_xineramaScreen >= 0 && m_panelInfo->_xineramaScreen < TQApplication::desktop()->numScreens())
m_xineramaScreenComboBox->setCurrentItem(m_panelInfo->_xineramaScreen);
else if(m_panelInfo->_xineramaScreen == -2) /* the All Screens option: qt uses -1 for default, so -2 for all */
@ -672,7 +672,7 @@ void PositionTab::storeInfo()
}
m_panelInfo->_position = m_panelPos;
m_panelInfo->_tqalignment = m_panelAlign;
m_panelInfo->_alignment = m_panelAlign;
if(m_xineramaScreenComboBox->currentItem() == m_xineramaScreenComboBox->count()-1)
m_panelInfo->_xineramaScreen = -2; /* all screens */
else

@ -231,7 +231,7 @@ KAppearanceOptions::KAppearanceOptions(KConfig *config, TQString group, TQWidget
TQFontDatabase db;
m_families = db.tqfamilies();
m_families = db.families();
m_pFonts[0]->setFonts( m_families );
m_pFonts[1]->setFonts( m_families );

@ -109,7 +109,7 @@ KMiscHTMLOptions::KMiscHTMLOptions(KConfig *config, TQString group, TQWidget *pa
TQVGroupBox *bgMouse = new TQVGroupBox( i18n("Mouse Beha&vior"), this );
m_cbCursor = new TQCheckBox(i18n("Chan&ge cursor over links"), bgMouse );
TQWhatsThis::add( m_cbCursor, i18n("If this option is set, the tqshape of the cursor will change "
TQWhatsThis::add( m_cbCursor, i18n("If this option is set, the shape of the cursor will change "
"(usually to a hand) if it is moved over a hyperlink.") );
connect(m_cbCursor, TQT_SIGNAL(clicked()), TQT_SLOT(slotChanged()));

@ -221,7 +221,7 @@
<property name="text">
<string>&amp;Icon:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignTop|AlignLeft</set>
</property>
<property name="buddy" stdset="0">

@ -340,8 +340,8 @@ void SessionEditor::saveCurrent()
else
co->writeEntry("Font",fontCombo->currentItem()-1);
co->writeEntry("Term",termLine->text());
co->writeEntry("KeyTab",*keytabFilename.tqat(keytabCombo->currentItem()));
co->writeEntry("Schema",*schemaFilename.tqat(schemaCombo->currentItem()));
co->writeEntry("KeyTab",*keytabFilename.at(keytabCombo->currentItem()));
co->writeEntry("Schema",*schemaFilename.at(schemaCombo->currentItem()));
co->sync();
delete co;
sesMod=false;

@ -720,7 +720,7 @@ TQString KTheme::getProperty( TQDomElement parent, const TQString & tag,
else
{
kdWarning() << TQString( "No such property found: %1->%2->%3" )
.tqarg( parent.tagName() ).tqarg( tag ).tqarg( attr ) << endl;
.arg( parent.tagName() ).arg( tag ).arg( attr ) << endl;
return TQString::null;
}
}

@ -109,7 +109,7 @@
<property name="frameShape">
<enum>Box</enum>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignCenter</set>
</property>
</widget>

@ -88,7 +88,7 @@
<property name="text">
<string>Co&amp;mment:</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignTop</set>
</property>
<property name="buddy" stdset="0">

@ -174,12 +174,12 @@ void KLocaleConfig::slotAddLanguage(const TQString & code)
// If it's already in list, just move it (delete the old, then insert a new)
int oldPos = languageList.findIndex( code );
if ( oldPos != -1 )
languageList.remove( languageList.tqat(oldPos) );
languageList.remove( languageList.at(oldPos) );
if ( oldPos != -1 && oldPos < pos )
--pos;
TQStringList::Iterator it = languageList.tqat( pos );
TQStringList::Iterator it = languageList.at( pos );
languageList.insert( it, code );
@ -195,7 +195,7 @@ void KLocaleConfig::slotRemoveLanguage()
TQStringList languageList = m_locale->languageList();
int pos = m_languages->currentItem();
TQStringList::Iterator it = languageList.tqat( pos );
TQStringList::Iterator it = languageList.at( pos );
if ( it != languageList.end() )
{
@ -214,8 +214,8 @@ void KLocaleConfig::slotLanguageUp()
TQStringList languageList = m_locale->languageList();
int pos = m_languages->currentItem();
TQStringList::Iterator it1 = languageList.tqat( pos - 1 );
TQStringList::Iterator it2 = languageList.tqat( pos );
TQStringList::Iterator it1 = languageList.at( pos - 1 );
TQStringList::Iterator it2 = languageList.at( pos );
if ( it1 != languageList.end() && it2 != languageList.end() )
{
@ -236,8 +236,8 @@ void KLocaleConfig::slotLanguageDown()
TQStringList languageList = m_locale->languageList();
int pos = m_languages->currentItem();
TQStringList::Iterator it1 = languageList.tqat( pos );
TQStringList::Iterator it2 = languageList.tqat( pos + 1 );
TQStringList::Iterator it1 = languageList.at( pos );
TQStringList::Iterator it2 = languageList.at( pos + 1 );
if ( it1 != languageList.end() && it2 != languageList.end() )
{

@ -157,7 +157,7 @@ void KLocaleConfigMoney::save()
if (str != m_locale->monetaryThousandsSeparator())
config->writeEntry("MonetaryThousandsSeparator",
TQString::fromLatin1("$0%1$0")
.tqarg(m_locale->monetaryThousandsSeparator()),
.arg(m_locale->monetaryThousandsSeparator()),
true, true);
i = ent.readNumEntry("FracDigits", 2);

@ -109,7 +109,7 @@ void KLocaleConfigNumber::save()
if (str != m_locale->thousandsSeparator())
config->writeEntry("ThousandsSeparator",
TQString::fromLatin1("$0%1$0")
.tqarg(m_locale->thousandsSeparator()), true, true);
.arg(m_locale->thousandsSeparator()), true, true);
str = ent.readEntry("PositiveSign");
config->deleteEntry("PositiveSign", false, true);

@ -150,7 +150,7 @@ TQString KLocaleConfigTime::userToStore(const TQValueList<StringPair> & list,
if ( !bFound )
{
TQChar c = userFormat.tqat( pos );
TQChar c = userFormat.at( pos );
if ( c == '%' )
result += c;
@ -169,7 +169,7 @@ TQString KLocaleConfigTime::storeToUser(const TQValueList<StringPair> & list,
bool escaped = false;
for ( uint pos = 0; pos < storeFormat.length(); ++pos )
{
TQChar c = storeFormat.tqat(pos);
TQChar c = storeFormat.at(pos);
if ( escaped )
{
StringPair it = StringPair::find( list, c );
@ -323,7 +323,7 @@ void KLocaleConfigTime::slotCalendarSystemChanged(int calendarSystem)
TQString calendarType;
bool ok;
calendarType = calendars.tqat(calendarSystem, &ok);
calendarType = calendars.at(calendarSystem, &ok);
if ( !ok )
calendarType = calendars.first();

@ -93,7 +93,7 @@ KRandRModule::KRandRModule(TQWidget *parent, const char *name, const TQStringLis
m_screenSelector = new KComboBox(screenBox);
for (int s = 0; s < numScreens(); s++) {
m_screenSelector->insertItem(i18n("Screen %1").tqarg(s+1));
m_screenSelector->insertItem(i18n("Screen %1").arg(s+1));
}
m_screenSelector->setCurrentItem(currentScreenIndex());
@ -172,7 +172,7 @@ void KRandRModule::slotScreenChanged(int screen)
// Add new resolutions
for (int i = 0; i < currentScreen()->numSizes(); i++) {
m_sizeCombo->insertItem(i18n("%1 x %2").tqarg(currentScreen()->pixelSize(i).width()).tqarg(currentScreen()->pixelSize(i).height()));
m_sizeCombo->insertItem(i18n("%1 x %2").arg(currentScreen()->pixelSize(i).width()).arg(currentScreen()->pixelSize(i).height()));
// Aspect ratio
/* , aspect ratio %5)*/

@ -205,7 +205,7 @@ void KRandRSystemTray::contextMenuAboutToShow(KPopupMenu* menu)
/*lastIndex = menu->insertItem(i18n("Screen %1").arg(s+1));
menu->setItemEnabled(lastIndex, false);*/
} else {
KPopupMenu* subMenu = new KPopupMenu(menu, TQString("screen%1").tqarg(s+1).latin1());
KPopupMenu* subMenu = new KPopupMenu(menu, TQString("screen%1").arg(s+1).latin1());
m_screenPopups.append(subMenu);
populateMenu(subMenu);
lastIndex = menu->insertItem(i18n("Screen %1").arg(s+1), subMenu);

@ -537,7 +537,7 @@ void KScreenSaver::findSavers()
mSaverListView->setSelected(selectedItem, true);
mSaverListView->setCurrentItem(selectedItem);
mSaverListView->ensureItemVisible(selectedItem);
mSetupBt->setEnabled(!mSaverList.tqat(mSelected)->setup().isEmpty());
mSetupBt->setEnabled(!mSaverList.at(mSelected)->setup().isEmpty());
mTestBt->setEnabled(true);
}
@ -587,7 +587,7 @@ void KScreenSaver::slotPreviewExited(KProcess *)
if (mSelected >= 0) {
mPreviewProc->clearArguments();
TQString saver = mSaverList.tqat(mSelected)->saver();
TQString saver = mSaverList.at(mSelected)->saver();
TQTextStream ts(&saver, IO_ReadOnly);
TQString word;
@ -665,9 +665,9 @@ void KScreenSaver::slotScreenSaver(TQListViewItem *item)
bool bChanged = (indx != mSelected);
if (!mSetupProc->isRunning())
mSetupBt->setEnabled(!mSaverList.tqat(indx)->setup().isEmpty());
mSetupBt->setEnabled(!mSaverList.at(indx)->setup().isEmpty());
mTestBt->setEnabled(true);
mSaver = mSaverList.tqat(indx)->file();
mSaver = mSaverList.at(indx)->file();
mSelected = indx;
setMonitor();
@ -690,7 +690,7 @@ void KScreenSaver::slotSetup()
mSetupProc->clearArguments();
TQString saver = mSaverList.tqat(mSelected)->setup();
TQString saver = mSaverList.at(mSelected)->setup();
if( saver.isEmpty())
return;
TQTextStream ts(&saver, IO_ReadOnly);
@ -708,7 +708,7 @@ void KScreenSaver::slotSetup()
if (!kxsconfig) {
word = "-caption";
(*mSetupProc) << word;
word = mSaverList.tqat(mSelected)->name();
word = mSaverList.at(mSelected)->name();
(*mSetupProc) << word;
word = "-icon";
(*mSetupProc) << word;
@ -724,7 +724,7 @@ void KScreenSaver::slotSetup()
// Pass translated name to kxsconfig
if (kxsconfig) {
word = mSaverList.tqat(mSelected)->name();
word = mSaverList.at(mSelected)->name();
(*mSetupProc) << word;
}
@ -758,7 +758,7 @@ void KScreenSaver::slotTest()
}
mTestProc->clearArguments();
TQString saver = mSaverList.tqat(mSelected)->saver();
TQString saver = mSaverList.at(mSelected)->saver();
TQTextStream ts(&saver, IO_ReadOnly);
TQString word;

@ -23,7 +23,7 @@
<property name="text">
<string>&lt;b&gt;Unable to contact the KDE smartcard service.&lt;/b&gt;</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -48,7 +48,7 @@
2) You don't appear to have smartcard support in the KDE libraries. You will need to recompile the tdelibs package with libpcsclite installed.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>

@ -250,7 +250,7 @@
<property name="text">
<string>To add new readers you have to modify /etc/readers.conf file and re-start pcscd</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>

@ -96,7 +96,7 @@ void MenuPreview::createPixmaps()
void MenuPreview::blendPixmaps()
{
// Rebuild pixmaps, and tqrepaint
// Rebuild pixmaps, and repaint
if (pixBlended && pixBackground)
{
if (mode == Blend && pixOverlay) {
@ -121,7 +121,7 @@ void MenuPreview::setOpacity( int opacity )
if ((int)(menuOpacity*100) != opacity) {
menuOpacity = opacity/100.0;
blendPixmaps();
tqrepaint( false );
repaint( false );
}
}
@ -130,7 +130,7 @@ void MenuPreview::setPreviewMode( PreviewMode pvm )
if (mode != pvm) {
mode = pvm;
blendPixmaps();
tqrepaint( false );
repaint( false );
}
}

@ -226,9 +226,9 @@ TQString USBDevice::dump()
r += i18n("<tr><td><i>Power Consumption</i></td><td>%1 mA</td></tr>").arg(_power);
else
r += i18n("<tr><td><i>Power Consumption</i></td><td>self powered</td></tr>");
r += i18n("<tr><td><i>Attached Devicenodes</i></td><td>%1</td></tr>").arg(*_devnodes.tqat(0));
r += i18n("<tr><td><i>Attached Devicenodes</i></td><td>%1</td></tr>").arg(*_devnodes.at(0));
if ( _devnodes.count() > 1 )
for ( TQStringList::Iterator it = _devnodes.tqat(1); it != _devnodes.end(); ++it )
for ( TQStringList::Iterator it = _devnodes.at(1); it != _devnodes.end(); ++it )
r += "<tr><td></td><td>" + *it + "</td></tr>";
#else
r += i18n("<tr><td><i>Max. Packet Size</i></td><td>%1</td></tr>").arg(_maxPacketSize);

@ -674,7 +674,7 @@ void KDCOPWindow::slotCallFunction( TQListViewItem* it )
}
if (!wl.isEmpty())
wl.tqat(0)->setFocus();
wl.at(0)->setFocus();
i++;
@ -693,104 +693,104 @@ void KDCOPWindow::slotCallFunction( TQListViewItem* it )
if ( type == "int" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << e->text().toInt();
}
else if ( type == "unsigned" || type == "uint" || type == "unsigned int"
|| type == "TQ_UINT32" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << e->text().toUInt();
}
else if( type == "long" || type == "long int" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << e->text().toLong();
}
else if( type == "ulong" || type == "unsigned long" || type == "unsigned long int" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << e->text().toULong();
}
else if( type == "short" || type == "short int" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << e->text().toShort();
}
else if( type == "ushort" || type == "unsigned short" || type == "unsigned short int" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << e->text().toUShort();
}
else if ( type == "TQ_UINT64" )
{
KLineEdit* e = ( KLineEdit* )wl.tqat( i );
KLineEdit* e = ( KLineEdit* )wl.at( i );
arg << e->text().toULongLong();
}
else if( type == "float" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << e->text().toFloat();
}
else if( type == "double" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << e->text().toDouble();
}
else if( type == "bool" )
{
TQCheckBox* c = (TQCheckBox*)wl.tqat( i );
TQCheckBox* c = (TQCheckBox*)wl.at( i );
arg << c->isChecked();
}
else if( type == "TQCString" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << TQCString( e->text().local8Bit() );
}
else if( type == "TQString" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << e->text();
}
else if( type == "TQStringList" )
{
KEditListBox* e = (KEditListBox*)wl.tqat( i );
KEditListBox* e = (KEditListBox*)wl.at( i );
arg << e->items();
}
else if( type == "TQValueList<TQCString>" )
{
KEditListBox* e = (KEditListBox*)wl.tqat( i );
KEditListBox* e = (KEditListBox*)wl.at( i );
for (int i = 0; i < e->count(); i++)
arg << TQCString( e->text(i).local8Bit() );
}
else if( type == "KURL" )
{
KLineEdit* e = (KLineEdit*)wl.tqat( i );
KLineEdit* e = (KLineEdit*)wl.at( i );
arg << KURL( e->text() );
}
else if( type == "TQColor" )
{
KColorButton* e = (KColorButton*)wl.tqat( i );
KColorButton* e = (KColorButton*)wl.at( i );
arg << e->color();
}
else if( type == "TQSize" )
{
KMultiIntEdit* e = (KMultiIntEdit*)wl.tqat( i );
KMultiIntEdit* e = (KMultiIntEdit*)wl.at( i );
arg << TQSize(e->field(1) , e->field(2)) ;
}
else if( type == "TQPoint" )
{
KMultiIntEdit* e = (KMultiIntEdit*)wl.tqat( i );
KMultiIntEdit* e = (KMultiIntEdit*)wl.at( i );
arg << TQPoint(e->field(1) , e->field(2)) ;
}
else if( type == "TQRect" )
{
KMultiIntEdit* e = (KMultiIntEdit*)wl.tqat( i );
KMultiIntEdit* e = (KMultiIntEdit*)wl.at( i );
arg << TQRect(e->field(1) , e->field(2) , e->field(3) , e->field(4)) ;
}
else if( type == "TQPixmap" )
{
KURLRequester* e= (KURLRequester*)wl.tqat( i );
KURLRequester* e= (KURLRequester*)wl.at( i );
arg << TQPixmap(e->url());
}
else
@ -1053,7 +1053,7 @@ bool KDCOPWindow::demarshal
TQCursor r;
reply >> r;
//theList->insertItem(r, 1);
ret << "Cursor #" + TQString::number(r.tqshape());
ret << "Cursor #" + TQString::number(r.shape());
}
else if (replyType == "TQPixmap")
{

@ -182,7 +182,7 @@
<property name="text">
<string></string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter</set>
</property>
</widget>
@ -193,7 +193,7 @@
<property name="text">
<string>&lt;i&gt;(Click the button to change your image)&lt;/i&gt;</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter</set>
</property>
</widget>

@ -518,11 +518,11 @@ void KBackgroundManager::setPixmap(KPixmap *pm, int hash, int desk)
{
TQScrollView* sv = dynamic_cast<TQScrollView*>( m_pDesktop );
if ( sv ) {
// Qt eats tqrepaint events in this case :-((
// Qt eats repaint events in this case :-((
sv->viewport()->update();
}
m_pDesktop->setErasePixmap(*ep);
m_pDesktop->tqrepaint();
m_pDesktop->repaint();
static bool root_cleared = false;
if( !root_cleared )
{ // clear the root window pixmap set by kdm
@ -923,7 +923,7 @@ void KBackgroundManager::setWallpaper(int desk, TQString wallpaper, int mode)
void KBackgroundManager::repaintBackground()
{
if (m_pDesktop)
m_pDesktop->tqrepaint();
m_pDesktop->repaint();
else
TQT_TQWIDGET(KApplication::desktop()->screen())->erase();
}

@ -159,7 +159,7 @@ KDesktop::KDesktop( bool x_root_hack, bool wait_for_kded ) :
kapp->dcopClient()->connectDCOPSignal(kicker_name, kicker_name, "desktopIconsAreaChanged(TQRect, int)",
"KDesktopIface", "desktopIconsAreaChanged(TQRect, int)", false);
// Dont tqrepaint on configuration changes during construction
// Dont repaint on configuration changes during construction
m_bInit = true;
// It's the child widget that gets the focus, not us
@ -1179,7 +1179,7 @@ void KDesktop::addIcon(const TQString & _url, const TQString & _dest, int x, int
void KDesktop::removeIcon(const TQString &_url)
{
if (_url.tqat(0) != '/') {
if (_url.at(0) != '/') {
qDebug("removeIcon with relative path not supported for now");
return;
}

@ -1055,7 +1055,7 @@ void KDIconView::slotNewItems( const KFileItemList & entries )
KURL desktop_URL = desktopURL();
if (desktop_URL.isLocalFile())
desktopPath = desktop_URL.path();
// We have new items, so we'll need to tqrepaint in slotCompleted
// We have new items, so we'll need to repaint in slotCompleted
m_bNeedRepaint = true;
kdDebug(1214) << "KDIconView::slotNewItems count=" << entries.count() << endl;
KFileItemListIterator it(entries);
@ -1198,7 +1198,7 @@ void KDIconView::slotRefreshItems( const KFileItemList & entries )
}
else
{
// In case we replace a big icon with a small one, need to tqrepaint.
// In case we replace a big icon with a small one, need to repaint.
updateContents();
// Can't do that with m_bNeedRepaint since slotCompleted isn't called
m_bNeedRepaint = false;
@ -1305,7 +1305,7 @@ void KDIconView::slotCompleted()
if (!m_hasExistingPos)
rearrangeIcons();
// kdDebug(1204) << "KDIconView::slotCompleted save:" << m_bNeedSave << " tqrepaint:" << m_bNeedRepaint << endl;
// kdDebug(1204) << "KDIconView::slotCompleted save:" << m_bNeedSave << " repaint:" << m_bNeedRepaint << endl;
if ( m_bNeedSave )
{
// Done here because we want to align icons only once initially, and each time new icons appear.
@ -1317,7 +1317,7 @@ void KDIconView::slotCompleted()
}
if ( m_bNeedRepaint )
{
viewport()->tqrepaint();
viewport()->repaint();
m_bNeedRepaint = false;
}
}
@ -1471,7 +1471,7 @@ void KDIconView::contentsDropEvent( TQDropEvent * e )
bool isImmutable = KGlobal::config()->isImmutable();
if ( (isColorDrag || isImageDrag) && !isUrlDrag ) {
// Hack to clear the drag tqshape
// Hack to clear the drag shape
bool bMovable = itemsMovable();
bool bSignals = signalsBlocked();
setItemsMovable(false);
@ -1519,7 +1519,7 @@ void KDIconView::contentsDropEvent( TQDropEvent * e )
if( adjustedAnyItems )
{
// Make sure the viewport isn't unnecessarily resized by now,
// then schedule a tqrepaint to remove any garbage pixels.
// then schedule a repaint to remove any garbage pixels.
resizeContents( width(), height() );
viewport()->update();
}
@ -1541,7 +1541,7 @@ void KDIconView::updateWorkArea( const TQRect &wr )
{
m_gotIconsArea = true; // now we have it!
if (( iconArea() == wr ) && (m_needDesktopAlign == false)) return; // nothing changed; avoid tqrepaint/saveIconPosition ...
if (( iconArea() == wr ) && (m_needDesktopAlign == false)) return; // nothing changed; avoid repaint/saveIconPosition ...
TQRect oldArea = iconArea();
setIconArea( wr );
@ -1593,8 +1593,8 @@ void KDIconView::updateWorkArea( const TQRect &wr )
}
}
if ( needRepaint ) {
viewport()->tqrepaint( FALSE );
tqrepaint( FALSE );
viewport()->repaint( FALSE );
repaint( FALSE );
saveIconPositions();
}
}
@ -1718,7 +1718,7 @@ void KDIconView::moveToFreePosition(TQIconViewItem *item )
TQRect rect=item->rect();
if (m_bVertAlign)
{
kdDebug(1214)<<"moveToFreePosition for vertical tqalignment"<<endl;
kdDebug(1214)<<"moveToFreePosition for vertical alignment"<<endl;
rect.moveTopLeft(TQPoint(spacing(),spacing()));
do

@ -91,7 +91,7 @@ class KFileIVIDesktop : public KFileIVI
* Builds the shadow. As the algorithm is pretty slow (at pixel level),
* This method is triggered only if the configuration has changed.
* @param p the painter for drawing the item
* @param align the shadow tqalignment
* @param align the shadow alignment
* @param shadowColor the shadow color
*/
virtual TQImage *buildShadow(TQPainter *p, const int align, TQColor &shadowColor);

@ -243,7 +243,7 @@ void KRootWm::initConfig()
if (s == s_choices[c])
{ rightButtonChoice = (menuChoice) c; break; }
// Read configuration for icons tqalignment
// Read configuration for icons alignment
if ( m_bDesktopEnabled ) {
bool startup = true; m_pDesktop->iconView()->setAutoAlign( KDesktopSettings::autoLineUpIcons() );
if ( kapp->authorize( "editable_desktop_icons" ) ) {

@ -405,7 +405,7 @@
<property name="text">
<string>High</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="whatsThis" stdset="0">
@ -527,7 +527,7 @@
<property name="text">
<string></string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
@ -568,7 +568,7 @@
<property name="text">
<string>Enter the name of the application you want to run or the URL you want to view</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>

@ -492,7 +492,7 @@ static int directCommand(KCmdLineArgs *args)
filter = TQString::fromLocal8Bit(args->arg(0));
}
// copied from KFileDialog::getSaveFileName(), so we can add geometry
bool specialDir = ( startDir.tqat(0) == ':' );
bool specialDir = ( startDir.at(0) == ':' );
KFileDialog dlg( specialDir ? startDir : TQString::null, filter, 0, "filedialog", true );
if ( !specialDir )
dlg.setSelection( startDir );

@ -700,11 +700,11 @@ restore_modifiers( void )
}
void
setCursor( Display *mdpy, int window, int tqshape )
setCursor( Display *mdpy, int window, int shape )
{
Cursor xcursor;
if ((xcursor = XCreateFontCursor( mdpy, tqshape ))) {
if ((xcursor = XCreateFontCursor( mdpy, shape ))) {
XDefineCursor( mdpy, window, xcursor );
XFreeCursor( mdpy, xcursor );
XFlush( mdpy );

@ -77,7 +77,7 @@ int PingServer( struct _XDisplay *dpy );
void setup_modifiers( struct _XDisplay *mdpy, int numlock );
void restore_modifiers( void );
void setCursor( struct _XDisplay *mdpy, int window, int tqshape );
void setCursor( struct _XDisplay *mdpy, int window, int shape );
extern int rfd; /* for select() loops */

@ -76,19 +76,19 @@ KdmClock::KdmClock( TQWidget *parent, const char *name )
//setBackgroundOrigin( WindowOrigin );
mBackgroundBrush = backgroundBrush();
setBackgroundMode( NoBackground );
tqrepaint();
repaint();
}
void KdmClock::showEvent( TQShowEvent * )
{
tqrepaint();
repaint();
}
void KdmClock::timeout()
{
tqrepaint();
repaint();
}
void KdmClock::paintEvent( TQPaintEvent * )

@ -243,8 +243,8 @@ void KGreeter::handleInputPipe(void) {
currentDisplay = TQString(getenv("DISPLAY"));
currentDisplay = currentDisplay.replace(":", "");
displayNumber = currentDisplay.toInt();
mPipeFilename = TQString(FIFO_FILE).tqarg(displayNumber);
::unlink((TQString(FIFO_SAK_FILE).tqarg(displayNumber)).ascii());
mPipeFilename = TQString(FIFO_FILE).arg(displayNumber);
::unlink((TQString(FIFO_SAK_FILE).arg(displayNumber)).ascii());
/* Create the FIFOs if they do not exist */
umask(0);
@ -338,12 +338,12 @@ class UserListViewItem : public KListViewItem {
parent->cachedSizeHint.setWidth( -1 );
}
virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment)
virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment)
{
if (((UserListView*)listView())->themed)
TQListViewItem::paintCell(p, cg, column, width, tqalignment);
TQListViewItem::paintCell(p, cg, column, width, alignment);
else
KListViewItem::paintCell(p, cg, column, width, tqalignment);
KListViewItem::paintCell(p, cg, column, width, alignment);
}
TQString login;
@ -422,7 +422,7 @@ KGreeter::insertUser( const TQImage &default_pix,
if ( randomFace.isNull() ) {
TQStringList::size_type index = 0;
for ( size_t i = 0; i < username.length(); ++i )
index += ( 0x7f - username.tqat( i ).latin1() ) % 37;
index += ( 0x7f - username.at( i ).latin1() ) % 37;
randomFace = randomFaces[ index % randomFaces.count() ];
}
p.load( _faceDir + "/../pics/users/" + randomFace + ".png" );

@ -73,7 +73,7 @@ MyApplication::renderDone()
// ...set it to the desktop widget...
TQT_TQWIDGET(desktop())->setBackgroundPixmap( pm );
TQT_TQWIDGET(desktop())->tqrepaint( true );
TQT_TQWIDGET(desktop())->repaint( true );
// ...and export it via Esetroot-style so that composition managers can use it!
Pixmap bgPm = pm.handle(); // fetch the actual X handle to it

@ -157,8 +157,8 @@ void SAKDlg::handleInputPipe(void) {
currentDisplay = TQString(getenv("DISPLAY"));
currentDisplay = currentDisplay.replace(":", "");
displayNumber = currentDisplay.toInt();
mPipeFilename = TQString(FIFO_SAK_FILE).tqarg(displayNumber);
::unlink((TQString(FIFO_FILE).tqarg(displayNumber)).ascii());
mPipeFilename = TQString(FIFO_SAK_FILE).arg(displayNumber);
::unlink((TQString(FIFO_FILE).arg(displayNumber)).ascii());
/* Create the FIFOs if they do not exist */
umask(0);

@ -280,7 +280,7 @@ KdmItem::setGeometry( const TQRect &newGeometry, bool force )
if (fixedManager && !fixedManager->isEmpty())
fixedManager->update( newGeometry, force );
// TODO send *selective* tqrepaint signal
// TODO send *selective* repaint signal
}
void
@ -299,7 +299,7 @@ KdmItem::paint( TQPainter *p, const TQRect &rect )
if ((_compositor.isEmpty()) || (!argb_visual_available)) {
// Software blend only (no compositing support)
TQPixmap copy( myWidget->size() );
kdDebug() << myWidget->tqgeometry() << " " << area << " " << myWidget->size() << endl;
kdDebug() << myWidget->geometry() << " " << area << " " << myWidget->size() << endl;
bitBlt( &copy, TQPoint( 0, 0), p->device(), myWidget->geometry(), TQt::CopyROP );
// Lighten it slightly
TQImage lightVersion;
@ -592,7 +592,7 @@ KdmItem::parseAttribute( const TQString &s, int &val, enum DataType &dType )
} else { // int value
dType = DTpixel;
TQString sCopy = s;
if (sCopy.tqat( 0 ) == '-') {
if (sCopy.at( 0 ) == '-') {
sCopy.remove( 0, 1 );
dType = DTnpixel;
}
@ -616,7 +616,7 @@ KdmItem::parseFont( const TQString &s, TQFont &font )
void
KdmItem::parseColor( const TQString &s, TQColor &color )
{
if (s.tqat( 0 ) != '#')
if (s.at( 0 ) != '#')
return;
bool ok;
TQString sCopy = s;

@ -96,7 +96,7 @@ public:
/**
* Fixup the geometry of an item and its children (even if fixed
* or boxed ones). Note that this will generate tqrepaint signals
* or boxed ones). Note that this will generate repaint signals
* when needed. The default implementation should fit all needs.
*/
virtual void setGeometry( const TQRect &newGeometry, bool force );
@ -109,7 +109,7 @@ public:
void paint( TQPainter *painter, const TQRect &boundaries );
/**
* Update representation of contents and tqrepaint.
* Update representation of contents and repaint.
*/
virtual void update();
@ -195,7 +195,7 @@ protected:
/**
* Called when item changes its 'state' variable. This must
* handle item's tqrepaint.
* handle item's repaint.
*/
virtual void statusChanged();

@ -116,7 +116,7 @@ KdmLabel::setTextInt( const TQString &txt)
if (cAccel != -1) {
cText.remove('&');
myAccel = new TQAccel(parentWidget());
myAccel->insertItem(ALT + UNICODE_ACCEL + cText.tqat(cAccel).lower().tqunicode());
myAccel->insertItem(ALT + UNICODE_ACCEL + cText.at(cAccel).lower().tqunicode());
connect(myAccel, TQT_SIGNAL(activated(int)), TQT_SLOT(slotAccel()));
}
}
@ -177,8 +177,8 @@ KdmLabel::drawContents( TQPainter *p, const TQRect &/*r*/ )
TQFont f(l->font);
f.setUnderline(true);
p->setFont ( f );
p->drawText( tarea, AlignLeft | SingleLine, TQString(cText.tqat(cAccel)));
tarea.rLeft() += fm.width(cText.tqat(cAccel));
p->drawText( tarea, AlignLeft | SingleLine, TQString(cText.at(cAccel)));
tarea.rLeft() += fm.width(cText.at(cAccel));
p->setFont( l->font );
p->drawText( tarea, AlignLeft | SingleLine, right);
} else {

@ -138,7 +138,7 @@ KdmPixmap::fullPath( const TQString &fileName)
return TQString::null;
TQString fullName = fileName;
if (fullName.tqat( 0 ) != '/')
if (fullName.at( 0 ) != '/')
fullName = baseDir() + "/" + fileName;
return fullName;
}
@ -177,7 +177,7 @@ KdmPixmap::loadPixmap( PixmapStruct::PixmapClass *pClass )
TQString ext = fullpath.right(fullpath.length() - index);
fullpath = fullpath.left(index);
kdDebug() << timestamp() << " ext " << ext << " " << fullpath << endl;
TQString testpath = TQString("-%1x%2").tqarg(area.width()).arg(area.height()) + ext;
TQString testpath = TQString("-%1x%2").arg(area.width()).arg(area.height()) + ext;
kdDebug() << timestamp() << " testing for " << fullpath + testpath << endl;
if (KStandardDirs::exists(fullpath + testpath))
pClass->pixmap.load(fullpath + testpath);

@ -76,7 +76,7 @@ bool is_vt_active() {
if (intFound == false) {
return true;
}
curConsole = TQString("vt%1").tqarg(curConsoleNum);;
curConsole = TQString("vt%1").arg(curConsoleNum);;
TQStringList sessionList = TQStringList::split('\t', output, false);
for ( TQStringList::Iterator it = sessionList.begin(); it != sessionList.end(); ++it ) {
TQStringList sessionInfoList = TQStringList::split(',', *it, true);

@ -293,7 +293,7 @@ void KfindWindow::deleteFiles()
// Iterate on all selected elements
TQPtrList<TQListViewItem> selected = selectedItems();
for ( uint i = 0; i < selected.count(); i++ ) {
KfFileLVI *item = (KfFileLVI *) selected.tqat(i);
KfFileLVI *item = (KfFileLVI *) selected.at(i);
KFileItem file = item->fileitem;
KIO::NetAccess::del(file.url(), this);
@ -335,7 +335,7 @@ void KfindWindow::resizeEvent(TQResizeEvent *e)
{
KListView::resizeEvent(e);
resetColumns(false);
clipper()->tqrepaint();
clipper()->repaint();
}
TQDragObject * KfindWindow::dragObject()
@ -346,7 +346,7 @@ TQDragObject * KfindWindow::dragObject()
// create a list of URIs from selection
for ( uint i = 0; i < selected.count(); i++ )
{
KfFileLVI *item = (KfFileLVI *) selected.tqat( i );
KfFileLVI *item = (KfFileLVI *) selected.at( i );
if (item)
{
uris.append( item->fileitem.url() );

@ -278,7 +278,7 @@ void DocEntry::addChild( DocEntry *entry )
entry->weight() < mChildren[ i + 1 ]->weight() ) {
entry->setNextSibling( mChildren[ i + 1 ] );
mChildren[ i ]->setNextSibling( entry );
mChildren.insert( mChildren.tqat( i + 1 ), entry );
mChildren.insert( mChildren.at( i + 1 ), entry );
break;
}
}

@ -93,7 +93,7 @@ void History::createEntry()
Entry * current = m_entries.current();
if (current)
{
m_entries.tqat( m_entries.count() - 1 ); // go to last one
m_entries.at( m_entries.count() - 1 ); // go to last one
for ( ; m_entries.current() != current ; )
{
if ( !m_entries.removeLast() ) { // and remove from the end (faster and easier)
@ -101,7 +101,7 @@ void History::createEntry()
return;
}
else
m_entries.tqat( m_entries.count() - 1 );
m_entries.at( m_entries.count() - 1 );
}
// Now current is the current again.
@ -111,7 +111,7 @@ void History::createEntry()
// Append a new entry
m_entries.append( new Entry ); // made current
Q_ASSERT( m_entries.tqat() == (int) m_entries.count() - 1 );
Q_ASSERT( m_entries.at() == (int) m_entries.count() - 1 );
}
void History::updateCurrentEntry( View *view )
@ -199,9 +199,9 @@ void History::goHistory( int steps )
Entry *current = m_entries.current();
if ( current && !current->view ) m_entries.remove();
int newPos = m_entries.tqat() + steps;
int newPos = m_entries.at() + steps;
current = m_entries.tqat( newPos );
current = m_entries.at( newPos );
if ( !current ) {
kdError() << "No History entry at position " << newPos << endl;
return;
@ -276,14 +276,14 @@ void History::fillGoMenu()
// Second case: big history, in one or both directions
{
// Assume both directions first (in this case we place the current URL in the middle)
m_goMenuHistoryStartPos = m_entries.tqat() + 4;
m_goMenuHistoryStartPos = m_entries.at() + 4;
// Forward not big enough ?
if ( m_entries.tqat() > (int)m_entries.count() - 4 )
if ( m_entries.at() > (int)m_entries.count() - 4 )
m_goMenuHistoryStartPos = m_entries.count() - 1;
}
Q_ASSERT( m_goMenuHistoryStartPos >= 0 && (uint)m_goMenuHistoryStartPos < m_entries.count() );
m_goMenuHistoryCurrentPos = m_entries.tqat(); // for slotActivated
m_goMenuHistoryCurrentPos = m_entries.at(); // for slotActivated
fillHistoryPopup( goMenu, false, false, true, m_goMenuHistoryStartPos );
}
@ -314,7 +314,7 @@ void History::fillHistoryPopup( TQPopupMenu *popup, bool onlyBack, bool onlyForw
TQPtrListIterator<Entry> it( m_entries );
if (onlyBack || onlyForward)
{
it += m_entries.tqat(); // Jump to current item
it += m_entries.at(); // Jump to current item
if ( !onlyForward ) --it; else ++it; // And move off it
} else if ( startPos )
it += startPos; // Jump to specified start pos
@ -339,12 +339,12 @@ void History::fillHistoryPopup( TQPopupMenu *popup, bool onlyBack, bool onlyForw
bool History::canGoBack() const
{
return m_entries.tqat() > 0;
return m_entries.at() > 0;
}
bool History::canGoForward() const
{
return m_entries.tqat() != static_cast<int>( m_entries.count() ) - 1;
return m_entries.at() != static_cast<int>( m_entries.count() ) - 1;
}
#include "history.moc"

@ -28,7 +28,7 @@ TQString HTMLSearch::dataPath(const TQString& _lang)
void HTMLSearch::scanDir(const TQString& dir)
{
assert( dir.tqat( dir.length() - 1 ) == '/' );
assert( dir.at( dir.length() - 1 ) == '/' );
TQStringList::ConstIterator it;
@ -83,7 +83,7 @@ bool HTMLSearch::saveFilesList(const TQString& _lang)
TQStringList add = config->readListEntry("Paths");
TQStringList::Iterator it;
for (it = add.begin(); it != add.end(); ++it) {
if ( ( *it ).tqat( ( *it ).length() - 1 ) != '/' )
if ( ( *it ).at( ( *it ).length() - 1 ) != '/' )
( *it ) += '/';
dirs.append(*it);
}

@ -83,7 +83,7 @@ void KTagComboBox::internalActivate( int index )
if (current == index) return;
current = index;
emit activated( index );
tqrepaint();
repaint();
}
void KTagComboBox::internalHighlight( int index )
@ -211,7 +211,7 @@ bool KTagComboBox::containsTag( const TQString &str ) const
TQString KTagComboBox::currentTag() const
{
return *tags->tqat(currentItem());
return *tags->at(currentItem());
}
TQString KTagComboBox::tag(int i) const
@ -221,7 +221,7 @@ TQString KTagComboBox::tag(int i) const
kdDebug() << "KTagComboBox::tag(), unknown tag " << i << endl;
return TQString::null;
}
return *tags->tqat(i);
return *tags->at(i);
}
int KTagComboBox::currentItem() const
@ -233,7 +233,7 @@ void KTagComboBox::setCurrentItem(int i)
{
if (i < 0 || i >= count()) return;
current = i;
tqrepaint();
repaint();
}
void KTagComboBox::setCurrentItem(const TQString &code)

@ -164,7 +164,7 @@ void TOC::meinprocExited( KProcess *meinproc )
TQDomComment timestamp = doc.createComment( TQString::number( sourceFileCTime() ) );
doc.documentElement().appendChild( timestamp );
f.tqat( 0 );
f.at( 0 );
TQTextStream stream( &f );
stream.setEncoding( TQTextStream::UnicodeUTF8 );
stream << doc.toString();

@ -33,7 +33,7 @@ void GestureDrawer::setData(const TQString &data)
{
_data = data;
tqrepaint();
repaint();
}
void GestureDrawer::paintEvent(TQPaintEvent *ev)

@ -33,7 +33,7 @@
<string>&lt;p&gt;This module allows configuring input actions, like mouse gestures, keyboard shortcuts for performing commands, launching applications or DCOP calls, and similar.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;NOTE: &lt;/b&gt;If you are not an experienced user, you should be careful with modifying the actions, and should limit your changes mainly to enabling/disabling actions, and changing triggers.&lt;/p&gt;</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>

@ -23,7 +23,7 @@
<property name="text">
<string>In order to trigger a spoken action, you have to press the key (or combination of keys) configured below, speak the command and then press the same key again once you have finished speaking.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>

@ -55,7 +55,7 @@ Kbd::~Kbd()
void Kbd::insert_item( const KShortcut& shortcut_P, Kbd_receiver* receiver_P )
{
Receiver_data& rcv = tqreceivers[ receiver_P ];
Receiver_data& rcv = receivers[ receiver_P ];
rcv.shortcuts.append( shortcut_P );
if( rcv.active )
grab_shortcut( shortcut_P );
@ -63,17 +63,17 @@ void Kbd::insert_item( const KShortcut& shortcut_P, Kbd_receiver* receiver_P )
void Kbd::remove_item( const KShortcut& shortcut_P, Kbd_receiver* receiver_P )
{
Receiver_data& rcv = tqreceivers[ receiver_P ];
Receiver_data& rcv = receivers[ receiver_P ];
rcv.shortcuts.remove( shortcut_P );
if( rcv.active )
ungrab_shortcut( shortcut_P );
if( rcv.shortcuts.count() == 0 )
tqreceivers.remove( receiver_P );
receivers.remove( receiver_P );
}
void Kbd::activate_receiver( Kbd_receiver* receiver_P )
{
Receiver_data& rcv = tqreceivers[ receiver_P ];
Receiver_data& rcv = receivers[ receiver_P ];
if( rcv.active )
return;
rcv.active = true;
@ -85,7 +85,7 @@ void Kbd::activate_receiver( Kbd_receiver* receiver_P )
void Kbd::deactivate_receiver( Kbd_receiver* receiver_P )
{
Receiver_data& rcv = tqreceivers[ receiver_P ];
Receiver_data& rcv = receivers[ receiver_P ];
if( !rcv.active )
return;
rcv.active = false;
@ -144,8 +144,8 @@ void Kbd::key_slot( TQString key_P )
KShortcut shortcut( key_P );
if( !grabs.contains( shortcut ))
return;
for( TQMap< Kbd_receiver*, Receiver_data >::ConstIterator it = tqreceivers.begin();
it != tqreceivers.end();
for( TQMap< Kbd_receiver*, Receiver_data >::ConstIterator it = receivers.begin();
it != receivers.end();
++it )
if( ( *it ).shortcuts.contains( shortcut ) && ( *it ).active
&& it.key()->handle_key( shortcut ))

@ -58,7 +58,7 @@ class Kbd
TQValueList< KShortcut > shortcuts;
bool active;
};
TQMap< Kbd_receiver*, Receiver_data > tqreceivers;
TQMap< Kbd_receiver*, Receiver_data > receivers;
TQMap< KShortcut, int > grabs;
KGlobalAccel* kga;
};

@ -93,7 +93,7 @@ void Sound::load(const TQString& filename)
TQ_INT32 nb=0;
for(uint k=0;k<BytePS;k++)
{
nb |= (SoundData.tqat(f*BytePS+k)&0x000000FF) << (k*8);
nb |= (SoundData.at(f*BytePS+k)&0x000000FF) << (k*8);
}
if(nb & (1 << (BytePS*8 -1)) )
nb = nb-(1<<BytePS*8);
@ -129,11 +129,11 @@ void Sound::save(const TQString& filename) const
for(unsigned long int f=0;f<data.size();f++)
{
TQ_UINT16 val= (signed short int) ( (data.tqat(f) * ((double)(1<<13)/(signed)max) ) );
SoundData.tqat( 2*f )= val & 0x00FF;
SoundData.tqat(2*f+1)= (val & 0xFF00) >> 8;
TQ_UINT16 val= (signed short int) ( (data.at(f) * ((double)(1<<13)/(signed)max) ) );
SoundData.at( 2*f )= val & 0x00FF;
SoundData.at(2*f+1)= (val & 0xFF00) >> 8;
// kdDebug( 1217 ) << k_funcinfo << data.tqat(f) << " / " << max << " = " << val << " | " << SoundData[ 2*f ] << " "<< SoundData[ 2*f+1 ] << endl;
// kdDebug( 1217 ) << k_funcinfo << data.at(f) << " / " << max << " = " << val << " | " << SoundData[ 2*f ] << " "<< SoundData[ 2*f+1 ] << endl;
}
TQ_UINT16 NumberOfChannels=2;

@ -42,7 +42,7 @@ public:
inline float at(int pos) const
{
return (float)(data.tqat(pos))/max;
return (float)(data.at(pos))/max;
}
inline uint fs() const

@ -210,7 +210,7 @@ TQMemArray<double> VoiceSignature::fft(const Sound& sound, unsigned int start, u
for(uint x=start; x<stop; x++)
{
Complex s(sound.tqat(x));
Complex s(sound.at(x));
double angle=-2*PI*f*x/8000;
s*= Complex( cos(angle) , sin(angle) );
c+=s;

@ -827,7 +827,7 @@ void FuzzyClock::drawContents(TQPainter *p)
}
if (phStart >= 0)
newTimeStr.replace(phStart, phLength, hourNames[realHour]);
newTimeStr.replace(0, 1, TQString(newTimeStr.tqat(0).upper()));
newTimeStr.replace(0, 1, TQString(newTimeStr.at(0).upper()));
}
} else if (_prefs->fuzzyness() == 3) {
newTimeStr = dayTime[_time.hour() / 3];
@ -1020,7 +1020,7 @@ int ClockApplet::widthForHeight(int h) const
// if the date format STARTS with a year, assume it's in descending
// order and should therefore PRECEED the date.
TQString dateFormat = KGlobal::locale()->dateFormatShort();
dateFirst = dateFormat.tqat(1) == 'y' || dateFormat.tqat(1) == 'Y';
dateFirst = dateFormat.at(1) == 'y' || dateFormat.at(1) == 'Y';
}
if (dateFirst)
@ -1272,7 +1272,7 @@ void ClockApplet::reconfigure()
_clock->widget()->installEventFilter(this); // catch mouse clicks
_clock->widget()->show();
_clock->forceUpdate(); /* force tqrepaint */
_clock->forceUpdate(); /* force repaint */
if (showDayOfWeek)
{
@ -1623,7 +1623,7 @@ void ClockApplet::showZone(int z)
zone->setZone(z);
TZoffset = zone->calc_TZ_offset( zone->zone() );
updateDateLabel();
_clock->forceUpdate(); /* force tqrepaint */
_clock->forceUpdate(); /* force repaint */
}
void ClockApplet::nextZone()

@ -152,7 +152,7 @@
<property name="text">
<string>Short Term</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignCenter</set>
</property>
</widget>
@ -163,7 +163,7 @@
<property name="text">
<string>Long Term</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignCenter</set>
</property>
</widget>

@ -1097,7 +1097,7 @@ void QuickLauncher::updateStickyHighlightLayer()
}
}
}
tqrepaint();
repaint();
}
void QuickLauncher::paintEvent(TQPaintEvent* e)

@ -365,7 +365,7 @@ void KMiniPager::updateDesktopLayout(int o, int x, int y)
if( m_desktopLayoutOwner == NULL )
{ // must own manager selection before setting global desktop layout
int screen = DefaultScreen( qt_xdisplay());
m_desktopLayoutOwner = new KSelectionOwner( TQString( "_NET_DESKTOP_LAYOUT_S%1" ).tqarg( screen ).latin1(),
m_desktopLayoutOwner = new KSelectionOwner( TQString( "_NET_DESKTOP_LAYOUT_S%1" ).arg( screen ).latin1(),
screen, TQT_TQOBJECT(this) );
if( !m_desktopLayoutOwner->claim( false ))
{
@ -865,7 +865,7 @@ void KMiniPager::slotDesktopNamesChanged()
{
TQString name = m_twin->desktopName(i);
(*it)->setDesktopName(name);
(*it)->tqrepaint();
(*it)->repaint();
TQToolTip::remove((*it));
TQToolTip::add((*it), name);
}

@ -157,8 +157,8 @@ bool KMiniPagerButton::shouldPaintWindow( KWin::WindowInfo *info ) const
TQRect r = mapGeometryToViewport(*info);
if (!info->hasState(NET::Sticky) &&
!TQApplication::desktop()->tqgeometry().contains(r.topLeft()) &&
!TQApplication::desktop()->tqgeometry().contains(r.topRight()))
!TQApplication::desktop()->geometry().contains(r.topLeft()) &&
!TQApplication::desktop()->geometry().contains(r.topRight()))
return false;
}

@ -388,7 +388,7 @@ void SystemTrayApplet::checkAutoRetract()
return;
}
if (!tqgeometry().contains(mapFromGlobal(TQCursor::pos())))
if (!geometry().contains(mapFromGlobal(TQCursor::pos())))
{
m_autoRetractTimer->stop();
if (m_autoRetract)

@ -335,7 +335,7 @@ int DockBarExtension::findContainerAtPoint(const TQPoint& p)
it != containers.constEnd();
++it, ++i)
{
if ((*it)->tqgeometry().contains(p))
if ((*it)->geometry().contains(p))
{
return i;
}
@ -350,7 +350,7 @@ void DockBarExtension::mousePressEvent(TQMouseEvent *e ) {
mclic_pos = e->pos();
} else if (e->button() == Qt::RightButton) {
int pos = findContainerAtPoint(e->pos());
if (pos != -1) containers.tqat(pos)->popupMenu(e->globalPos());
if (pos != -1) containers.at(pos)->popupMenu(e->globalPos());
}
}
@ -374,7 +374,7 @@ void DockBarExtension::mouseMoveEvent(TQMouseEvent *e) {
int pos = findContainerAtPoint(e->pos());
original_container = 0;
if (pos > -1) {
original_container = containers.tqat(pos);
original_container = containers.at(pos);
mclic_dock_pos = e->pos() - original_container->pos();
dragged_container_original_pos = pos;
dragging_container = new DockContainer(original_container->command(), 0, original_container->resName(), original_container->resClass(), true);

@ -102,7 +102,7 @@ KasBar::KasBar( Orientation o, TQWidget *parent, const char *name, WFlags f )
setMouseTracking( true );
setMaxBoxes( 0 );
connect( this, TQT_SIGNAL( configChanged() ), TQT_SLOT( tqrepaint() ) );
connect( this, TQT_SIGNAL( configChanged() ), TQT_SLOT( repaint() ) );
}
KasBar::KasBar( Orientation o, KasBar *master, TQWidget *parent, const char *name, WFlags f )
@ -130,7 +130,7 @@ KasBar::KasBar( Orientation o, KasBar *master, TQWidget *parent, const char *nam
items.setAutoDelete( true );
setMouseTracking( true );
setMaxBoxes( 0 );
connect( master_, TQT_SIGNAL( configChanged() ), TQT_SLOT( tqrepaint() ) );
connect( master_, TQT_SIGNAL( configChanged() ), TQT_SLOT( repaint() ) );
}
KasBar::~KasBar()
@ -255,7 +255,7 @@ void KasBar::setTint( bool enable )
}
emit configChanged();
tqrepaint( true );
repaint( true );
}
}
@ -269,7 +269,7 @@ void KasBar::setTint( double amount, TQColor color )
emit configChanged();
if ( rootPix->isAvailable() )
rootPix->tqrepaint( true );
rootPix->repaint( true );
}
}
@ -451,24 +451,24 @@ void KasBar::updateLayout()
KasItem *i;
if ( orient == Qt::Horizontal ) {
for ( i = items.first(); i; i = items.next() ) {
int x = (items.tqat() % c) * itemExtent();
int x = (items.at() % c) * itemExtent();
if ( direction_ == TQBoxLayout::RightToLeft )
x = width() - x - itemExtent();
i->setPos( x, (items.tqat() / c) * itemExtent() );
i->setPos( x, (items.at() / c) * itemExtent() );
i->update();
mask = mask.unite( TQRegion( TQRect( i->pos(), TQSize(itemExtent(),itemExtent()) ) ) );
}
}
else {
for ( i = items.first(); i; i = items.next() ) {
int y = (items.tqat() / r) * itemExtent();
int y = (items.at() / r) * itemExtent();
if ( direction_ == TQBoxLayout::BottomToTop )
y = height() - y - itemExtent();
i->setPos( (items.tqat() % r) * itemExtent(), y );
i->setPos( (items.at() % r) * itemExtent(), y );
i->update();
mask = mask.unite( TQRegion( TQRect( i->pos(), TQSize(itemExtent(),itemExtent()) ) ) );
}
@ -658,7 +658,7 @@ void KasBar::repaintItem(KasItem *i, bool erase )
paintBackground( &p, TQRect( pos, TQSize( itemExtent(), itemExtent() ) ) );
i->paint( &p, pos.x(), pos.y() );
tqrepaint( TQRect( pos, TQSize( itemExtent(), itemExtent() ) ), transparent_ || erase );
repaint( TQRect( pos, TQSize( itemExtent(), itemExtent() ) ), transparent_ || erase );
}
KasItem* KasBar::itemAt(const TQPoint &p)

@ -120,7 +120,7 @@ public:
void remove( KasItem *i );
void clear();
KasItem *take( KasItem *i ) { return items.take( indexOf(i) ); }
KasItem *itemAt( uint i ) { return items.tqat( i ); }
KasItem *itemAt( uint i ) { return items.at( i ); }
int indexOf( KasItem *i ) { return items.find( i ); }
KasItemList *itemList() { return &items; }

@ -141,7 +141,7 @@ void KasBarExtension::showEvent( TQShowEvent */*se*/ )
{
updateGeometry();
resize( kasbar->size() );
tqrepaint( true );
repaint( true );
}
TQSize KasBarExtension::detachedSize()

@ -213,7 +213,7 @@ void KasGroupItem::paint( TQPainter *p )
int ypos = 16;
for ( int i = 0; ( i < (int) items.count() ) && ( i < microsPerCol ); i++ ) {
Task::Ptr t = items.tqat( i );
Task::Ptr t = items.at( i );
if( t->isIconified() )
p->drawPixmap( xpos, ypos, res->microMinIcon() );

@ -91,7 +91,7 @@ public:
KasTasker *kasbar() const;
Task::Ptr task( uint i ) { return items.tqat( i ); }
Task::Ptr task( uint i ) { return items.at( i ); }
int taskCount() const { return items.count(); }
TQPixmap icon();

@ -547,12 +547,12 @@ void KasItem::paint( TQPainter *p, int x, int y )
p->restore();
}
void KasItem::tqrepaint()
void KasItem::repaint()
{
tqrepaint( true );
repaint( true );
}
void KasItem::tqrepaint( bool erase )
void KasItem::repaint( bool erase )
{
if ( kas->isVisible() )
kas->repaintItem( this, erase );

@ -171,8 +171,8 @@ public:
void paintModified( TQPainter *p );
public slots:
void tqrepaint();
void tqrepaint( bool erase );
void repaint();
void repaint( bool erase );
void update();
void setActive( bool yes );

@ -135,7 +135,7 @@ TQPixmap KasTaskItem::icon()
TQPixmap thumb = task_->thumbnail();
TQSize sz = thumb.size();
sz.tqscale( sizes[kasbar()->itemSize()], sizes[kasbar()->itemSize()], TQSize::ScaleMin );
sz.scale( sizes[kasbar()->itemSize()], sizes[kasbar()->itemSize()], TQSize::ScaleMin );
TQImage img = thumb.convertToImage();
img = img.smoothScale( sz );

@ -155,7 +155,7 @@ void TaskBarExtension::setBackgroundTheme()
}
else
{
m_rootPixmap->tqrepaint(true);
m_rootPixmap->repaint(true);
}
double tint = double(KickerSettings::tintValue()) / 100;

@ -286,7 +286,7 @@ void KNewButton::drawEye()
}
m_active_pixmap = pixmap.xForm(matrix);
tqrepaint(false);
repaint(false);
}
#undef eye_x
#undef eye_y

@ -269,7 +269,7 @@ void AppletHandle::checkHandleHover()
{
if (!m_handleHoverTimer ||
(m_menuButton && m_menuButton->isOn()) ||
m_applet->tqgeometry().contains(m_applet->mapToParent(
m_applet->geometry().contains(m_applet->mapToParent(
m_applet->mapFromGlobal(TQCursor::pos()))))
{
return;

@ -117,7 +117,7 @@ AppletContainer::AppletContainer(const AppletInfo& info,
_valid = true;
_applet->setPosition((KPanelApplet::Position)KickerLib::directionToPosition(popupDirection()));
_applet->setAlignment((KPanelApplet::Alignment)tqalignment());
_applet->setAlignment((KPanelApplet::Alignment)alignment());
_actions = _applet->actions();
_type = _applet->type();

@ -38,7 +38,7 @@ BaseContainer::BaseContainer( TQPopupMenu* appletOpMenu, TQWidget* parent, const
: TQWidget( parent, name )
, _dir(KPanelApplet::Up)
, _orient(Qt::Horizontal)
, _tqalignment(KPanelExtension::LeftTop)
, _alignment(KPanelExtension::LeftTop)
, _fspace(0)
, _moveOffset(TQPoint(0,0))
, _aid(TQString::null)
@ -112,12 +112,12 @@ void BaseContainer::slotRemoved(KConfig* config)
void BaseContainer::setAlignment(KPanelExtension::Alignment a)
{
if (_tqalignment == a)
if (_alignment == a)
{
return;
}
_tqalignment = a;
_alignment = a;
alignmentChange(a);
}

@ -73,7 +73,7 @@ public:
KPanelApplet::Direction popupDirection() const { return _dir; }
KPanelExtension::Orientation orientation() const { return _orient; }
KPanelExtension::Alignment tqalignment() const { return _tqalignment; }
KPanelExtension::Alignment alignment() const { return _alignment; }
virtual void setBackground() {}
@ -118,7 +118,7 @@ protected:
KPanelApplet::Direction _dir;
KPanelExtension::Orientation _orient;
KPanelExtension::Alignment _tqalignment;
KPanelExtension::Alignment _alignment;
double _fspace;
TQPoint _moveOffset;
TQString _aid;

@ -315,7 +315,7 @@ void ExtensionContainer::readConfig()
}
positionChange(position());
alignmentChange(tqalignment());
alignmentChange(alignment());
setSize(static_cast<KPanelExtension::Size>(m_settings.size()),
m_settings.customSize());
@ -523,7 +523,7 @@ void ExtensionContainer::moveMe()
}
UserRectSel::PanelStrut newStrut = UserRectSel::select(rects, rect().center(), m_highlightColor);
arrange(newStrut.m_pos, newStrut.m_tqalignment, newStrut.m_screen);
arrange(newStrut.m_pos, newStrut.m_alignment, newStrut.m_screen);
_is_lmb_down = false;
@ -788,7 +788,7 @@ void ExtensionContainer::autoHide(bool hide)
blockUserInput(true);
TQPoint oldpos = pos();
TQRect newextent = initialGeometry( position(), tqalignment(), xineramaScreen(), hide, Unhidden );
TQRect newextent = initialGeometry( position(), alignment(), xineramaScreen(), hide, Unhidden );
TQPoint newpos = newextent.topLeft();
if (hide)
@ -900,7 +900,7 @@ void ExtensionContainer::animatedHide(bool left)
}
TQPoint oldpos = pos();
TQRect newextent = initialGeometry(position(), tqalignment(), xineramaScreen(), false, newState);
TQRect newextent = initialGeometry(position(), alignment(), xineramaScreen(), false, newState);
TQPoint newpos(newextent.topLeft());
if (newState != Unhidden)
@ -987,7 +987,7 @@ bool ExtensionContainer::reserveStrut() const
return !m_extension || m_extension->reserveStrut();
}
KPanelExtension::Alignment ExtensionContainer::tqalignment() const
KPanelExtension::Alignment ExtensionContainer::alignment() const
{
// KConfigXT really needs to get support for vars that are enums that
// are defined in other classes
@ -1005,7 +1005,7 @@ void ExtensionContainer::updateWindowManager()
int w = 0;
int h = 0;
TQRect geom = initialGeometry(position(), tqalignment(), xineramaScreen());
TQRect geom = initialGeometry(position(), alignment(), xineramaScreen());
TQRect virtRect(TQApplication::desktop()->geometry());
TQRect screenRect(TQApplication::desktop()->screenGeometry(xineramaScreen()));
@ -1590,7 +1590,7 @@ KPanelExtension::Position ExtensionContainer::position() const
void ExtensionContainer::resetLayout()
{
TQRect g = initialGeometry(position(), tqalignment(), xineramaScreen(),
TQRect g = initialGeometry(position(), alignment(), xineramaScreen(),
autoHidden(), userHidden());
// Disable the layout while we rearrange the panel.
@ -1997,12 +1997,12 @@ void ExtensionContainer::setXineramaScreen(int screen)
return;
}
arrange(position(),tqalignment(), screen);
arrange(position(),alignment(), screen);
}
TQRect ExtensionContainer::currentGeometry() const
{
return initialGeometry(position(), tqalignment(), xineramaScreen(),
return initialGeometry(position(), alignment(), xineramaScreen(),
autoHidden(), userHidden());
}

@ -86,7 +86,7 @@ public:
KPanelExtension::Orientation orientation() const;
KPanelExtension::Position position() const;
void setPosition(KPanelExtension::Position p) { arrange( p, tqalignment(), xineramaScreen() ); }
void setPosition(KPanelExtension::Position p) { arrange( p, alignment(), xineramaScreen() ); }
int xineramaScreen() const;
void setXineramaScreen(int screen);
@ -100,7 +100,7 @@ public:
void unhideIfHidden(int showForHowManyMS = 0);
bool reserveStrut() const;
KPanelExtension::Alignment tqalignment() const;
KPanelExtension::Alignment alignment() const;
void setAlignment(KPanelExtension::Alignment a) { arrange( position(), a, xineramaScreen() ); }
TQRect currentGeometry() const;

@ -1441,7 +1441,7 @@ void ContainerArea::setBackground()
}
else
{
_rootPixmap->tqrepaint(true);
_rootPixmap->repaint(true);
}
double tint = double(KickerSettings::tintValue()) / 100;
@ -1725,7 +1725,7 @@ void ContainerArea::setPosition(KPanelExtension::Position p)
setBackground();
// container extension repaints for us!
//tqrepaint();
//repaint();
}
void ContainerArea::setAlignment(KPanelExtension::Alignment a)
@ -1900,9 +1900,9 @@ TQStringList ContainerArea::listContainers() const
return m_layout->listItems();
}
void ContainerArea::tqrepaint()
void ContainerArea::repaint()
{
Panner::tqrepaint();
Panner::repaint();
}
void ContainerArea::showAddAppletDialog()

@ -103,7 +103,7 @@ public slots:
void setPosition(KPanelExtension::Position p);
void setAlignment(KPanelExtension::Alignment a);
void slotSaveContainerConfig();
void tqrepaint();
void repaint();
void showAddAppletDialog();
void addAppletDialogDone();

@ -43,7 +43,7 @@ class ContainerAreaLayoutIterator : public TQGLayoutIterator
TQLayoutItem* current()
{
return m_idx < int(m_list->count()) ? (*m_list->tqat(m_idx))->item : 0;
return m_idx < int(m_list->count()) ? (*m_list->at(m_idx))->item : 0;
}
TQLayoutItem* next()
@ -55,7 +55,7 @@ class ContainerAreaLayoutIterator : public TQGLayoutIterator
TQLayoutItem* takeCurrent()
{
TQLayoutItem* item = 0;
ContainerAreaLayout::ItemList::iterator b = m_list->tqat(m_idx);
ContainerAreaLayout::ItemList::iterator b = m_list->at(m_idx);
if (b != m_list->end())
{
ContainerAreaLayoutItem* layoutItem = *b;
@ -223,7 +223,7 @@ int ContainerAreaLayout::count() const {
\reimp
*/
TQLayoutItem* ContainerAreaLayout::itemAt(int index) const {
return index >= 0 && index < m_items.count() ? (*m_items.tqat(index))->item : 0;
return index >= 0 && index < m_items.count() ? (*m_items.at(index))->item : 0;
}
/*!
@ -232,8 +232,8 @@ TQLayoutItem* ContainerAreaLayout::itemAt(int index) const {
TQLayoutItem* ContainerAreaLayout::takeAt(int index) {
if (index < 0 || index >= m_items.count())
return 0;
ContainerAreaLayoutItem *b = *m_items.tqat(index);
m_items.remove(m_items.tqat(index));
ContainerAreaLayoutItem *b = *m_items.at(index);
m_items.remove(m_items.at(index));
TQLayoutItem *item = b->item;
b->item = 0;
delete b;

@ -702,7 +702,7 @@ void ExtensionManager::reduceArea(TQRect &area, const ExtensionContainer *extens
return;
}
TQRect geom = extension->initialGeometry(extension->position(), extension->tqalignment(),
TQRect geom = extension->initialGeometry(extension->position(), extension->alignment(),
extension->xineramaScreen());
// reduce given area (TQRect) to the space not covered by the given extension

@ -43,17 +43,17 @@ class UserRectSel : public TQWidget
PanelStrut()
: m_screen(-1),
m_pos(KPanelExtension::Bottom),
m_tqalignment(KPanelExtension::LeftTop)
m_alignment(KPanelExtension::LeftTop)
{
}
PanelStrut(const TQRect& rect, int XineramaScreen,
KPanelExtension::Position pos,
KPanelExtension::Alignment tqalignment)
KPanelExtension::Alignment alignment)
: m_rect(rect),
m_screen(XineramaScreen),
m_pos(pos),
m_tqalignment(tqalignment)
m_alignment(alignment)
{
}
@ -61,7 +61,7 @@ class UserRectSel : public TQWidget
{
return m_screen == rhs.m_screen &&
m_pos == rhs.m_pos &&
m_tqalignment == rhs.m_tqalignment;
m_alignment == rhs.m_alignment;
}
bool operator!=(const PanelStrut& rhs)
@ -72,7 +72,7 @@ class UserRectSel : public TQWidget
TQRect m_rect;
int m_screen;
KPanelExtension::Position m_pos;
KPanelExtension::Alignment m_tqalignment;
KPanelExtension::Alignment m_alignment;
};
typedef TQValueVector<PanelStrut> RectList;

@ -225,7 +225,7 @@ void AddAppletVisualFeedback::swoopCloser()
void AddAppletVisualFeedback::internalUpdate()
{
m_dirty = true;
tqrepaint(false);
repaint(false);
}
#include "addappletvisualfeedback.moc"

@ -65,7 +65,7 @@
<property name="textFormat">
<enum>RichText</enum>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@ -87,7 +87,7 @@
<property name="textFormat">
<enum>RichText</enum>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@ -117,7 +117,7 @@
<property name="text">
<string></string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignTop</set>
</property>
</widget>

@ -52,7 +52,7 @@ PanelAppletOpMenu::PanelAppletOpMenu(int actions, TQPopupMenu *opMenu, const TQP
TQString text = isButton ? (isMenu ? i18n("&Move %1 Menu") :
i18n("&Move %1 Button")) :
i18n("&Move %1");
insertItem(SmallIcon("move"), text.tqarg(titleText), Move);
insertItem(SmallIcon("move"), text.arg(titleText), Move);
// we look for a container area to see if we can add containers
// this is part of the kiosk support in kicker, allowing
@ -76,7 +76,7 @@ PanelAppletOpMenu::PanelAppletOpMenu(int actions, TQPopupMenu *opMenu, const TQP
text = isButton ? (isMenu ? i18n("&Remove %1 Menu") :
i18n("&Remove %1 Button")) :
i18n("&Remove %1");
insertItem(SmallIcon("remove"), text.tqarg(titleText), Remove);
insertItem(SmallIcon("remove"), text.arg(titleText), Remove);
needSeparator = true;
}
}
@ -103,7 +103,7 @@ PanelAppletOpMenu::PanelAppletOpMenu(int actions, TQPopupMenu *opMenu, const TQP
KIcon::Small, 0,
KIcon::DefaultState,
0, true));
insertItem(iconPix, i18n("&About %1").tqarg( titleText ), About);
insertItem(iconPix, i18n("&About %1").arg( titleText ), About);
needSeparator = !(actions & KPanelApplet::Help);
}
@ -123,12 +123,12 @@ PanelAppletOpMenu::PanelAppletOpMenu(int actions, TQPopupMenu *opMenu, const TQP
if (isButton)
{
insertItem(SmallIcon("configure"),
i18n("&Configure %1 Button...").tqarg(titleText), Preferences);
i18n("&Configure %1 Button...").arg(titleText), Preferences);
}
else
{
insertItem(SmallIcon("configure"),
i18n("&Configure %1...").tqarg(titleText), Preferences);
i18n("&Configure %1...").arg(titleText), Preferences);
}
needSeparator = true;
}

@ -39,13 +39,13 @@ ClickLineEdit::~ClickLineEdit() {}
void ClickLineEdit::setClickMessage( const TQString &msg )
{
mClickMessage = msg;
tqrepaint();
repaint();
}
void ClickLineEdit::setText( const TQString &txt )
{
mDrawClickMsg = txt.isEmpty();
tqrepaint();
repaint();
KLineEdit::setText( txt );
}
@ -67,7 +67,7 @@ void ClickLineEdit::focusInEvent( TQFocusEvent *ev )
if ( mDrawClickMsg == true )
{
mDrawClickMsg = false;
tqrepaint();
repaint();
}
TQLineEdit::focusInEvent( ev );
}
@ -77,7 +77,7 @@ void ClickLineEdit::focusOutEvent( TQFocusEvent *ev )
if ( text().isEmpty() )
{
mDrawClickMsg = true;
tqrepaint();
repaint();
}
TQLineEdit::focusOutEvent( ev );
}

@ -59,7 +59,7 @@ void KickerClientMenu::insertItem( TQString text, int id )
TQCString KickerClientMenu::insertMenu( TQPixmap icon, TQString text, int id )
{
TQString subname("%1-submenu%2");
TQCString subid = subname.tqarg(static_cast<const char *>(objId())).tqarg(id).local8Bit();
TQCString subid = subname.arg(static_cast<const char *>(objId())).arg(id).local8Bit();
KickerClientMenu *sub = new KickerClientMenu(this, subid);
int globalid = TQPopupMenu::insertItem( icon, text, sub, id);
setItemParameter( globalid, id );

@ -59,7 +59,7 @@ PanelExtensionOpMenu::PanelExtensionOpMenu(const TQString& extension, int action
if (!Kicker::the()->isImmutable() && (actions & KPanelExtension::Preferences)) {
insertSeparator();
insertItem(SmallIcon("configure"), i18n("&Configure %1...").tqarg(extension), Preferences);
insertItem(SmallIcon("configure"), i18n("&Configure %1...").arg(extension), Preferences);
}
adjustSize();

@ -270,7 +270,7 @@ void FlipScrollView::slotScrollTimer()
if (!mSelectMenuPath.isEmpty()) {
if (mSelectMenuPath=="kicker:/goup/") {
currentView()->setSelected(currentView()->firstChild(),true);
currentView()->firstChild()->tqrepaint();
currentView()->firstChild()->repaint();
}
else {
TQListViewItem * child = currentView()->firstChild();
@ -278,8 +278,8 @@ void FlipScrollView::slotScrollTimer()
KMenuItem* kitem = dynamic_cast<KMenuItem*>(child);
if (kitem && kitem->menuPath()==mSelectMenuPath) {
currentView()->setSelected(child,true);
kdDebug() << "child tqrepaint\n";
child->tqrepaint();
kdDebug() << "child repaint\n";
child->repaint();
break;
}
child = child->nextSibling();

@ -173,14 +173,14 @@ void HideButton::slotIconChanged(int group)
}
generateIcons();
tqrepaint(false);
repaint(false);
}
void HideButton::enterEvent(TQEvent *e)
{
m_highlight = true;
tqrepaint(false);
repaint(false);
TQButton::enterEvent(e);
}
@ -188,7 +188,7 @@ void HideButton::leaveEvent(TQEvent *e)
{
m_highlight = false;
tqrepaint(false);
repaint(false);
TQButton::enterEvent(e);
}

@ -145,7 +145,7 @@ void KMenuItem::setIcon(const TQString& icon, int size)
void KMenuItem::setHasChildren( bool flag )
{
m_has_children = flag;
tqrepaint();
repaint();
}
void KMenuItem::setup()
@ -197,7 +197,7 @@ void KMenuItem::paintCell(TQPainter* p, const TQColorGroup & cg, int column, int
else
listview->m_lastOne = static_cast<KMenuItem*>( itemBelow() );
listview->m_old_contentY = -1;
tqrepaint();
repaint();
}
}
}
@ -350,7 +350,7 @@ void KMenuItem::paintCellInter(TQPainter* p, const TQColorGroup & cg, int column
{
// the listview caches paint events
m_old_width = width;
tqrepaint();
repaint();
}
}
@ -975,7 +975,7 @@ void ItemView::viewportPaintEvent ( TQPaintEvent * pe )
if ( m_lastOne && m_old_contentY != contentsY() ) {
m_old_contentY = contentsY();
m_lastOne->tqrepaint();
m_lastOne->repaint();
}
}

@ -348,7 +348,7 @@ void PanelKMenu::initialize()
if (clients.count() > 0) {
TQIntDictIterator<KickerClientMenu> it(clients);
while (it){
if (it.current()->text.tqat(0) != '.')
if (it.current()->text.at(0) != '.')
insertItem(
it.current()->icon,
it.current()->text,
@ -419,10 +419,10 @@ void PanelKMenu::repairDisplay(void) {
displayRepairTimer->stop();
// Now do a nasty hack to prevent search bar merging into the side image
// This forces a layout/tqrepaint of the qpopupmenu
tqrepaint(); // This ensures that the side bar image was applied
// This forces a layout/repaint of the qpopupmenu
repaint(); // This ensures that the side bar image was applied
styleChange(tqstyle()); // This forces a call to the private function updateSize(TRUE) inside the qpopupmenu.
update(); // This repaints the entire popup menu to apply the widget size/tqalignment changes made above
update(); // This repaints the entire popup menu to apply the widget size/alignment changes made above
}
}

@ -1131,7 +1131,7 @@ void KMenu::fillMenu(KServiceGroup::Ptr&
}
// Ignore dotfiles.
if ((g->name().tqat(0) == '.'))
if ((g->name().at(0) == '.'))
{
continue;
}
@ -3625,7 +3625,7 @@ void KMenu::slotFavDropped(TQDropEvent * ev, TQListViewItem *after )
df.writeEntry("Encoding", "UTF-8");
df.writeEntry("Type","Link");
df.writeEntry("Name", item->name());
df.writeEntry("GenericName", i18n("Directory: %1").tqarg(kurl.upURL().path()));
df.writeEntry("GenericName", i18n("Directory: %1").arg(kurl.upURL().path()));
df.writeEntry("Icon", item->iconName());
df.writeEntry("URL", text);

@ -73,7 +73,7 @@
<property name="textFormat">
<enum>RichText</enum>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@ -102,7 +102,7 @@
<property name="textFormat">
<enum>RichText</enum>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@ -129,7 +129,7 @@
<property name="text">
<string></string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignTop|AlignHCenter</set>
</property>
</widget>

@ -87,9 +87,9 @@ void PanelRemoveAppletMenu::slotAboutToShow()
void PanelRemoveAppletMenu::slotExec(int id)
{
if (m_containers.tqat(id) != m_containers.end())
if (m_containers.at(id) != m_containers.end())
{
m_containerArea->removeContainer(*m_containers.tqat(id));
m_containerArea->removeContainer(*m_containers.at(id));
}
}

@ -95,9 +95,9 @@ void PanelRemoveButtonMenu::slotAboutToShow()
void PanelRemoveButtonMenu::slotExec( int id )
{
if (containers.tqat(id) != containers.end())
if (containers.at(id) != containers.end())
{
containerArea->removeContainer(*containers.tqat(id));
containerArea->removeContainer(*containers.at(id));
}
}

@ -100,9 +100,9 @@ void PanelRemoveExtensionMenu::slotExec( int id )
{
ExtensionManager::the()->removeAllContainers();
}
else if (m_containers.tqat(id) != m_containers.end())
else if (m_containers.at(id) != m_containers.end())
{
ExtensionManager::the()->removeContainer(*m_containers.tqat(id));
ExtensionManager::the()->removeContainer(*m_containers.at(id));
}
}

@ -281,7 +281,7 @@ void PanelServiceMenu::fillMenu(KServiceGroup::Ptr& _root,
}
// Ignore dotfiles.
if ((g->name().tqat(0) == '.'))
if ((g->name().at(0) == '.'))
{
continue;
}
@ -445,7 +445,7 @@ void PanelServiceMenu::insertMenuItem(KService::Ptr & s, int nId,
return;
// ignore dotfiles.
if ((serviceName.tqat(0) == '.'))
if ((serviceName.at(0) == '.'))
return;
// item names may contain ampersands. To avoid them being converted

@ -458,7 +458,7 @@ void KickerTip::tipperDestroyed(TQObject* o)
void KickerTip::internalUpdate()
{
m_dirty = true;
tqrepaint(false);
repaint(false);
}
void KickerTip::enableTipping(bool tip)

@ -438,7 +438,7 @@ void PanelButton::enterEvent(TQEvent* e)
if (!m_highlight && m_disableHighlighting == FALSE)
{
m_highlight = true;
tqrepaint(false);
repaint(false);
}
TQButton::enterEvent(e);
@ -449,7 +449,7 @@ void PanelButton::leaveEvent(TQEvent* e)
if (m_highlight)
{
m_highlight = false;
tqrepaint(false);
repaint(false);
}
TQButton::leaveEvent(e);
@ -558,7 +558,7 @@ void PanelButton::drawButton(TQPainter *p)
}
else if (isDown() || isOn())
{
// Draw tqshapes to indicate the down state.
// Draw shapes to indicate the down state.
tqstyle().tqdrawPrimitive(TQStyle::PE_Panel, p, rect(), colorGroup(), TQStyle::Style_Sunken);
}

@ -202,7 +202,7 @@ void SimpleButton::enterEvent( TQEvent *e )
if (KickerSettings::showMouseOverEffects())
m_highlight = true;
tqrepaint( false );
repaint( false );
TQButton::enterEvent( e );
}
@ -210,7 +210,7 @@ void SimpleButton::leaveEvent( TQEvent *e )
{
m_highlight = false;
tqrepaint( false );
repaint( false );
TQButton::enterEvent( e );
}

@ -185,7 +185,7 @@ void KonsoleMenu::initialize()
screenList.append(TQFile::decodeName(entry->d_name));
insertItem(SmallIconSet("konsole"),
i18n("Screen is a program controlling screens!",
"Screen at %1").tqarg(entry->d_name), id);
"Screen at %1").arg(entry->d_name), id);
id++;
}
}

@ -113,7 +113,7 @@ void PrefMenu::insertMenuItem(KService::Ptr& s,
}
// ignore dotfiles.
if ((serviceName.tqat(0) == '.'))
if ((serviceName.at(0) == '.'))
{
return;
}
@ -290,7 +290,7 @@ void PrefMenu::initialize()
}
// Ignore dotfiles.
if ((g->name().tqat(0) == '.'))
if ((g->name().at(0) == '.'))
{
continue;
}

@ -228,7 +228,7 @@ KPanelApplet* AppletProxy::loadApplet(const AppletInfo& info)
void AppletProxy::repaintApplet(TQWidget* widget)
{
widget->tqrepaint();
widget->repaint();
const TQObjectList children = widget->childrenListObject();
@ -375,11 +375,11 @@ bool AppletProxy::process(const TQCString &fun, const TQByteArray &data,
else if ( fun == "setAlignment(int)" )
{
TQDataStream dataStream( data, IO_ReadOnly );
int tqalignment;
dataStream >> tqalignment;
int alignment;
dataStream >> alignment;
if(_applet) {
_applet->setAlignment( (KPanelApplet::Alignment)tqalignment );
_applet->setAlignment( (KPanelApplet::Alignment)alignment );
}
return true;
}
@ -435,7 +435,7 @@ bool AppletProxy::process(const TQCString &fun, const TQByteArray &data,
if(_applet)
if ( _bg.isNull() ) { // no transparency
_applet->unsetPalette();
_applet->tqrepaint();
_applet->repaint();
}
else { //transparency
_applet->blockSignals(true);

@ -290,11 +290,11 @@ bool ExtensionProxy::process(const TQCString &fun, const TQByteArray &data,
else if ( fun == "setAlignment(int)" )
{
TQDataStream dataStream( data, IO_ReadOnly );
int tqalignment;
dataStream >> tqalignment;
int alignment;
dataStream >> alignment;
if(_extension) {
_extension->setAlignment( (KPanelExtension::Alignment)tqalignment );
_extension->setAlignment( (KPanelExtension::Alignment)alignment );
}
return true;
}

@ -1074,7 +1074,7 @@ void TaskBar::activateNextTask(bool forward)
TaskContainer::List::iterator it;
for (int i = 0; i < numContainers; ++i)
{
it = forward ? list.tqat(i) : list.tqat(numContainers - i - 1);
it = forward ? list.at(i) : list.at(numContainers - i - 1);
if (it != list.end() && (*it)->activateNextTask(forward, forcenext))
{
@ -1087,7 +1087,7 @@ void TaskBar::activateNextTask(bool forward)
// moving forward from the last, or backward from the first, loop around
for (int i = 0; i < numContainers; ++i)
{
it = forward ? list.tqat(i) : list.tqat(numContainers - i - 1);
it = forward ? list.at(i) : list.at(numContainers - i - 1);
if (it != list.end() && (*it)->activateNextTask(forward, forcenext))
{
@ -1101,7 +1101,7 @@ void TaskBar::activateNextTask(bool forward)
forcenext = true; // select first
for (int i = 0; i < numContainers; ++i)
{
it = forward ? list.tqat(i) : list.tqat(numContainers - i - 1);
it = forward ? list.at(i) : list.at(numContainers - i - 1);
if (it == list.end())
{

@ -233,9 +233,9 @@ void TaskContainer::setLastActivated()
void TaskContainer::animationTimerFired()
{
if (!frames.isEmpty() && taskBar->showIcon() && frames.tqat(currentFrame) != frames.end())
if (!frames.isEmpty() && taskBar->showIcon() && frames.at(currentFrame) != frames.end())
{
TQPixmap *pm = *frames.tqat(currentFrame);
TQPixmap *pm = *frames.at(currentFrame);
// draw pixmap
if ( pm && !pm->isNull() ) {
@ -477,7 +477,7 @@ void TaskContainer::paintEvent( TQPaintEvent* )
}
TQPainter p;
p.tqbegin(pm ,this);
p.begin(pm ,this);
drawButton(&p);
p.end();
@ -736,7 +736,7 @@ void TaskContainer::drawButton(TQPainter *p)
TQPaintDevice* opd = p->device();
p->end();
pm->convertFromImage(img);
p->tqbegin(opd ,this);
p->begin(opd ,this);
}
else
{
@ -754,9 +754,9 @@ void TaskContainer::drawButton(TQPainter *p)
}
}
if (!frames.isEmpty() && m_startup && frames.tqat(currentFrame) != frames.end())
if (!frames.isEmpty() && m_startup && frames.at(currentFrame) != frames.end())
{
TQPixmap *anim = *frames.tqat(currentFrame);
TQPixmap *anim = *frames.at(currentFrame);
if (anim && !anim->isNull())
{
@ -830,13 +830,13 @@ TQString TaskContainer::name()
// in common, and then use everything UP TO that as the name in the button
while (i < maxLength)
{
TQChar check = match.tqat(i).lower();
TQChar check = match.at(i).lower();
Task::List::iterator itEnd = m_filteredTasks.end();
for (Task::List::iterator it = m_filteredTasks.begin(); it != itEnd; ++it)
{
// we're doing a lot of Utf8 -> TQString conversions here
// by repeatedly calling visibleIconicName() =/
if (check != (*it)->visibleName().tqat(i).lower())
if (check != (*it)->visibleName().at(i).lower())
{
if (i > 0)
{
@ -856,7 +856,7 @@ TQString TaskContainer::name()
}
// strip trailing crap
while (i > 0 && !match.tqat(i).isLetterOrNumber())
while (i > 0 && !match.at(i).isLetterOrNumber())
{
--i;
}

@ -213,7 +213,7 @@ void TaskLMBMenu::dragMoveEvent( TQDragMoveEvent* e )
void TaskLMBMenu::dragSwitch()
{
bool ok = false;
Task::Ptr t = m_tasks.tqat(indexOf(m_lastDragId), &ok);
Task::Ptr t = m_tasks.at(indexOf(m_lastDragId), &ok);
if (ok)
{
t->activate();
@ -264,7 +264,7 @@ void TaskLMBMenu::mouseMoveEvent(TQMouseEvent* e)
if (index != -1)
{
bool ok = false;
Task::Ptr task = m_tasks.tqat(index, &ok);
Task::Ptr task = m_tasks.at(index, &ok);
if (ok)
{
Task::List tasks;

@ -1356,7 +1356,7 @@ TQPixmap Task::thumbnail(int maxDimension)
Picture picture = XRenderCreatePicture(dpy, m_windowPixmap, format,
CPSubwindowMode, &picAttr);
// Get tqshaped windows handled correctly.
// Get shaped windows handled correctly.
XserverRegion region = XFixesCreateRegionFromWindow(dpy, m_frameId,
WindowRegionBounding);
XFixesSetPictureClipRegion(dpy, picture, 0, 0, region);

@ -197,7 +197,7 @@ int LDAPProtocol::asyncSearch( LDAPUrl &usrc )
if ( count > 0 ) {
attrs = static_cast<char**>( malloc((count+1) * sizeof(char*)) );
for (int i=0; i<count; i++)
attrs[i] = strdup( (*usrc.attributes().tqat(i)).utf8() );
attrs[i] = strdup( (*usrc.attributes().at(i)).utf8() );
attrs[count] = 0;
}

@ -82,7 +82,7 @@ bool parseUrl(const TQString& _url, TQString &title, TQString &section)
section = TQString::null;
TQString url = _url;
if (url.tqat(0) == '/') {
if (url.at(0) == '/') {
if (KStandardDirs::exists(url)) {
title = url;
return true;
@ -93,7 +93,7 @@ bool parseUrl(const TQString& _url, TQString &title, TQString &section)
}
}
while (url.tqat(0) == '/')
while (url.at(0) == '/')
url.remove(0,1);
title = url;
@ -259,7 +259,7 @@ TQStringList MANProtocol::findPages(const TQString &_section,
TQStringList list;
// kdDebug() << "findPages '" << section << "' '" << title << "'\n";
if (title.tqat(0) == '/') {
if (title.at(0) == '/') {
list.append(title);
return list;
}
@ -279,7 +279,7 @@ TQStringList MANProtocol::findPages(const TQString &_section,
// Section given as argument
//
sect_list += section;
while (section.tqat(section.length() - 1).isLetter()) {
while (section.at(section.length() - 1).isLetter()) {
section.truncate(section.length() - 1);
sect_list += section;
}
@ -400,7 +400,7 @@ void MANProtocol::output(const char *insert)
{
m_outputBuffer.writeBlock(insert,strlen(insert));
}
if (!insert || m_outputBuffer.tqat() >= 2048)
if (!insert || m_outputBuffer.at() >= 2048)
{
m_outputBuffer.close();
data(m_outputBuffer.buffer());

@ -1905,7 +1905,7 @@ public:
return (index >= 0) && (index < (int)items.count());
}
TABLEITEM &at(int index) {
return *items.tqat(index);
return *items.at(index);
}
TABLEROW *copyLayout() const;

@ -140,7 +140,7 @@ bool KFileMediaPlugin::readInfo(KFileMetaInfo &info, uint /*what*/)
group = appendGroup(info, "mediumSummary");
appendItem(group, "percent", TQString("%1%").tqarg(percent));
appendItem(group, "percent", TQString("%1%").arg(percent));
TQPixmap bar(150, 20);
TQPainter p(&bar);

@ -70,7 +70,7 @@
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="tqalignment">
<property name="alignment">
<set>AlignTop</set>
</property>
</widget>
@ -109,7 +109,7 @@
<string>&lt;p&gt;&lt;b&gt;%1&lt;/b&gt; is an encrypted storage device.&lt;/p&gt;
&lt;p&gt;Please enter the password to decrypt the storage device.&lt;/p&gt;</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>
@ -189,7 +189,7 @@
<property name="text">
<string></string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignTop</set>
</property>
</widget>

@ -857,7 +857,7 @@ void POP3Protocol::get(const KURL & url)
TQString cmd, path = url.path();
int maxCommands = (metaData("pipelining") == "on") ? MAX_COMMANDS : 1;
if (path.tqat(0) == '/')
if (path.at(0) == '/')
path.remove(0, 1);
if (path.isEmpty()) {
POP3_DEBUG << "We should be a dir!!" << endl;
@ -1207,7 +1207,7 @@ void POP3Protocol::stat(const KURL & url)
{
TQString _path = url.path();
if (_path.tqat(0) == '/')
if (_path.at(0) == '/')
_path.remove(0, 1);
UDSEntry entry;
@ -1244,7 +1244,7 @@ void POP3Protocol::del(const KURL & url, bool /*isfile */ )
}
TQString _path = url.path();
if (_path.tqat(0) == '/') {
if (_path.at(0) == '/') {
_path.remove(0, 1);
}

@ -127,7 +127,7 @@ KServiceGroup::Ptr SettingsProtocol::findGroup(const TQString &relPath)
kdDebug() << "Trying harder to find group " << relPath << endl;
for (unsigned int i=0; i<rest.count(); i++)
kdDebug() << "Item (" << *rest.tqat(i) << ")" << endl;
kdDebug() << "Item (" << *rest.at(i) << ")" << endl;
while (!rest.isEmpty()) {
KServiceGroup::Ptr tmp = KServiceGroup::group(alreadyFound);
@ -251,7 +251,7 @@ void SettingsProtocol::listDir(const KURL& url)
continue;
// Ignore dotfiles.
if ((g->name().tqat(0) == '.'))
if ((g->name().at(0) == '.'))
continue;
TQString relPath = g->relPath();

@ -121,7 +121,7 @@ bool SMBSlave::checkPassword(SMBUrl &url)
int index = share.find('/', 1);
if (index > 1)
share = share.left(index);
if (share.tqat(0) == '/')
if (share.at(0) == '/')
share = share.mid(1);
info.url.setPath("/" + share);
info.verifyPath = true;

@ -199,7 +199,7 @@ KURL SMBSlave::checkURL(const KURL& kurl) const
if (surl.length() == 5) // just the above
return kurl; // unchanged
if (surl.tqat(5) != '/') {
if (surl.at(5) != '/') {
surl = "smb://" + surl.mid(5);
kdDebug(KIO_SMB) << "checkURL return1 " << surl << " " << KURL(surl) << endl;
return KURL(surl);
@ -349,7 +349,7 @@ void SMBSlave::listDir( const KURL& kurl )
TQString comment = TQString::fromUtf8( dirp->comment );
if ( dirp->smbc_type == SMBC_SERVER || dirp->smbc_type == SMBC_WORKGROUP ) {
atom.m_str = dirpName.lower();
atom.m_str.tqat( 0 ) = dirpName.tqat( 0 ).upper();
atom.m_str.at( 0 ) = dirpName.at( 0 ).upper();
if ( !comment.isEmpty() && dirp->smbc_type == SMBC_SERVER )
atom.m_str += " (" + comment + ")";
} else

@ -54,8 +54,8 @@ void SMBSlave::special( const TQByteArray & data)
TQString share,host;
if (sl.count()>=2)
{
host=(*sl.tqat(0)).mid(2);
share=(*sl.tqat(1));
host=(*sl.at(0)).mid(2);
share=(*sl.at(1));
kdDebug(KIO_SMB)<<"special() host -"<< host <<"- share -" << share <<"-"<<endl;
}

@ -504,7 +504,7 @@ void ArchiveProtocol::get( const KURL & url )
if ( !firstRead )
{
bufferSize = kMin( maxSize, fileSize );
buffer.tqresize( bufferSize, TQGArray::SpeedOptim );
buffer.resize( bufferSize, TQGArray::SpeedOptim );
}
const TQ_LONG read = io->readBlock( buffer.data(), buffer.size() ); // Avoid to use bufferSize here, in case something went wrong.
if ( read != bufferSize )

@ -158,13 +158,13 @@ bool TextCreator::create(const TQString &path, int width, int height, TQImage &i
}
// check for newlines in the text (unix,dos)
TQChar ch = text.tqat( i );
TQChar ch = text.at( i );
if ( ch == '\n' )
{
newLine = true;
continue;
}
else if ( ch == '\r' && text.tqat(i+1) == '\n' )
else if ( ch == '\r' && text.at(i+1) == '\n' )
{
newLine = true;
i++; // skip the next character (\n) as well

@ -53,7 +53,7 @@ HistoryItem* HistoryItem::create( const TQMimeSource& aSource )
if( KURLDrag::decode( &aSource, urls, metaData )) {
// this is from KonqDrag (libkonq)
TQByteArray a = aSource.encodedData( "application/x-kde-cutselection" );
bool cut = !a.isEmpty() && (a.tqat(0) == '1'); // true if 1
bool cut = !a.isEmpty() && (a.at(0) == '1'); // true if 1
return new HistoryURLItem( urls, metaData, cut );
}
}

@ -379,7 +379,7 @@ void URLGrabber::slotKillPopupMenu()
{
if ( myMenu && myMenu->isVisible() )
{
if ( myMenu->tqgeometry().contains( TQCursor::pos() ) &&
if ( myMenu->geometry().contains( TQCursor::pos() ) &&
myPopupKillTimeout > 0 )
{
myPopupKillTimer->start( 1000 * myPopupKillTimeout, true );

@ -145,7 +145,7 @@
<property name="text">
<string>Select the type of network folder you wish to connect to and press the Next button.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
@ -186,7 +186,7 @@
<property name="text">
<string>Enter a name for this &lt;i&gt;%1&lt;/i&gt; as well as the server address, port and folder path to use and press the Next button.</string>
</property>
<property name="tqalignment">
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>

@ -110,11 +110,11 @@ TQString KonqAboutPageFactory::launch()
TQString home_folder = TQDir::homeDirPath();
TQString continue_icon_path = TQApplication::reverseLayout()?iconloader->iconPath("1leftarrow", KIcon::Small ):iconloader->iconPath("1rightarrow", KIcon::Small );
res = res.tqarg( locate( "data", "tdeui/about/kde_infopage.css" ) );
res = res.arg( locate( "data", "tdeui/about/kde_infopage.css" ) );
if ( kapp->reverseLayout() )
res = res.tqarg( "@import \"%1\";" ).tqarg( locate( "data", "tdeui/about/kde_infopage_rtl.css" ) );
res = res.arg( "@import \"%1\";" ).arg( locate( "data", "tdeui/about/kde_infopage_rtl.css" ) );
else
res = res.tqarg( "" );
res = res.arg( "" );
// Try to split page in three. If it succeeds, insert the default search into the middle part.
TQStringList parts = TQStringList::split( "<!--search bar splitter-->", res );
@ -123,56 +123,56 @@ TQString KonqAboutPageFactory::launch()
config.setGroup( "General" );
TQString name = config.readEntry("DefaultSearchEngine");
KService::Ptr service =
KService::serviceByDesktopPath(TQString("searchproviders/%1.desktop").tqarg(name));
KService::serviceByDesktopPath(TQString("searchproviders/%1.desktop").arg(name));
if ( service ) {
TQString searchBar = parts[1];
searchBar = searchBar
.tqarg( iconSize ).tqarg( iconSize )
.tqarg( service->name() )
.tqarg( service->property("Keys").toStringList()[0] )
.arg( iconSize ).arg( iconSize )
.arg( service->name() )
.arg( service->property("Keys").toStringList()[0] )
;
res = parts[0] + searchBar + parts[2];
}
else res = parts[0] + parts[2];
}
res = res.tqarg( i18n("Conquer your Desktop!") )
.tqarg( i18n( "Konqueror" ) )
.tqarg( i18n("Conquer your Desktop!") )
.tqarg( i18n("Konqueror is your file manager, web browser and universal document viewer.") )
.tqarg( i18n( "Starting Points" ) )
.tqarg( i18n( "Introduction" ) )
.tqarg( i18n( "Tips" ) )
.tqarg( i18n( "Specifications" ) )
.tqarg( home_folder )
.tqarg( home_icon_path )
.tqarg(iconSize).tqarg(iconSize)
.tqarg( home_folder )
.tqarg( i18n( "Home Folder" ) )
.tqarg( i18n( "Your personal files" ) )
.tqarg( storage_icon_path )
.tqarg(iconSize).tqarg(iconSize)
.tqarg( i18n( "Storage Media" ) )
.tqarg( i18n( "Disks and removable media" ) )
.tqarg( remote_icon_path )
.tqarg(iconSize).tqarg(iconSize)
.tqarg( i18n( "Network Folders" ) )
.tqarg( i18n( "Shared files and folders" ) )
.tqarg( wastebin_icon_path )
.tqarg(iconSize).tqarg(iconSize)
.tqarg( i18n( "Trash" ) )
.tqarg( i18n( "Browse and restore the trash" ) )
.tqarg( applications_icon_path )
.tqarg(iconSize).tqarg(iconSize)
.tqarg( i18n( "Applications" ) )
.tqarg( i18n( "Installed programs" ) )
.tqarg( help_icon_path )
.tqarg(iconSize).tqarg(iconSize)
.tqarg( i18n( "About Kubuntu" ) )
.tqarg( i18n( "<a href=\"help:/kubuntu/\">Kubuntu Documentation</a>" ) )
.tqarg( continue_icon_path )
.tqarg( KIcon::SizeSmall ).tqarg( KIcon::SizeSmall )
.tqarg( i18n( "Next: An Introduction to Konqueror" ) )
res = res.arg( i18n("Conquer your Desktop!") )
.arg( i18n( "Konqueror" ) )
.arg( i18n("Conquer your Desktop!") )
.arg( i18n("Konqueror is your file manager, web browser and universal document viewer.") )
.arg( i18n( "Starting Points" ) )
.arg( i18n( "Introduction" ) )
.arg( i18n( "Tips" ) )
.arg( i18n( "Specifications" ) )
.arg( home_folder )
.arg( home_icon_path )
.arg(iconSize).arg(iconSize)
.arg( home_folder )
.arg( i18n( "Home Folder" ) )
.arg( i18n( "Your personal files" ) )
.arg( storage_icon_path )
.arg(iconSize).arg(iconSize)
.arg( i18n( "Storage Media" ) )
.arg( i18n( "Disks and removable media" ) )
.arg( remote_icon_path )
.arg(iconSize).arg(iconSize)
.arg( i18n( "Network Folders" ) )
.arg( i18n( "Shared files and folders" ) )
.arg( wastebin_icon_path )
.arg(iconSize).arg(iconSize)
.arg( i18n( "Trash" ) )
.arg( i18n( "Browse and restore the trash" ) )
.arg( applications_icon_path )
.arg(iconSize).arg(iconSize)
.arg( i18n( "Applications" ) )
.arg( i18n( "Installed programs" ) )
.arg( help_icon_path )
.arg(iconSize).arg(iconSize)
.arg( i18n( "About Kubuntu" ) )
.arg( i18n( "<a href=\"help:/kubuntu/\">Kubuntu Documentation</a>" ) )
.arg( continue_icon_path )
.arg( KIcon::SizeSmall ).arg( KIcon::SizeSmall )
.arg( i18n( "Next: An Introduction to Konqueror" ) )
;
i18n("Search the Web");//i18n for possible future use
@ -195,42 +195,42 @@ TQString KonqAboutPageFactory::intro()
TQString gohome_icon_path = iconloader->iconPath("gohome", KIcon::Small );
TQString continue_icon_path = TQApplication::reverseLayout()?iconloader->iconPath("1leftarrow", KIcon::Small ):iconloader->iconPath("1rightarrow", KIcon::Small );
res = res.tqarg( locate( "data", "tdeui/about/kde_infopage.css" ) );
res = res.arg( locate( "data", "tdeui/about/kde_infopage.css" ) );
if ( kapp->reverseLayout() )
res = res.tqarg( "@import \"%1\";" ).tqarg( locate( "data", "tdeui/about/kde_infopage_rtl.css" ) );
res = res.arg( "@import \"%1\";" ).arg( locate( "data", "tdeui/about/kde_infopage_rtl.css" ) );
else
res = res.tqarg( "" );
res = res.tqarg( i18n("Conquer your Desktop!") )
.tqarg( i18n( "Konqueror" ) )
.tqarg( i18n( "Conquer your Desktop!") )
.tqarg( i18n( "Konqueror is your file manager, web browser and universal document viewer.") )
.tqarg( i18n( "Starting Points" ) )
.tqarg( i18n( "Introduction" ) )
.tqarg( i18n( "Tips" ) )
.tqarg( i18n( "Specifications" ) )
.tqarg( i18n( "Konqueror makes working with and managing your files easy. You can browse "
res = res.arg( "" );
res = res.arg( i18n("Conquer your Desktop!") )
.arg( i18n( "Konqueror" ) )
.arg( i18n( "Conquer your Desktop!") )
.arg( i18n( "Konqueror is your file manager, web browser and universal document viewer.") )
.arg( i18n( "Starting Points" ) )
.arg( i18n( "Introduction" ) )
.arg( i18n( "Tips" ) )
.arg( i18n( "Specifications" ) )
.arg( i18n( "Konqueror makes working with and managing your files easy. You can browse "
"both local and networked folders while enjoying advanced features "
"such as the powerful sidebar and file previews."
) )
.tqarg( i18n( "Konqueror is also a full featured and easy to use web browser which you "
.arg( i18n( "Konqueror is also a full featured and easy to use web browser which you "
"can use to explore the Internet. "
"Enter the address (e.g. <a href=\"http://www.kde.org\">http://www.kde.org</A>) "
"of a web page you would like to visit in the location bar and press Enter, "
"or choose an entry from the Bookmarks menu.") )
.tqarg( i18n( "To return to the previous "
.arg( i18n( "To return to the previous "
"location, press the back button <img width='16' height='16' src=\"%1\"> "
"in the toolbar. ").tqarg( back_icon_path ) )
.tqarg( i18n( "To quickly go to your Home folder press the "
" home button <img width='16' height='16' src=\"%1\">." ).tqarg(gohome_icon_path) )
.tqarg( i18n( "For more detailed documentation on Konqueror click <a href=\"%1\">here</a>." )
.tqarg("exec:/khelpcenter") )
.tqarg( i18n( "<em>Tuning Tip:</em> If you want the Konqueror web browser to start faster,"
"in the toolbar. ").arg( back_icon_path ) )
.arg( i18n( "To quickly go to your Home folder press the "
" home button <img width='16' height='16' src=\"%1\">." ).arg(gohome_icon_path) )
.arg( i18n( "For more detailed documentation on Konqueror click <a href=\"%1\">here</a>." )
.arg("exec:/khelpcenter") )
.arg( i18n( "<em>Tuning Tip:</em> If you want the Konqueror web browser to start faster,"
" you can turn off this information screen by clicking <a href=\"%1\">here</a>. You can re-enable it"
" by choosing the Help -> Konqueror Introduction menu option, and then pressing "
"Settings -> Save View Profile \"Web Browsing\".").tqarg("config:/disable_overview") )
.tqarg( "<img width='16' height='16' src=\"%1\">" ).tqarg( continue_icon_path )
.tqarg( i18n( "Next: Tips &amp; Tricks" ) )
"Settings -> Save View Profile \"Web Browsing\".").arg("config:/disable_overview") )
.arg( "<img width='16' height='16' src=\"%1\">" ).arg( continue_icon_path )
.arg( i18n( "Next: Tips &amp; Tricks" ) )
;
@ -250,69 +250,69 @@ TQString KonqAboutPageFactory::specs()
if ( res.isEmpty() )
return res;
res = res.tqarg( locate( "data", "tdeui/about/kde_infopage.css" ) );
res = res.arg( locate( "data", "tdeui/about/kde_infopage.css" ) );
if ( kapp->reverseLayout() )
res = res.tqarg( "@import \"%1\";" ).tqarg( locate( "data", "tdeui/about/kde_infopage_rtl.css" ) );
res = res.arg( "@import \"%1\";" ).arg( locate( "data", "tdeui/about/kde_infopage_rtl.css" ) );
else
res = res.tqarg( "" );
res = res.tqarg( i18n("Conquer your Desktop!") )
.tqarg( i18n( "Konqueror" ) )
.tqarg( i18n("Conquer your Desktop!") )
.tqarg( i18n("Konqueror is your file manager, web browser and universal document viewer.") )
.tqarg( i18n( "Starting Points" ) )
.tqarg( i18n( "Introduction" ) )
.tqarg( i18n( "Tips" ) )
.tqarg( i18n( "Specifications" ) )
.tqarg( i18n("Specifications") )
.tqarg( i18n("Konqueror is designed to embrace and support Internet standards. "
res = res.arg( "" );
res = res.arg( i18n("Conquer your Desktop!") )
.arg( i18n( "Konqueror" ) )
.arg( i18n("Conquer your Desktop!") )
.arg( i18n("Konqueror is your file manager, web browser and universal document viewer.") )
.arg( i18n( "Starting Points" ) )
.arg( i18n( "Introduction" ) )
.arg( i18n( "Tips" ) )
.arg( i18n( "Specifications" ) )
.arg( i18n("Specifications") )
.arg( i18n("Konqueror is designed to embrace and support Internet standards. "
"The aim is to fully implement the officially sanctioned standards "
"from organizations such as the W3 and OASIS, while also adding "
"extra support for other common usability features that arise as "
"de facto standards across the Internet. Along with this support, "
"for such functions as favicons, Internet Keywords, and <A HREF=\"%1\">XBEL bookmarks</A>, "
"Konqueror also implements:").tqarg("http://pyxml.sourceforge.net/topics/xbel/") )
.tqarg( i18n("Web Browsing") )
.tqarg( i18n("Supported standards") )
.tqarg( i18n("Additional requirements*") )
.tqarg( i18n("<A HREF=\"%1\">DOM</A> (Level 1, partially Level 2) based "
"<A HREF=\"%2\">HTML 4.01</A>").tqarg("http://www.w3.org/DOM").tqarg("http://www.w3.org/TR/html4/") )
.tqarg( i18n("built-in") )
.tqarg( i18n("<A HREF=\"%1\">Cascading Style Sheets</A> (CSS 1, partially CSS 2)").tqarg("http://www.w3.org/Style/CSS/") )
.tqarg( i18n("built-in") )
.tqarg( i18n("<A HREF=\"%1\">ECMA-262</A> Edition 3 (roughly equals JavaScript 1.5)").tqarg("http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM") )
.tqarg( i18n("JavaScript disabled (globally). Enable JavaScript <A HREF=\"%1\">here</A>.").tqarg("exec:/kcmshell khtml_java_js") )
.tqarg( i18n("JavaScript enabled (globally). Configure JavaScript <A HREF=\\\"%1\\\">here</A>.").tqarg("exec:/kcmshell khtml_java_js") ) // leave the double backslashes here, they are necessary for javascript !
.tqarg( i18n("Secure <A HREF=\"%1\">Java</A><SUP>&reg;</SUP> support").tqarg("http://java.sun.com") )
.tqarg( i18n("JDK 1.2.0 (Java 2) compatible VM (<A HREF=\"%1\">Blackdown</A>, <A HREF=\"%2\">IBM</A> or <A HREF=\"%3\">Sun</A>)")
.tqarg("http://www.blackdown.org").tqarg("http://www.ibm.com").tqarg("http://java.sun.com") )
.tqarg( i18n("Enable Java (globally) <A HREF=\"%1\">here</A>.").tqarg("exec:/kcmshell khtml_java_js") ) // TODO Maybe test if Java is enabled ?
.tqarg( i18n("Netscape Communicator<SUP>&reg;</SUP> <A HREF=\"%4\">plugins</A> (for viewing <A HREF=\"%1\">Flash<SUP>&reg;</SUP></A>, <A HREF=\"%2\">Real<SUP>&reg;</SUP></A>Audio, <A HREF=\"%3\">Real<SUP>&reg;</SUP></A>Video, etc.)")
.tqarg("http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash")
.tqarg("http://www.real.com").tqarg("http://www.real.com")
.tqarg("about:plugins") )
.tqarg( i18n("built-in") )
.tqarg( i18n("Secure Sockets Layer") )
.tqarg( i18n("(TLS/SSL v2/3) for secure communications up to 168bit") )
.tqarg( i18n("OpenSSL") )
.tqarg( i18n("Bidirectional 16bit tqunicode support") )
.tqarg( i18n("built-in") )
.tqarg( i18n("AutoCompletion for forms") )
.tqarg( i18n("built-in") )
.tqarg( i18n("G E N E R A L") )
.tqarg( i18n("Feature") )
.tqarg( i18n("Details") )
.tqarg( i18n("Image formats") )
.tqarg( i18n("Transfer protocols") )
.tqarg( i18n("HTTP 1.1 (including gzip/bzip2 compression)") )
.tqarg( i18n("FTP") )
.tqarg( i18n("and <A HREF=\"%1\">many more...</A>").tqarg("exec:/kcmshell ioslaveinfo") )
.tqarg( i18n("URL-Completion") )
.tqarg( i18n("Manual"))
.tqarg( i18n("Popup"))
.tqarg( i18n("(Short-) Automatic"))
.tqarg( "<img width='16' height='16' src=\"%1\">" ).tqarg( continue_icon_path )
.tqarg( i18n("<a href=\"%1\">Return to Starting Points</a>").tqarg("launch.html") )
"Konqueror also implements:").arg("http://pyxml.sourceforge.net/topics/xbel/") )
.arg( i18n("Web Browsing") )
.arg( i18n("Supported standards") )
.arg( i18n("Additional requirements*") )
.arg( i18n("<A HREF=\"%1\">DOM</A> (Level 1, partially Level 2) based "
"<A HREF=\"%2\">HTML 4.01</A>").arg("http://www.w3.org/DOM").arg("http://www.w3.org/TR/html4/") )
.arg( i18n("built-in") )
.arg( i18n("<A HREF=\"%1\">Cascading Style Sheets</A> (CSS 1, partially CSS 2)").arg("http://www.w3.org/Style/CSS/") )
.arg( i18n("built-in") )
.arg( i18n("<A HREF=\"%1\">ECMA-262</A> Edition 3 (roughly equals JavaScript 1.5)").arg("http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM") )
.arg( i18n("JavaScript disabled (globally). Enable JavaScript <A HREF=\"%1\">here</A>.").arg("exec:/kcmshell khtml_java_js") )
.arg( i18n("JavaScript enabled (globally). Configure JavaScript <A HREF=\\\"%1\\\">here</A>.").arg("exec:/kcmshell khtml_java_js") ) // leave the double backslashes here, they are necessary for javascript !
.arg( i18n("Secure <A HREF=\"%1\">Java</A><SUP>&reg;</SUP> support").arg("http://java.sun.com") )
.arg( i18n("JDK 1.2.0 (Java 2) compatible VM (<A HREF=\"%1\">Blackdown</A>, <A HREF=\"%2\">IBM</A> or <A HREF=\"%3\">Sun</A>)")
.arg("http://www.blackdown.org").arg("http://www.ibm.com").arg("http://java.sun.com") )
.arg( i18n("Enable Java (globally) <A HREF=\"%1\">here</A>.").arg("exec:/kcmshell khtml_java_js") ) // TODO Maybe test if Java is enabled ?
.arg( i18n("Netscape Communicator<SUP>&reg;</SUP> <A HREF=\"%4\">plugins</A> (for viewing <A HREF=\"%1\">Flash<SUP>&reg;</SUP></A>, <A HREF=\"%2\">Real<SUP>&reg;</SUP></A>Audio, <A HREF=\"%3\">Real<SUP>&reg;</SUP></A>Video, etc.)")
.arg("http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash")
.arg("http://www.real.com").arg("http://www.real.com")
.arg("about:plugins") )
.arg( i18n("built-in") )
.arg( i18n("Secure Sockets Layer") )
.arg( i18n("(TLS/SSL v2/3) for secure communications up to 168bit") )
.arg( i18n("OpenSSL") )
.arg( i18n("Bidirectional 16bit tqunicode support") )
.arg( i18n("built-in") )
.arg( i18n("AutoCompletion for forms") )
.arg( i18n("built-in") )
.arg( i18n("G E N E R A L") )
.arg( i18n("Feature") )
.arg( i18n("Details") )
.arg( i18n("Image formats") )
.arg( i18n("Transfer protocols") )
.arg( i18n("HTTP 1.1 (including gzip/bzip2 compression)") )
.arg( i18n("FTP") )
.arg( i18n("and <A HREF=\"%1\">many more...</A>").arg("exec:/kcmshell ioslaveinfo") )
.arg( i18n("URL-Completion") )
.arg( i18n("Manual"))
.arg( i18n("Popup"))
.arg( i18n("(Short-) Automatic"))
.arg( "<img width='16' height='16' src=\"%1\">" ).arg( continue_icon_path )
.arg( i18n("<a href=\"%1\">Return to Starting Points</a>").arg("launch.html") )
;
@ -347,57 +347,57 @@ TQString KonqAboutPageFactory::tips()
iconloader->iconPath("view_left_right", KIcon::Small );
TQString continue_icon_path = TQApplication::reverseLayout()?iconloader->iconPath("1leftarrow", KIcon::Small ):iconloader->iconPath("1rightarrow", KIcon::Small );
res = res.tqarg( locate( "data", "tdeui/about/kde_infopage.css" ) );
res = res.arg( locate( "data", "tdeui/about/kde_infopage.css" ) );
if ( kapp->reverseLayout() )
res = res.tqarg( "@import \"%1\";" ).tqarg( locate( "data", "tdeui/about/kde_infopage_rtl.css" ) );
res = res.arg( "@import \"%1\";" ).arg( locate( "data", "tdeui/about/kde_infopage_rtl.css" ) );
else
res = res.tqarg( "" );
res = res.tqarg( i18n("Conquer your Desktop!") )
.tqarg( i18n( "Konqueror" ) )
.tqarg( i18n("Conquer your Desktop!") )
.tqarg( i18n("Konqueror is your file manager, web browser and universal document viewer.") )
.tqarg( i18n( "Starting Points" ) )
.tqarg( i18n( "Introduction" ) )
.tqarg( i18n( "Tips" ) )
.tqarg( i18n( "Specifications" ) )
.tqarg( i18n( "Tips &amp; Tricks" ) )
.tqarg( i18n( "Use Internet-Keywords and Web-Shortcuts: by typing \"gg: KDE\" one can search the Internet, "
res = res.arg( "" );
res = res.arg( i18n("Conquer your Desktop!") )
.arg( i18n( "Konqueror" ) )
.arg( i18n("Conquer your Desktop!") )
.arg( i18n("Konqueror is your file manager, web browser and universal document viewer.") )
.arg( i18n( "Starting Points" ) )
.arg( i18n( "Introduction" ) )
.arg( i18n( "Tips" ) )
.arg( i18n( "Specifications" ) )
.arg( i18n( "Tips &amp; Tricks" ) )
.arg( i18n( "Use Internet-Keywords and Web-Shortcuts: by typing \"gg: KDE\" one can search the Internet, "
"using Google, for the search phrase \"KDE\". There are a lot of "
"Web-Shortcuts predefined to make searching for software or looking "
"up certain words in an encyclopedia a breeze. You can even "
"<a href=\"%1\">create your own</a> Web-Shortcuts." ).tqarg("exec:/kcmshell ebrowsing") )
.tqarg( i18n( "Use the magnifier button <img width='16' height='16' src=\"%1\"> in the"
" toolbar to increase the font size on your web page.").tqarg(viewmag_icon_path) )
.tqarg( i18n( "When you want to paste a new address into the Location toolbar you might want to "
"<a href=\"%1\">create your own</a> Web-Shortcuts." ).arg("exec:/kcmshell ebrowsing") )
.arg( i18n( "Use the magnifier button <img width='16' height='16' src=\"%1\"> in the"
" toolbar to increase the font size on your web page.").arg(viewmag_icon_path) )
.arg( i18n( "When you want to paste a new address into the Location toolbar you might want to "
"clear the current entry by pressing the black arrow with the white cross "
"<img width='16' height='16' src=\"%1\"> in the toolbar.")
.tqarg(TQApplication::reverseLayout() ? locationbar_erase_rtl_icon_path : locationbar_erase_icon_path))
.tqarg( i18n( "To create a link on your desktop pointing to the current page, "
.arg(TQApplication::reverseLayout() ? locationbar_erase_rtl_icon_path : locationbar_erase_icon_path))
.arg( i18n( "To create a link on your desktop pointing to the current page, "
"simply drag the \"Location\" label that is to the left of the Location toolbar, drop it on to "
"the desktop, and choose \"Link\"." ) )
.tqarg( i18n( "You can also find <img width='16' height='16' src=\"%1\"> \"Full-Screen Mode\" "
.arg( i18n( "You can also find <img width='16' height='16' src=\"%1\"> \"Full-Screen Mode\" "
"in the Settings menu. This feature is very useful for \"Talk\" "
"sessions.").tqarg(window_fullscreen_icon_path) )
.tqarg( i18n( "Divide et impera (lat. \"Divide and conquer\") - by splitting a window "
"sessions.").arg(window_fullscreen_icon_path) )
.arg( i18n( "Divide et impera (lat. \"Divide and conquer\") - by splitting a window "
"into two parts (e.g. Window -> <img width='16' height='16' src=\"%1\"> Split View "
"Left/Right) you can make Konqueror appear the way you like. You"
" can even load some example view-profiles (e.g. Midnight Commander)"
", or create your own ones." ).tqarg(view_left_right_icon_path))
.tqarg( i18n( "Use the <a href=\"%1\">user-agent</a> feature if the website you are visiting "
", or create your own ones." ).arg(view_left_right_icon_path))
.arg( i18n( "Use the <a href=\"%1\">user-agent</a> feature if the website you are visiting "
"asks you to use a different browser "
"(and do not forget to send a complaint to the webmaster!)" ).tqarg("exec:/kcmshell useragent") )
.tqarg( i18n( "The <img width='16' height='16' src=\"%1\"> History in your SideBar ensures "
"that you can keep track of the pages you have visited recently.").tqarg(history_icon_path) )
.tqarg( i18n( "Use a caching <a href=\"%1\">proxy</a> to speed up your"
" Internet connection.").tqarg("exec:/kcmshell proxy") )
.tqarg( i18n( "Advanced users will appreciate the Konsole which you can embed into "
"(and do not forget to send a complaint to the webmaster!)" ).arg("exec:/kcmshell useragent") )
.arg( i18n( "The <img width='16' height='16' src=\"%1\"> History in your SideBar ensures "
"that you can keep track of the pages you have visited recently.").arg(history_icon_path) )
.arg( i18n( "Use a caching <a href=\"%1\">proxy</a> to speed up your"
" Internet connection.").arg("exec:/kcmshell proxy") )
.arg( i18n( "Advanced users will appreciate the Konsole which you can embed into "
"Konqueror (Window -> <img width='16' height='16' SRC=\"%1\"> Show "
"Terminal Emulator).").tqarg(openterm_icon_path))
.tqarg( i18n( "Thanks to <a href=\"%1\">DCOP</a> you can have full control over Konqueror using a script."
).tqarg("exec:/kdcop") )
.tqarg( i18n( "<img width='16' height='16' src=\"%1\">" ).tqarg( continue_icon_path ) )
.tqarg( i18n( "Next: Specifications" ) )
"Terminal Emulator).").arg(openterm_icon_path))
.arg( i18n( "Thanks to <a href=\"%1\">DCOP</a> you can have full control over Konqueror using a script."
).arg("exec:/kdcop") )
.arg( i18n( "<img width='16' height='16' src=\"%1\">" ).arg( continue_icon_path ) )
.arg( i18n( "Next: Specifications" ) )
;
@ -413,10 +413,10 @@ TQString KonqAboutPageFactory::plugins()
return *s_plugins_html;
TQString res = loadFile( locate( "data", kapp->reverseLayout() ? "konqueror/about/plugins_rtl.html" : "konqueror/about/plugins.html" ))
.tqarg(i18n("Installed Plugins"))
.tqarg(i18n("<td>Plugin</td><td>Description</td><td>File</td><td>Types</td>"))
.tqarg(i18n("Installed"))
.tqarg(i18n("<td>Mime Type</td><td>Description</td><td>Suffixes</td><td>Plugin</td>"));
.arg(i18n("Installed Plugins"))
.arg(i18n("<td>Plugin</td><td>Description</td><td>File</td><td>Types</td>"))
.arg(i18n("Installed"))
.arg(i18n("<td>Mime Type</td><td>Description</td><td>Suffixes</td><td>Plugin</td>"));
if ( res.isEmpty() )
return res;
@ -489,7 +489,7 @@ void KonqAboutPage::restoreState( TQDataStream &stream )
void KonqAboutPage::serve( const TQString& html, const TQString& what )
{
m_what = what;
begin( KURL( TQString("about:%1").tqarg(what) ) );
begin( KURL( TQString("about:%1").arg(what) ) );
write( html );
end();
m_htmlDoc = html;

@ -404,7 +404,7 @@ bool clientApp::openProfile( const TQString & profileName, const TQString & url,
TQString profile = locate( "data", TQString::fromLatin1("konqueror/profiles/") + profileName );
if ( profile.isEmpty() )
{
fprintf( stderr, "%s", i18n("Profile %1 not found\n").tqarg(profileName).local8Bit().data() );
fprintf( stderr, "%s", i18n("Profile %1 not found\n").arg(profileName).local8Bit().data() );
::exit( 0 );
}
KonquerorIface_stub konqy( appId, "KonquerorIface" );
@ -630,7 +630,7 @@ bool clientApp::doIt()
}
else
{
fprintf( stderr, "%s", i18n("Syntax Error: Unknown command '%1'\n").tqarg(TQString::fromLocal8Bit(command)).local8Bit().data() );
fprintf( stderr, "%s", i18n("Syntax Error: Unknown command '%1'\n").arg(TQString::fromLocal8Bit(command)).local8Bit().data() );
return false;
}
return true;

@ -206,7 +206,7 @@ KonqKfmIconView::KonqKfmIconView( TQWidget *parentWidget, TQObject *parent, cons
setXMLFile( "konq_iconview.rc" );
// Don't tqrepaint on configuration changes during construction
// Don't repaint on configuration changes during construction
m_bInit = true;
m_paDotFiles = new KToggleAction( i18n( "Show &Hidden Files" ), 0, this, TQT_SLOT( slotShowDot() ),
@ -686,7 +686,7 @@ void KonqKfmIconView::newIconSize( int size )
// Stop a preview job that might be running
m_pIconView->stopImagePreview();
// Set icons size, arrage items in grid and tqrepaint the whole view
// Set icons size, arrage items in grid and repaint the whole view
m_pIconView->setIcons( size );
// If previews are enabled start a new job
@ -873,7 +873,7 @@ void KonqKfmIconView::slotCanceled( const KURL& url )
if ( !m_pIconView->viewport()->isUpdatesEnabled() )
{
m_pIconView->viewport()->setUpdatesEnabled( true );
m_pIconView->viewport()->tqrepaint();
m_pIconView->viewport()->repaint();
}
if ( m_pEnsureVisible ){
m_pIconView->ensureItemVisible( m_pEnsureVisible );
@ -889,11 +889,11 @@ void KonqKfmIconView::slotCompleted()
m_pTimeoutRefreshTimer->stop();
// If updates to the viewport are still blocked (so slotNewItems() has
// not been called), a viewport tqrepaint is forced.
// not been called), a viewport repaint is forced.
if ( !m_pIconView->viewport()->isUpdatesEnabled() )
{
m_pIconView->viewport()->setUpdatesEnabled( true );
m_pIconView->viewport()->tqrepaint();
m_pIconView->viewport()->repaint();
}
// Root item ? Store root item in konqiconviewwidget (whether 0L or not)
@ -1136,7 +1136,7 @@ void KonqKfmIconView::slotRefreshItems( const KFileItemList& entries )
}
else
{
// In case we replace a big icon with a small one, need to tqrepaint.
// In case we replace a big icon with a small one, need to repaint.
if ( bNeedRepaint )
m_pIconView->updateContents();
}
@ -1248,7 +1248,7 @@ void KonqKfmIconView::slotRefreshViewport()
TQWidget * vp = m_pIconView->viewport();
bool prevState = vp->isUpdatesEnabled();
vp->setUpdatesEnabled( true );
vp->tqrepaint();
vp->repaint();
vp->setUpdatesEnabled( prevState );
}

@ -218,7 +218,7 @@ void CreateCommand::unexecute() {
KBookmark bk = CurrentMgr::bookmarkAt(m_to);
Q_ASSERT(!bk.isNull() && !bk.parentGroup().isNull());
ListView::self()->tqinvalidate(bk.address());
ListView::self()->invalidate(bk.address());
bk.parentGroup().deleteBookmark(bk);
}

@ -158,12 +158,12 @@ TQValueList<KBookmark> ListView::itemsToBookmarks(const TQValueVector<KEBListVie
return bookmarks;
}
void ListView::tqinvalidate(const TQString & address)
void ListView::invalidate(const TQString & address)
{
tqinvalidate(getItemAtAddress(address));
invalidate(getItemAtAddress(address));
}
void ListView::tqinvalidate(TQListViewItem * item)
void ListView::invalidate(TQListViewItem * item)
{
if(item->isSelected())
{
@ -181,7 +181,7 @@ void ListView::tqinvalidate(TQListViewItem * item)
TQListViewItem * child = item->firstChild();
while(child)
{
//tqinvalidate(child);
//invalidate(child);
child = child->nextSibling();
}
}
@ -277,7 +277,7 @@ void ListView::deselectAllChildren(KEBListViewItem *item)
else
deselectAllChildren(child);
}
child->tqrepaint();
child->repaint();
child = static_cast<KEBListViewItem *>(child->nextSibling());
}
}

@ -56,7 +56,7 @@ public:
void setTmpStatus(const TQString &);
void restoreStatus();
void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment);
void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment);
void setSelected ( bool s );
virtual void setOpen(bool);
@ -140,8 +140,8 @@ public:
// selected item stuff
void selected(KEBListViewItem * item, bool s);
void tqinvalidate(const TQString & address);
void tqinvalidate(TQListViewItem * item);
void invalidate(const TQString & address);
void invalidate(TQListViewItem * item);
void fixUpCurrent(const TQString & address);
KEBListViewItem * firstSelected() const;

@ -48,12 +48,12 @@ void KonqBidiHistoryAction::fillHistoryPopup( const TQPtrList<HistoryEntry> &his
{
assert ( popup ); // kill me if this 0... :/
//kdDebug(1202) << "fillHistoryPopup position: " << history.tqat() << endl;
//kdDebug(1202) << "fillHistoryPopup position: " << history.at() << endl;
HistoryEntry * current = history.current();
TQPtrListIterator<HistoryEntry> it( history );
if (onlyBack || onlyForward)
{
it += history.tqat(); // Jump to current item
it += history.at(); // Jump to current item
if ( !onlyForward ) --it; else ++it; // And move off it
} else if ( startPos )
it += startPos; // Jump to specified start pos
@ -75,7 +75,7 @@ void KonqBidiHistoryAction::fillHistoryPopup( const TQPtrList<HistoryEntry> &his
break;
if ( !onlyForward ) --it; else ++it;
}
//kdDebug(1202) << "After fillHistoryPopup position: " << history.tqat() << endl;
//kdDebug(1202) << "After fillHistoryPopup position: " << history.at() << endl;
}
///////////////////////////////
@ -116,7 +116,7 @@ void KonqBidiHistoryAction::fillGoMenu( const TQPtrList<HistoryEntry> & history
if (history.isEmpty())
return; // nothing to do
//kdDebug(1202) << "fillGoMenu position: " << history.tqat() << endl;
//kdDebug(1202) << "fillGoMenu position: " << history.at() << endl;
if ( m_firstIndex == 0 ) // should never happen since done in plug
m_firstIndex = m_goMenu->count();
else
@ -136,10 +136,10 @@ void KonqBidiHistoryAction::fillGoMenu( const TQPtrList<HistoryEntry> & history
// Second case: big history, in one or both directions
{
// Assume both directions first (in this case we place the current URL in the middle)
m_startPos = history.tqat() + 4;
m_startPos = history.at() + 4;
// Forward not big enough ?
if ( history.tqat() > (int)history.count() - 4 )
if ( history.at() > (int)history.count() - 4 )
m_startPos = history.count() - 1;
}
Q_ASSERT( m_startPos >= 0 && (uint)m_startPos < history.count() );
@ -148,7 +148,7 @@ void KonqBidiHistoryAction::fillGoMenu( const TQPtrList<HistoryEntry> & history
kdWarning() << "m_startPos=" << m_startPos << " history.count()=" << history.count() << endl;
return;
}
m_currentPos = history.tqat(); // for slotActivated
m_currentPos = history.at(); // for slotActivated
KonqBidiHistoryAction::fillHistoryPopup( history, m_goMenu, false, false, true, m_startPos );
}
@ -444,7 +444,7 @@ void KonqMostOftenURLSAction::slotFillMenu()
m_popupList.clear();
int id = s_mostEntries->count() -1;
KonqHistoryEntry *entry = s_mostEntries->tqat( id );
KonqHistoryEntry *entry = s_mostEntries->at( id );
while ( entry ) {
// we take either title, typedURL or URL (in this order)
TQString text = entry->title.isEmpty() ? (entry->typedURL.isEmpty() ?
@ -459,7 +459,7 @@ void KonqMostOftenURLSAction::slotFillMenu()
// This prevents crashes when another process tells us to remove an entry.
m_popupList.prepend( entry->url );
entry = (id > 0) ? s_mostEntries->tqat( --id ) : 0L;
entry = (id > 0) ? s_mostEntries->at( --id ) : 0L;
}
setEnabled( !s_mostEntries->isEmpty() );
Q_ASSERT( s_mostEntries->count() == m_popupList.count() );

@ -62,7 +62,7 @@ signals:
private:
uint m_firstIndex; // first index in the Go menu
int m_startPos;
int m_currentPos; // == history.tqat()
int m_currentPos; // == history.at()
TQPopupMenu *m_goMenu; // hack
};

@ -307,7 +307,7 @@ void KonqCombo::updatePixmaps()
updateItem( prov->pixmapFor( text( i ) ), text( i ), i, titleOfURL( text( i ) ) );
}
setUpdatesEnabled( true );
tqrepaint();
repaint();
restoreState();
}
@ -646,7 +646,7 @@ void KonqCombo::paintEvent( TQPaintEvent *pe )
void KonqCombo::setPageSecurity( int pageSecurity )
{
m_pageSecurity = pageSecurity;
tqrepaint();
repaint();
}
bool KonqCombo::hasSufficientContrast(const TQColor &c1, const TQColor &c2)
@ -850,7 +850,7 @@ void KonqComboCompletionBox::setItems( const TQStringList& items )
insertStringList( items );
else {
//Keep track of whether we need to change anything,
//so we can avoid a tqrepaint for identical updates,
//so we can avoid a repaint for identical updates,
//to reduce flicker
bool dirty = false;

@ -352,8 +352,8 @@ void KonqFrame::printFrameInfo( const TQString& spaces )
{
TQString className = "NoPart";
if (part()) className = part()->widget()->className();
kdDebug(1202) << spaces << "KonqFrame " << this << " visible=" << TQString("%1").tqarg(isVisible()) << " containing view "
<< childView() << " visible=" << TQString("%1").tqarg(isVisible())
kdDebug(1202) << spaces << "KonqFrame " << this << " visible=" << TQString("%1").arg(isVisible()) << " containing view "
<< childView() << " visible=" << TQString("%1").arg(isVisible())
<< " and part " << part() << " whose widget is a " << className << endl;
}
@ -463,7 +463,7 @@ KonqFrame::paintEvent( TQPaintEvent* )
#ifdef USE_QT4
#warning [INFO] Repaint call disabled in Qt4 to prevent recursive repaint (which otherwise occurs for unknown reasons)
#else // USE_QT4
m_pStatusBar->tqrepaint();
m_pStatusBar->repaint();
#endif // USE_QT4
}
@ -580,7 +580,7 @@ KonqFrameBase* KonqFrameContainer::otherChild( KonqFrameBase* child )
void KonqFrameContainer::printFrameInfo( const TQString& spaces )
{
kdDebug(1202) << spaces << "KonqFrameContainer " << this << " visible=" << TQString("%1").tqarg(isVisible())
kdDebug(1202) << spaces << "KonqFrameContainer " << this << " visible=" << TQString("%1").arg(isVisible())
<< " activeChild=" << m_pActiveChild << endl;
if (!m_pActiveChild)
kdDebug(1202) << "WARNING: " << this << " has a null active child!" << endl;

@ -191,7 +191,7 @@ ToggleViewGUIClient::ToggleViewGUIClient( KonqMainWindow *mainWindow )
TQString name = (*cIt)->desktopEntryName();
//kdDebug(1202) << "ToggleViewGUIClient: name=" << name << endl;
KToggleAction *action = new KToggleAction( description, 0, mainWindow->actionCollection(), name.latin1() );
action->setCheckedState( i18n( "Hide %1" ).tqarg( (*cIt)->name() ) );
action->setCheckedState( i18n( "Hide %1" ).arg( (*cIt)->name() ) );
// HACK
if ( (*cIt)->icon() != "unknown" )

@ -218,14 +218,14 @@ void KonqFrameTabs::copyHistory( KonqFrameBase *other )
for (uint i = 0; i < m_pChildFrameList->count(); i++ )
{
m_pChildFrameList->tqat(i)->copyHistory( static_cast<KonqFrameTabs *>( other )->m_pChildFrameList->tqat(i) );
m_pChildFrameList->at(i)->copyHistory( static_cast<KonqFrameTabs *>( other )->m_pChildFrameList->at(i) );
}
}
void KonqFrameTabs::printFrameInfo( const TQString& spaces )
{
kdDebug(1202) << spaces << "KonqFrameTabs " << this << " visible="
<< TQString("%1").tqarg(isVisible()) << " activeChild="
<< TQString("%1").arg(isVisible()) << " activeChild="
<< m_pActiveChild << endl;
if (!m_pActiveChild)
@ -234,7 +234,7 @@ void KonqFrameTabs::printFrameInfo( const TQString& spaces )
KonqFrameBase* child;
int childFrameCount = m_pChildFrameList->count();
for (int i = 0 ; i < childFrameCount ; i++) {
child = m_pChildFrameList->tqat(i);
child = m_pChildFrameList->at(i);
if (child != 0L)
child->printFrameInfo(spaces + " ");
else
@ -346,7 +346,7 @@ void KonqFrameTabs::moveTabForward( int index )
void KonqFrameTabs::slotMovedTab( int from, int to )
{
KonqFrameBase* fromFrame = m_pChildFrameList->tqat( from );
KonqFrameBase* fromFrame = m_pChildFrameList->at( from );
m_pChildFrameList->remove( fromFrame );
m_pChildFrameList->insert( to, fromFrame );

@ -117,7 +117,7 @@ KonqView::~KonqView()
if (part_url.isNull())
part_url = "";
TQCString line;
line = ( TQString("close(%1):%2\n").tqarg(m_randID,0,16).tqarg(part_url) ).utf8();
line = ( TQString("close(%1):%2\n").arg(m_randID,0,16).arg(part_url) ).utf8();
KonqMainWindow::s_crashlog_file->writeBlock(line, line.length());
KonqMainWindow::s_crashlog_file->flush();
}
@ -155,9 +155,9 @@ void KonqView::openURL( const KURL &url, const TQString & locationBarURL,
TQCString line;
line = ( TQString("closed(%1):%2\n").tqarg(m_randID,0,16).tqarg(part_url) ).utf8();
line = ( TQString("closed(%1):%2\n").arg(m_randID,0,16).arg(part_url) ).utf8();
KonqMainWindow::s_crashlog_file->writeBlock(line,line.length());
line = ( TQString("opened(%3):%4\n").tqarg(m_randID,0,16).tqarg(url_url) ).utf8();
line = ( TQString("opened(%3):%4\n").arg(m_randID,0,16).arg(url_url) ).utf8();
KonqMainWindow::s_crashlog_file->writeBlock(line,line.length());
KonqMainWindow::s_crashlog_file->flush();
}
@ -227,7 +227,7 @@ void KonqView::openURL( const KURL &url, const TQString & locationBarURL,
KonqHistoryManager::kself()->addPending( url, locationBarURL, TQString::null);
#ifdef DEBUG_HISTORY
kdDebug(1202) << "Current position : " << m_lstHistory.tqat() << endl;
kdDebug(1202) << "Current position : " << m_lstHistory.at() << endl;
#endif
}
@ -711,7 +711,7 @@ void KonqView::createHistoryEntry()
#ifdef DEBUG_HISTORY
kdDebug(1202) << "Truncating history" << endl;
#endif
m_lstHistory.tqat( m_lstHistory.count() - 1 ); // go to last one
m_lstHistory.at( m_lstHistory.count() - 1 ); // go to last one
for ( ; m_lstHistory.current() != current ; )
{
if ( !m_lstHistory.removeLast() ) // and remove from the end (faster and easier)
@ -720,7 +720,7 @@ void KonqView::createHistoryEntry()
// makes current() null if it's the last item. however in qt2
// the behaviour was different than the documentation. this is
// changed in qt3 to behave as documented ;-) (Simon)
m_lstHistory.tqat( m_lstHistory.count() - 1 );
m_lstHistory.at( m_lstHistory.count() - 1 );
}
// Now current is the current again.
}
@ -730,9 +730,9 @@ void KonqView::createHistoryEntry()
#endif
m_lstHistory.append( new HistoryEntry ); // made current
#ifdef DEBUG_HISTORY
kdDebug(1202) << "at=" << m_lstHistory.tqat() << " count=" << m_lstHistory.count() << endl;
kdDebug(1202) << "at=" << m_lstHistory.at() << " count=" << m_lstHistory.count() << endl;
#endif
assert( m_lstHistory.tqat() == (int) m_lstHistory.count() - 1 );
assert( m_lstHistory.at() == (int) m_lstHistory.count() - 1 );
}
void KonqView::updateHistoryEntry( bool saveLocationBarURL )
@ -752,20 +752,20 @@ void KonqView::updateHistoryEntry( bool saveLocationBarURL )
}
#ifdef DEBUG_HISTORY
kdDebug(1202) << "Saving part URL : " << m_pPart->url() << " in history position " << m_lstHistory.tqat() << endl;
kdDebug(1202) << "Saving part URL : " << m_pPart->url() << " in history position " << m_lstHistory.at() << endl;
#endif
current->url = m_pPart->url();
if (saveLocationBarURL)
{
#ifdef DEBUG_HISTORY
kdDebug(1202) << "Saving location bar URL : " << m_sLocationBarURL << " in history position " << m_lstHistory.tqat() << endl;
kdDebug(1202) << "Saving location bar URL : " << m_sLocationBarURL << " in history position " << m_lstHistory.at() << endl;
#endif
current->locationBarURL = m_sLocationBarURL;
current->pageSecurity = m_pageSecurity;
}
#ifdef DEBUG_HISTORY
kdDebug(1202) << "Saving title : " << m_caption << " in history position " << m_lstHistory.tqat() << endl;
kdDebug(1202) << "Saving title : " << m_caption << " in history position " << m_lstHistory.at() << endl;
#endif
current->title = m_caption;
current->strServiceType = m_serviceType;
@ -800,7 +800,7 @@ void KonqView::go( int steps )
return;
}
int newPos = m_lstHistory.tqat() + steps;
int newPos = m_lstHistory.at() + steps;
#ifdef DEBUG_HISTORY
kdDebug(1202) << "go : steps=" << steps
<< " newPos=" << newPos
@ -813,13 +813,13 @@ void KonqView::go( int steps )
stop();
// Yay, we can move there without a loop !
HistoryEntry *currentHistoryEntry = m_lstHistory.tqat( newPos ); // sets current item
HistoryEntry *currentHistoryEntry = m_lstHistory.at( newPos ); // sets current item
assert( currentHistoryEntry );
assert( newPos == m_lstHistory.tqat() ); // check we moved (i.e. if I understood the docu)
assert( newPos == m_lstHistory.at() ); // check we moved (i.e. if I understood the docu)
assert( currentHistoryEntry == m_lstHistory.current() );
#ifdef DEBUG_HISTORY
kdDebug(1202) << "New position " << m_lstHistory.tqat() << endl;
kdDebug(1202) << "New position " << m_lstHistory.at() << endl;
#endif
restoreHistory();
@ -866,7 +866,7 @@ void KonqView::restoreHistory()
m_pMainWindow->updateToolBarActions();
#ifdef DEBUG_HISTORY
kdDebug(1202) << "New position (2) " << m_lstHistory.tqat() << endl;
kdDebug(1202) << "New position (2) " << m_lstHistory.at() << endl;
#endif
}
@ -874,9 +874,9 @@ const HistoryEntry * KonqView::historyAt(const int pos)
{
if(pos<0 || pos>=(int)m_lstHistory.count())
return 0L;
int oldpos = m_lstHistory.tqat();
const HistoryEntry* h = m_lstHistory.tqat(pos);
m_lstHistory.tqat( oldpos );
int oldpos = m_lstHistory.at();
const HistoryEntry* h = m_lstHistory.at(pos);
m_lstHistory.at( oldpos );
return h;
}
@ -887,7 +887,7 @@ void KonqView::copyHistory( KonqView *other )
TQPtrListIterator<HistoryEntry> it( other->m_lstHistory );
for (; it.current(); ++it )
m_lstHistory.append( new HistoryEntry( *it.current() ) );
m_lstHistory.tqat(other->m_lstHistory.tqat());
m_lstHistory.at(other->m_lstHistory.at());
}
KURL KonqView::url() const

@ -125,17 +125,17 @@ public:
/**
* @return true if view can go back
*/
bool canGoBack()const { return m_lstHistory.tqat() > 0; }
bool canGoBack()const { return m_lstHistory.at() > 0; }
/**
* @return true if view can go forward
*/
bool canGoForward()const { return m_lstHistory.tqat() != ((int)m_lstHistory.count())-1; }
bool canGoForward()const { return m_lstHistory.at() != ((int)m_lstHistory.count())-1; }
/**
* @return the position in the history
*/
int historyPos() const { return m_lstHistory.tqat(); }
int historyPos() const { return m_lstHistory.at(); }
uint historyLength() { return m_lstHistory.count(); }
@ -149,7 +149,7 @@ public:
*/
void restoreHistory();
void setHistoryPos(int newPos) { m_lstHistory.tqat( newPos ); }
void setHistoryPos(int newPos) { m_lstHistory.at( newPos ); }
/**
* @return the history of this view

@ -1611,8 +1611,8 @@ void KonqViewManager::loadItem( KConfig &cfg, KonqFrameContainerBase *parent,
if (cfg.readBoolEntry( TQString::fromLatin1( "docContainer" ).prepend( prefix ), false ))
m_pDocContainer = newContainer;
loadItem( cfg, newContainer, childList.tqat(0), defaultURL, openURL );
loadItem( cfg, newContainer, childList.tqat(1), defaultURL, openURL );
loadItem( cfg, newContainer, childList.at(0), defaultURL, openURL );
loadItem( cfg, newContainer, childList.at(1), defaultURL, openURL );
newContainer->setSizes( sizes );

@ -118,13 +118,13 @@ void KHTMLPluginKTTSD::slotReadOut()
}
// kdDebug() << "KHTMLPluginKTTSD::slotReadOut: query = " << query << endl;
dataBuf.tqat(0); // reset data
dataBuf.at(0); // reset data
arg << query << "";
if ( !client->call("kttsd", "KSpeech", "setText(TQString,TQString)",
data, replyType, replyData, true) )
TQMessageBox::warning( 0, i18n( "DCOP Call Failed" ),
i18n( "The DCOP call setText failed." ));
dataBuf.tqat(0);
dataBuf.at(0);
arg << 0;
if ( !client->call("kttsd", "KSpeech", "startText(uint)",
data, replyType, replyData, true) )

@ -206,7 +206,7 @@ void KonqInfoListViewItem::setDisabled( bool disabled )
setPixmap( 0, m_fileitem->pixmap( iconSize, state() ) );
}
void KonqInfoListViewItem::paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _tqalignment )
void KonqInfoListViewItem::paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _alignment )
{
TQColorGroup cg( _cg );
@ -242,7 +242,7 @@ void KonqInfoListViewItem::paintCell( TQPainter *_painter, const TQColorGroup &
_width = newWidth;
}
KListViewItem::paintCell( _painter, cg, _column, _width, _tqalignment );
KListViewItem::paintCell( _painter, cg, _column, _width, _alignment );
}
void KonqInfoListViewItem::paintFocus( TQPainter * _painter, const TQColorGroup & cg, const TQRect & _r )

@ -56,7 +56,7 @@ class KonqInfoListViewItem : public KonqBaseListViewItem
virtual ~KonqInfoListViewItem() { }
virtual void paintCell( TQPainter *_painter, const TQColorGroup & cg,
int column, int width, int tqalignment );
int column, int width, int alignment );
virtual void paintFocus( TQPainter * _painter, const TQColorGroup & cg, const TQRect & r );
virtual void updateContents();
virtual void setDisabled( bool disabled );

@ -169,7 +169,7 @@ void ListViewBrowserExtension::rename()
const TQString txt = le->text();
TQString pattern;
KMimeType::diagnoseFileName( txt, pattern );
if (!pattern.isEmpty() && pattern.tqat(0)=='*' && pattern.find('*',1)==-1)
if (!pattern.isEmpty() && pattern.at(0)=='*' && pattern.find('*',1)==-1)
le->setSelection(0, txt.length()-pattern.stripWhiteSpace().length()+1);
else
{

@ -173,7 +173,7 @@ void KonqListViewItem::setActive( bool active )
if ( m_bActive == active )
return;
//#### Optimize away tqrepaint if possible, like the iconview does?
//#### Optimize away repaint if possible, like the iconview does?
KonqBaseListViewItem::setActive( active );
int iconSize = m_pListViewWidget->iconSize();
iconSize = iconSize ? iconSize : KGlobal::iconLoader()->currentSize( KIcon::Small ); // Default = small
@ -203,7 +203,7 @@ void KonqListViewItem::setPixmap( int column, const TQPixmap& pm )
int newWidth = pm.isNull() ? 0 : pm.width();
int newHeight = pm.isNull() ? 0 : pm.height();
// If the height or width have changed then we're going to have to tqrepaint
// If the height or width have changed then we're going to have to repaint
// this whole thing. Fortunately since most of the calls are coming from
// setActive() this is the uncommon case.
@ -234,7 +234,7 @@ const TQPixmap* KonqListViewItem::pixmap( int column ) const
if ((int)m_pixmaps.count() <= column)
return 0;
TQPixmap *pm = m_pixmaps.tqat( column, &ok );
TQPixmap *pm = m_pixmaps.at( column, &ok );
if( !ok )
return 0;
return pm;
@ -294,7 +294,7 @@ int KonqBaseListViewItem::compare( TQListViewItem* item, int col, bool ascending
}
}
void KonqListViewItem::paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _tqalignment )
void KonqListViewItem::paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _alignment )
{
TQColorGroup cg( _cg );
@ -330,7 +330,7 @@ void KonqListViewItem::paintCell( TQPainter *_painter, const TQColorGroup & _cg,
_width = newWidth;
}
KListViewItem::paintCell( _painter, cg, _column, _width, _tqalignment );
KListViewItem::paintCell( _painter, cg, _column, _width, _alignment );
}
void KonqListViewItem::paintFocus( TQPainter * _painter, const TQColorGroup & cg, const TQRect & _r )

@ -107,7 +107,7 @@ class KonqListViewItem : public KonqBaseListViewItem
virtual ~KonqListViewItem();
virtual void paintCell( TQPainter *_painter, const TQColorGroup & cg,
int column, int width, int tqalignment );
int column, int width, int alignment );
virtual void paintFocus( TQPainter * _painter, const TQColorGroup & cg, const TQRect & r );
virtual void updateContents();
virtual void setDisabled( bool disabled );

@ -259,7 +259,7 @@ void KonqBaseListViewWidget::readProtocolConfig( const KURL & url )
//search the column in confColumns
for ( unsigned int j = 0; j < NumberOfAtoms; j++ )
{
if ( confColumns[j].name == *lstColumns.tqat(i) )
if ( confColumns[j].name == *lstColumns.at(i) )
{
confColumns[j].displayThisOne = true;
confColumns[j].displayInColumn = currentColumn;
@ -268,7 +268,7 @@ void KonqBaseListViewWidget::readProtocolConfig( const KURL & url )
currentColumn++;
if ( i < lstColumnWidths.count() )
confColumns[j].width = *lstColumnWidths.tqat(i);
confColumns[j].width = *lstColumnWidths.at(i);
else
{
// Default Column widths

@ -177,7 +177,7 @@ protected slots:
virtual void slotRedirection( const KURL & );
void slotPopupMenu( TQListViewItem *, const TQPoint&, int );
// forces a tqrepaint on column size changes / branch expansion
// forces a repaint on column size changes / branch expansion
// when there is a background pixmap
void slotUpdateBackground();

@ -200,7 +200,7 @@ void KonqTextViewItem::updateContents()
};
}
void KonqTextViewItem::paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _tqalignment )
void KonqTextViewItem::paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _alignment )
{
TQColorGroup cg( _cg );
cg.setColor(TQColorGroup::Text, static_cast<KonqTextViewWidget *>(listView())->colors[type]);
@ -208,7 +208,7 @@ void KonqTextViewItem::paintCell( TQPainter *_painter, const TQColorGroup & _cg,
// cg.setColor(TQColorGroup::HighlightedText, static_cast<KonqTextViewWidget *>(listView())->highlight[type]);
// cg.setColor(TQColorGroup::Highlight, Qt::darkGray);
KListViewItem::paintCell( _painter, cg, _column, _width, _tqalignment );
KListViewItem::paintCell( _painter, cg, _column, _width, _alignment );
}
/*void KonqTextViewItem::paintFocus( TQPainter *_p, const TQColorGroup &_cg, const TQRect &_r )

@ -57,7 +57,7 @@ class KonqTextViewItem : public KonqBaseListViewItem
// virtual TQString key( int _column, bool asc) const;
/** Call this before destroying the text view (decreases reference count
* on the view)*/
virtual void paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _tqalignment );
virtual void paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _alignment );
// virtual void paintFocus( TQPainter *_painter, const TQColorGroup & _cg, const TQRect & r );
virtual void updateContents();

@ -169,7 +169,7 @@ static TQString findFileName(const TQString* tmpl,bool universal, const TQString
void addBackEnd::activatedAddMenu(int id)
{
kdDebug() << "activatedAddMenu: " << TQString("%1").tqarg(id) << endl;
kdDebug() << "activatedAddMenu: " << TQString("%1").arg(id) << endl;
if (((uint)id) == libNames.size())
doRollBack();
if(((uint)id) >= libNames.size())
@ -178,13 +178,13 @@ void addBackEnd::activatedAddMenu(int id)
KLibLoader *loader = KLibLoader::self();
// try to load the library
TQString libname = *libNames.tqat(id);
TQString libname = *libNames.at(id);
KLibrary *lib = loader->library(TQFile::encodeName(libname));
if (lib)
{
// get the create_ function
TQString factory("add_");
factory = factory+(*libNames.tqat(id));
factory = factory+(*libNames.at(id));
void *add = lib->symbol(TQFile::encodeName(factory));
if (add)
@ -194,7 +194,7 @@ void addBackEnd::activatedAddMenu(int id)
TQMap<TQString,TQString> map;
func = (bool (*)(TQString*, TQString*, TQMap<TQString,TQString> *)) add;
TQString *tmp = new TQString("");
if (func(tmp,libParam.tqat(id),&map))
if (func(tmp,libParam.at(id),&map))
{
TQString myFile = findFileName(tmp,m_universal,m_currentProfile);
@ -219,7 +219,7 @@ void addBackEnd::activatedAddMenu(int id)
delete tmp;
}
} else {
kdWarning() << "libname:" << libNames.tqat(id)
kdWarning() << "libname:" << libNames.at(id)
<< " doesn't specify a library!" << endl;
}
}
@ -574,7 +574,7 @@ void Sidebar_Widget::activatedMenu(int id)
{
int tmpViewID=m_latestViewed;
for (uint i=0; i<m_buttons.count(); i++) {
ButtonInfo *button = m_buttons.tqat(i);
ButtonInfo *button = m_buttons.at(i);
if ((int) i != tmpViewID)
{
if (button->dock && button->dock->isVisibleTo(this))
@ -598,7 +598,7 @@ void Sidebar_Widget::activatedMenu(int id)
m_mainDockWidget->show();
if ((tmpLatestViewed>=0) && (tmpLatestViewed < (int) m_buttons.count()))
{
ButtonInfo *button = m_buttons.tqat(tmpLatestViewed);
ButtonInfo *button = m_buttons.at(tmpLatestViewed);
if (button && button->dock)
{
m_noUpdate=true;
@ -694,7 +694,7 @@ void Sidebar_Widget::updateButtons()
{
for (uint i = 0; i < m_buttons.count(); i++)
{
ButtonInfo *button = m_buttons.tqat(i);
ButtonInfo *button = m_buttons.at(i);
if (button->dock)
{
m_noUpdate = true;
@ -742,7 +742,7 @@ void Sidebar_Widget::createButtons()
for (uint i = 0; i < m_buttons.count(); i++)
{
ButtonInfo *button = m_buttons.tqat(i);
ButtonInfo *button = m_buttons.at(i);
if (m_openViews.contains(button->file))
{
m_buttonBar->setTab(i,true);
@ -763,7 +763,7 @@ bool Sidebar_Widget::openURL(const class KURL &url)
if (url.protocol()=="sidebar")
{
for (unsigned int i=0;i<m_buttons.count();i++)
if (m_buttons.tqat(i)->file==url.path())
if (m_buttons.at(i)->file==url.path())
{
KMultiTabBarTab *tab = m_buttonBar->tab(i);
if (!tab->isOn())
@ -778,7 +778,7 @@ bool Sidebar_Widget::openURL(const class KURL &url)
bool ret = false;
for (unsigned int i=0;i<m_buttons.count();i++)
{
ButtonInfo *button = m_buttons.tqat(i);
ButtonInfo *button = m_buttons.at(i);
if (button->dock)
{
if ((button->dock->isVisibleTo(this)) && (button->module))
@ -845,7 +845,7 @@ bool Sidebar_Widget::eventFilter(TQObject *obj, TQEvent *ev)
{
if (bt==m_buttonBar->tab(i))
{
m_currentButton = m_buttons.tqat(i);
m_currentButton = m_buttons.at(i);
break;
}
}
@ -953,7 +953,7 @@ bool Sidebar_Widget::createView( ButtonInfo *data)
void Sidebar_Widget::showHidePage(int page)
{
ButtonInfo *info = m_buttons.tqat(page);
ButtonInfo *info = m_buttons.at(page);
if (!info->dock)
{
if (m_buttonBar->isTabRaised(page))
@ -1072,7 +1072,7 @@ void Sidebar_Widget::dockWidgetHasUndocked(KDockWidget* wid)
kdDebug()<<" Sidebar_Widget::dockWidgetHasUndocked(KDockWidget*)"<<endl;
for (unsigned int i=0;i<m_buttons.count();i++)
{
ButtonInfo *button = m_buttons.tqat(i);
ButtonInfo *button = m_buttons.at(i);
if (button->dock==wid)
{
if (m_buttonBar->isTabRaised(i))
@ -1255,7 +1255,7 @@ Sidebar_Widget::~Sidebar_Widget()
m_noUpdate = true;
for (uint i=0;i<m_buttons.count();i++)
{
ButtonInfo *button = m_buttons.tqat(i);
ButtonInfo *button = m_buttons.at(i);
if (button->dock)
button->dock->undock();
}

@ -108,7 +108,7 @@ bool KonqSidebarDirTreeItem::hasStandardIcon()
return m_fileItem->iconName() == "folder";
}
void KonqSidebarDirTreeItem::paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _tqalignment )
void KonqSidebarDirTreeItem::paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _alignment )
{
if (m_fileItem->isLink())
{
@ -116,7 +116,7 @@ void KonqSidebarDirTreeItem::paintCell( TQPainter *_painter, const TQColorGroup
f.setItalic( TRUE );
_painter->setFont( f );
}
TQListViewItem::paintCell( _painter, _cg, _column, _width, _tqalignment );
TQListViewItem::paintCell( _painter, _cg, _column, _width, _alignment );
}
KURL KonqSidebarDirTreeItem::externalURL() const

@ -36,7 +36,7 @@ public:
virtual void setOpen( bool open );
virtual void paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _tqalignment );
virtual void paintCell( TQPainter *_painter, const TQColorGroup & _cg, int _column, int _width, int _alignment );
virtual bool acceptsDrops( const TQStrList & formats );
virtual void drop( TQDropEvent * ev );

@ -357,7 +357,7 @@ void KonqSidebarDirTreeModule::listDirectory( KonqSidebarTreeItem *item )
if (openItem)
{
// We have this directory listed already, just copy the entries as we
// can't use the dirlister, it would tqinvalidate the old entries
// can't use the dirlister, it would invalidate the old entries
int size = KGlobal::iconLoader()->currentSize( KIcon::Small );
KonqSidebarTreeItem * parentItem = item;
KonqSidebarDirTreeItem *oldItem = static_cast<KonqSidebarDirTreeItem *> (openItem->firstChild());
@ -574,7 +574,7 @@ void KonqSidebarDirTreeModule::slotListingStopped( const KURL & url )
if ( item->childCount() == 0 )
{
item->setExpandable( false );
item->tqrepaint();
item->repaint();
}
m_pTree->stopAnimation( item );

@ -126,7 +126,7 @@ TQString KonqSidebarHistoryItem::toolTipText() const
}
void KonqSidebarHistoryItem::paintCell( TQPainter *p, const TQColorGroup & cg,
int column, int width, int tqalignment )
int column, int width, int alignment )
{
TQDateTime dt;
TQDateTime current = TQDateTime::currentDateTime();
@ -149,7 +149,7 @@ void KonqSidebarHistoryItem::paintCell( TQPainter *p, const TQColorGroup & cg,
p->setFont( s_settings->m_fontOlderThan );
}
KonqSidebarTreeItem::paintCell( p, cg, column, width, tqalignment );
KonqSidebarTreeItem::paintCell( p, cg, column, width, alignment );
}
///////////////////////////////////////////////////////////////////

@ -60,7 +60,7 @@ public:
static void setSettings( KonqSidebarHistorySettings *s ) { s_settings = s; }
virtual void paintCell( TQPainter *, const TQColorGroup & cg, int column,
int width, int tqalignment );
int width, int alignment );
private:
const KonqHistoryEntry *m_entry;

@ -516,7 +516,7 @@ void KonqSidebarTree::slotAutoOpenFolder()
return;
m_dropItem->setOpen( true );
m_dropItem->tqrepaint();
m_dropItem->repaint();
}
void KonqSidebarTree::rescanConfiguration()

@ -150,7 +150,7 @@ extern "C"
{
int id=names.findIndex( item );
if (id==-1) return false;
KSimpleConfig ksc2(*list.tqat(id));
KSimpleConfig ksc2(*list.at(id));
ksc2.setGroup("Desktop Entry");
map->insert("Type","Link");
map->insert("Icon",ksc2.readEntry("Icon"));

@ -1070,7 +1070,7 @@ DECALN.sect Command
DECALN.code HSH|8|
DECALN.text
Causes the VT100 to fill it's screen with
uppercase Es for screen focus and tqalignment.
uppercase Es for screen focus and alignment.
DECALN.table.XPS
Subcode|Emulation|Scope|Operation|Args|Meaning
N/A|VT100|scr|helpAlign||see above

@ -2234,7 +2234,7 @@ Work is currently in progress to fix this issue.
<tr><td><p></td>
<tr><td></td>
<td colspan=6> Causes the VT100 to fill it's screen with
uppercase Es for screen focus and tqalignment.
uppercase Es for screen focus and alignment.
<tr><td><p></td></tr>
<tr>
<td></td>

@ -1023,7 +1023,7 @@ void TEScreen::clearEntireScreen()
}
/*! fill screen with 'E'
This is to aid screen tqalignment
This is to aid screen alignment
*/
void TEScreen::helpAlign()

@ -564,7 +564,7 @@ void TEWidget::drawTextFixed(TQPainter &paint, int x, int y,
int w;
for(unsigned int i=0;i<str.length();i++)
{
drawstr = str.tqat(i);
drawstr = str.at(i);
// Add double of the width if next c is 0;
if ((attr+nc+1)->c) // This may access image[image_size] See makeImage()
{
@ -1072,7 +1072,7 @@ void TEWidget::print(TQPainter &paint, bool friendly, bool exact)
pm.fill();
TQPainter pm_paint;
pm_paint.tqbegin(&pm, TQT_TQWIDGET(this));
pm_paint.begin(&pm, TQT_TQWIDGET(this));
paintContents(pm_paint, contentsRect(), true);
pm_paint.end();
paint.drawPixmap(0, 0, pm);
@ -1159,14 +1159,14 @@ void TEWidget::blinkEvent()
{
blinking = !blinking;
isBlinkEvent = true;
tqrepaint(false);
repaint(false);
isBlinkEvent = false;
}
void TEWidget::blinkCursorEvent()
{
cursorBlinking = !cursorBlinking;
tqrepaint(cursorRect, true);
repaint(cursorRect, true);
}
/* ------------------------------------------------------------------------- */
@ -1742,14 +1742,14 @@ void TEWidget::mouseTripleClickEvent(TQMouseEvent* ev)
void TEWidget::focusInEvent( TQFocusEvent * )
{
tqrepaint(cursorRect, true); // *do* erase area, to get rid of the
repaint(cursorRect, true); // *do* erase area, to get rid of the
// hollow cursor rectangle.
}
void TEWidget::focusOutEvent( TQFocusEvent * )
{
tqrepaint(cursorRect, true); // don't erase area
repaint(cursorRect, true); // don't erase area
}
bool TEWidget::focusNextPrevChild( bool next )
@ -1860,7 +1860,7 @@ void TEWidget::onClearSelection()
//FIXME: an `eventFilter' has been installed instead of a `keyPressEvent'
// due to a bug in `QT' or the ignorance of the author to prevent
// tqrepaint events being emitted to the screen whenever one leaves
// repaint events being emitted to the screen whenever one leaves
// or reenters the screen to/from another application.
//
// Troll says one needs to change focusInEvent() and focusOutEvent(),
@ -1984,7 +1984,7 @@ void TEWidget::imEndEvent( TQIMEvent *e )
m_imPreeditLength = 0;
m_isIMEdit = m_isIMSel = false;
tqrepaint( repaintRect, true );
repaint( repaintRect, true );
}
// Override any Ctrl+<key> accelerator when pressed with the keyboard

@ -1158,7 +1158,7 @@ void Konsole::makeBasicGUI()
TQT_TQOBJECT(this), TQT_SLOT(nextSession()), m_shortcuts, "next_session");
for (int i=1;i<13;i++) { // Due to 12 function keys?
new KAction(i18n("Switch to Session %1").tqarg(i), 0, TQT_TQOBJECT(this), TQT_SLOT(switchToSession()), m_shortcuts, TQString(TQString().sprintf("switch_to_session_%02d", i)).latin1());
new KAction(i18n("Switch to Session %1").arg(i), 0, TQT_TQOBJECT(this), TQT_SLOT(switchToSession()), m_shortcuts, TQString(TQString().sprintf("switch_to_session_%02d", i)).latin1());
}
new KAction(i18n("Enlarge Font"), 0, TQT_TQOBJECT(this), TQT_SLOT(biggerFont()), m_shortcuts, "bigger_font");
@ -1313,7 +1313,7 @@ void Konsole::slotTabContextMenu(TQWidget* _te, const TQPoint & pos)
if (!m_menuCreated)
makeGUI();
m_contextMenuSession = sessions.tqat( tabwidget->indexOf( _te ) );
m_contextMenuSession = sessions.at( tabwidget->indexOf( _te ) );
m_tabDetachSession->setEnabled( tabwidget->count()>1 );
@ -1384,12 +1384,12 @@ void Konsole::slotTabSetViewOptions(int mode)
for(int i = 0; i < tabwidget->count(); i++) {
TQWidget *page = tabwidget->page(i);
TQIconSet icon = iconSetForSession(sessions.tqat(i));
TQIconSet icon = iconSetForSession(sessions.at(i));
TQString title;
if (b_matchTabWinTitle)
title = sessions.tqat(i)->fullTitle();
title = sessions.at(i)->fullTitle();
else
title = sessions.tqat(i)->Title();
title = sessions.at(i)->Title();
title=title.replace('&',"&&");
switch(mode) {
@ -1622,7 +1622,7 @@ void Konsole::readProperties(KConfig* config, const TQString &schema, bool globa
ColorSchema* sch = colors->find(schema.isEmpty() ? s_kconfigSchema : schema);
if (!sch)
{
sch = (ColorSchema*)colors->tqat(0); //the default one
sch = (ColorSchema*)colors->at(0); //the default one
kdWarning() << "Could not find schema named " <<s_kconfigSchema<<"; using "<<sch->relPath()<<endl;
s_kconfigSchema = sch->relPath();
}
@ -1650,7 +1650,7 @@ void Konsole::readProperties(KConfig* config, const TQString &schema, bool globa
delete rootxpms[te];
rootxpms.remove(te);
}
pixmap_menu_activated(sch->tqalignment());
pixmap_menu_activated(sch->alignment());
}
te->setColorTable(sch->table()); //FIXME: set twice here to work around a bug
@ -1886,7 +1886,7 @@ void Konsole::updateSchemaMenu()
m_schema->clear();
for (int i = 0; i < (int) colors->count(); i++)
{
ColorSchema* s = (ColorSchema*)colors->tqat(i);
ColorSchema* s = (ColorSchema*)colors->at(i);
assert( s );
TQString title=s->title();
m_schema->insertItem(title.replace('&',"&&"),s->numb(),0);
@ -2002,7 +2002,7 @@ void Konsole::slotSelectTabbar() {
/* FIXME: Still necessary ? */
TQPtrDictIterator<KRootPixmap> it(rootxpms);
for (;it.current();++it)
it.current()->tqrepaint(true);
it.current()->repaint(true);
if (b_fixedSize)
{
@ -2129,7 +2129,7 @@ void Konsole::reparseConfiguration()
ColorSchema* sch = colors->find(s_kconfigSchema);
if (!sch)
{
sch = (ColorSchema*)colors->tqat(0); //the default one
sch = (ColorSchema*)colors->at(0); //the default one
kdWarning() << "Could not find schema named " <<s_kconfigSchema<<"; using "<<sch->relPath()<<endl;
s_kconfigSchema = sch->relPath();
}
@ -2500,7 +2500,7 @@ TQString Konsole::sessionId(const int position)
if (position<=0 || position>(int)sessions.count())
return "";
return sessions.tqat(position-1)->SessionId();
return sessions.at(position-1)->SessionId();
}
void Konsole::listSessions()
@ -2526,7 +2526,7 @@ void Konsole::activateSession(int position)
{
if (position<0 || position>=(int)sessions.count())
return;
activateSession( sessions.tqat(position) );
activateSession( sessions.at(position) );
}
void Konsole::activateSession(TQWidget* w)
@ -2586,11 +2586,11 @@ void Konsole::activateSession(TESession *s)
// Set the required schema variables for the current session
ColorSchema* cs = colors->find( se->schemaNo() );
if (!cs)
cs = (ColorSchema*)colors->tqat(0); //the default one
cs = (ColorSchema*)colors->at(0); //the default one
s_schema = cs->relPath();
curr_schema = cs->numb();
pmPath = cs->imagePath();
n_render = cs->tqalignment();
n_render = cs->alignment();
// BR 106464 temporary fix...
// only 2 sessions opened, 2nd session viewable, right-click on 1st tab and
@ -2632,7 +2632,7 @@ void Konsole::activateSession(TESession *s)
if (monitorSilence) monitorSilence->setChecked( se->isMonitorSilence() );
masterMode->setChecked( se->isMasterMode() );
sessions.find(se);
uint position=sessions.tqat();
uint position=sessions.at();
if (m_moveSessionLeft) m_moveSessionLeft->setEnabled(position>0);
if (m_moveSessionRight) m_moveSessionRight->setEnabled(position<sessions.count()-1);
}
@ -2871,7 +2871,7 @@ TQString Konsole::newSession(KSimpleConfig *co, TQString program, const TQStrLis
ColorSchema* schema = colors->find(sch);
if (!schema)
schema=(ColorSchema*)colors->tqat(0); //the default one
schema=(ColorSchema*)colors->at(0); //the default one
int schmno = schema->numb();
if (sessions.count()==1 && n_tabbar!=TabNone)
@ -3063,7 +3063,7 @@ void Konsole::doneSession(TESession* s)
se = 0;
if (sessions.count())
{
se = sessions.tqat(sessionIndex ? sessionIndex - 1 : 0);
se = sessions.at(sessionIndex ? sessionIndex - 1 : 0);
session2action.find(se)->setChecked(true);
//FIXME: this Timer stupidity originated from the connected
@ -3081,7 +3081,7 @@ void Konsole::doneSession(TESession* s)
}
else {
sessions.find(se);
uint position=sessions.tqat();
uint position=sessions.at();
m_moveSessionLeft->setEnabled(position>0);
m_moveSessionRight->setEnabled(position<sessions.count()-1);
}
@ -3135,7 +3135,7 @@ void Konsole::slotMovedTab(int from, int to)
void Konsole::moveSessionLeft()
{
sessions.find(se);
uint position=sessions.tqat();
uint position=sessions.at();
if (position==0)
return;
@ -3167,7 +3167,7 @@ void Konsole::moveSessionLeft()
void Konsole::moveSessionRight()
{
sessions.find(se);
uint position=sessions.tqat();
uint position=sessions.at();
if (position==sessions.count()-1)
return;
@ -3570,7 +3570,7 @@ void Konsole::setSchema(int numb, TEWidget* tewidget)
ColorSchema* s = colors->find(numb);
if (!s)
{
s = (ColorSchema*)colors->tqat(0);
s = (ColorSchema*)colors->at(0);
kdWarning() << "No schema with serial #"<<numb<<", using "<<s->relPath()<<" (#"<<s->numb()<<")." << endl;
s_kconfigSchema = s->relPath();
}
@ -3587,7 +3587,7 @@ void Konsole::setSchema(const TQString & path)
ColorSchema* s = colors->find(path);
if (!s)
{
s = (ColorSchema*)colors->tqat(0); //the default one
s = (ColorSchema*)colors->at(0); //the default one
kdWarning() << "No schema with the name " <<path<<", using "<<s->relPath()<<endl;
s_kconfigSchema = s->relPath();
}
@ -3639,7 +3639,7 @@ void Konsole::setSchema(ColorSchema* s, TEWidget* tewidget)
delete rootxpms[tewidget];
rootxpms.remove(tewidget);
}
pixmap_menu_activated(s->tqalignment(), tewidget);
pixmap_menu_activated(s->alignment(), tewidget);
tewidget->setBlendColor(tqRgba(0, 0, 0, 0xff));
}
@ -3718,7 +3718,7 @@ void Konsole::detachSession(TESession* _se) {
if (se_previous)
se = se_previous;
else
se = sessions.tqat(sessionIndex ? sessionIndex - 1 : 0);
se = sessions.at(sessionIndex ? sessionIndex - 1 : 0);
session2action.find(se)->setChecked(true);
TQTimer::singleShot(1,this,TQT_SLOT(activateSession()));
}
@ -3992,7 +3992,7 @@ void Konsole::slotOpenSelection()
m_filterData = new KURIFilterData( selectedURL );
KURIFilter::self()->filterURI( *(m_filterData) );
m_openSelection->insertItem( SmallIconSet( m_filterData->iconName() ),i18n( "%1" ).tqarg(m_filterData->uri().url()), 1 );
m_openSelection->insertItem( SmallIconSet( m_filterData->iconName() ),i18n( "%1" ).<