Remove additional unneeded tq method conversions

pull/2/head
Timothy Pearson 12 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