summaryrefslogtreecommitdiffstats
path: root/kdeprint
diff options
context:
space:
mode:
Diffstat (limited to 'kdeprint')
-rw-r--r--kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp4
-rw-r--r--kdeprint/cups/cupsdconf2/locationdialog.cpp2
-rw-r--r--kdeprint/cups/imagepreview.cpp2
-rw-r--r--kdeprint/cups/kpimagepage.cpp2
-rw-r--r--kdeprint/driver.cpp2
-rw-r--r--kdeprint/driveritem.cpp2
-rw-r--r--kdeprint/kmjobmanager.cpp2
-rw-r--r--kdeprint/kmmanager.cpp2
-rw-r--r--kdeprint/kpgeneralpage.cpp6
-rw-r--r--kdeprint/kpqtpage.cpp2
-rw-r--r--kdeprint/kprintdialog.cpp6
-rw-r--r--kdeprint/lpr/lpchelper.cpp8
-rw-r--r--kdeprint/lpr/lpchelper.h4
-rw-r--r--kdeprint/lpr/printcapreader.cpp2
-rw-r--r--kdeprint/management/kmiconview.cpp4
-rw-r--r--kdeprint/management/kmjobviewer.cpp6
-rw-r--r--kdeprint/management/kmlistview.cpp4
-rw-r--r--kdeprint/management/kmwdriverselect.cpp6
-rw-r--r--kdeprint/management/kmwinfobase.cpp12
-rw-r--r--kdeprint/tests/drawdemo.cpp4
20 files changed, 41 insertions, 41 deletions
diff --git a/kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp b/kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp
index 5be680300..39da4d383 100644
--- a/kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp
+++ b/kdeprint/cups/cupsdconf2/cupsdsecuritypage.cpp
@@ -127,7 +127,7 @@ void CupsdSecurityPage::slotAdd()
{
if (KMessageBox::warningContinueCancel(this, i18n("This location is already defined. Do you want to replace the existing one?"),TQString::null,i18n("Replace")) == KMessageBox::Continue)
{
- index = locs_.tqat();
+ index = locs_.at();
locs_.remove();
break;
}
@@ -149,7 +149,7 @@ void CupsdSecurityPage::slotAdd()
void CupsdSecurityPage::slotEdit(int index)
{
- CupsLocation *loc = locs_.tqat(index);
+ CupsLocation *loc = locs_.at(index);
LocationDialog::editLocation(loc, this, conf_);
}
diff --git a/kdeprint/cups/cupsdconf2/locationdialog.cpp b/kdeprint/cups/cupsdconf2/locationdialog.cpp
index 416efa249..95863855e 100644
--- a/kdeprint/cups/cupsdconf2/locationdialog.cpp
+++ b/kdeprint/cups/cupsdconf2/locationdialog.cpp
@@ -128,7 +128,7 @@ void LocationDialog::setInfos(CupsdConf *conf)
void LocationDialog::fillLocation(CupsLocation *loc)
{
- loc->resource_ = conf_->resources_.tqat(resource_->currentItem());
+ loc->resource_ = conf_->resources_.at(resource_->currentItem());
loc->resourcename_ = loc->resource_->path_;
loc->authtype_ = authtype_->currentItem();
loc->authclass_ = (loc->authtype_ == AUTHTYPE_NONE ? AUTHCLASS_ANONYMOUS : authclass_->currentItem());
diff --git a/kdeprint/cups/imagepreview.cpp b/kdeprint/cups/imagepreview.cpp
index db92cfe9f..bca09546b 100644
--- a/kdeprint/cups/imagepreview.cpp
+++ b/kdeprint/cups/imagepreview.cpp
@@ -51,7 +51,7 @@ void ImagePreview::setParameters(int brightness, int hue, int saturation, int ga
hue_ = hue;
saturation_ = saturation;
gamma_ = gamma;
- tqrepaint();
+ repaint();
}
void ImagePreview::paintEvent(TQPaintEvent*){
diff --git a/kdeprint/cups/kpimagepage.cpp b/kdeprint/cups/kpimagepage.cpp
index 1157d3f07..14f9e7d4a 100644
--- a/kdeprint/cups/kpimagepage.cpp
+++ b/kdeprint/cups/kpimagepage.cpp
@@ -192,7 +192,7 @@ KPImagePage::KPImagePage(DrMain *driver, TQWidget *parent, const char *name)
TQString whatsThisPreviewPositionImagePage = i18n( " <qt> "
" <p><b>Position Preview Thumbnail</b></p> "
" <p>This position preview thumbnail indicates the position of the image on the paper sheet. "
- " <p>Click on horizontal and vertical radio buttons to move image tqalignment on paper around. Options are: "
+ " <p>Click on horizontal and vertical radio buttons to move image alignment on paper around. Options are: "
" <ul> "
" <li> center </li>"
" <li> top </li>"
diff --git a/kdeprint/driver.cpp b/kdeprint/driver.cpp
index 4d21e87d5..5d37b50ff 100644
--- a/kdeprint/driver.cpp
+++ b/kdeprint/driver.cpp
@@ -627,7 +627,7 @@ void DrListOption::setChoice(int choicenum)
{
if (choicenum >= 0 && choicenum < (int)m_choices.count())
{
- setValueText(m_choices.tqat(choicenum)->name());
+ setValueText(m_choices.at(choicenum)->name());
}
}
diff --git a/kdeprint/driveritem.cpp b/kdeprint/driveritem.cpp
index c4cec9fcb..7bb1715aa 100644
--- a/kdeprint/driveritem.cpp
+++ b/kdeprint/driveritem.cpp
@@ -133,7 +133,7 @@ bool DriverItem::updateConflict()
m_conflict = (m_item->conflict());
}
}
- tqrepaint();
+ repaint();
return m_conflict;
}
diff --git a/kdeprint/kmjobmanager.cpp b/kdeprint/kmjobmanager.cpp
index 3449e1bb2..afbca7a2f 100644
--- a/kdeprint/kmjobmanager.cpp
+++ b/kdeprint/kmjobmanager.cpp
@@ -53,7 +53,7 @@ void KMJobManager::discardAllJobs()
void KMJobManager::removeDiscardedJobs()
{
for (uint i=0;i<m_jobs.count();i++)
- if (m_jobs.tqat(i)->isDiscarded())
+ if (m_jobs.at(i)->isDiscarded())
{
m_jobs.remove(i);
i--;
diff --git a/kdeprint/kmmanager.cpp b/kdeprint/kmmanager.cpp
index c5d657fdf..bee42fe2a 100644
--- a/kdeprint/kmmanager.cpp
+++ b/kdeprint/kmmanager.cpp
@@ -253,7 +253,7 @@ TQPtrList<KMPrinter>* KMManager::printerList(bool reload)
// remove discarded printers
for (uint i=0; i<m_printers.count(); i++)
{
- KMPrinter *prt = m_printers.tqat(i);
+ KMPrinter *prt = m_printers.at(i);
if (prt->isDiscarded())
{
m_printers.remove(i);
diff --git a/kdeprint/kpgeneralpage.cpp b/kdeprint/kpgeneralpage.cpp
index 15e44852b..31e927189 100644
--- a/kdeprint/kpgeneralpage.cpp
+++ b/kdeprint/kpgeneralpage.cpp
@@ -622,17 +622,17 @@ void KPGeneralPage::getOptions(TQMap<TQString,TQString>& opts, bool incldef)
DrListOption *opt;
if ((opt=(DrListOption*)driver()->findOption("PageSize")) != NULL)
{
- DrBase *ch = opt->choices()->tqat(m_pagesize->currentItem());
+ DrBase *ch = opt->choices()->at(m_pagesize->currentItem());
if (incldef || ch->name() != opt->get("default")) opts["PageSize"] = ch->name();
}
if ((opt=(DrListOption*)driver()->findOption("MediaType")) != NULL)
{
- DrBase *ch = opt->choices()->tqat(m_papertype->currentItem());
+ DrBase *ch = opt->choices()->at(m_papertype->currentItem());
if (incldef || ch->name() != opt->get("default")) opts["MediaType"] = ch->name();
}
if ((opt=(DrListOption*)driver()->findOption("InputSlot")) != NULL)
{
- DrBase *ch = opt->choices()->tqat(m_inputslot->currentItem());
+ DrBase *ch = opt->choices()->at(m_inputslot->currentItem());
if (incldef || ch->name() != opt->get("default")) opts["InputSlot"] = ch->name();
}
diff --git a/kdeprint/kpqtpage.cpp b/kdeprint/kpqtpage.cpp
index 7a2c4acfd..304812710 100644
--- a/kdeprint/kpqtpage.cpp
+++ b/kdeprint/kpqtpage.cpp
@@ -305,7 +305,7 @@ void KPQtPage::getOptions(TQMap<TQString,TQString>& opts, bool incldef)
DrListOption *opt = static_cast<DrListOption*>(driver()->findOption("PageSize"));
if (opt)
{
- DrBase *ch = opt->choices()->tqat(m_pagesize->currentItem());
+ DrBase *ch = opt->choices()->at(m_pagesize->currentItem());
if (ch && (incldef || ch->name() != opt->get("default")))
{
opts["PageSize"] = ch->name();
diff --git a/kdeprint/kprintdialog.cpp b/kdeprint/kprintdialog.cpp
index e99589a15..d0a665c57 100644
--- a/kdeprint/kprintdialog.cpp
+++ b/kdeprint/kprintdialog.cpp
@@ -824,7 +824,7 @@ void KPrintDialog::reload()
// remove printer dependent pages (usually from plugin)
TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", TQTABWIDGET_OBJECT_NAME_STRING)));
for (uint i=0; i<d->m_pages.count(); i++)
- if (d->m_pages.tqat(i)->onlyRealPrinters())
+ if (d->m_pages.at(i)->onlyRealPrinters())
{
KPrintDialogPage *page = d->m_pages.take(i--);
if (tabs)
@@ -952,10 +952,10 @@ void KPrintDialog::enableDialogPage( int index, bool flag )
if ( d->m_pages.count() > 1 )
{
TQTabWidget *tabs = static_cast<TQTabWidget*>(TQT_TQWIDGET(d->m_dummy->child("TabWidget", TQTABWIDGET_OBJECT_NAME_STRING)));
- tabs->setTabEnabled( d->m_pages.tqat( index ), flag );
+ tabs->setTabEnabled( d->m_pages.at( index ), flag );
}
else
- d->m_pages.tqat( 0 )->setEnabled( flag );
+ d->m_pages.at( 0 )->setEnabled( flag );
}
void KPrintDialog::slotOpenFileDialog()
diff --git a/kdeprint/lpr/lpchelper.cpp b/kdeprint/lpr/lpchelper.cpp
index 7cf0bfebf..65f24609b 100644
--- a/kdeprint/lpr/lpchelper.cpp
+++ b/kdeprint/lpr/lpchelper.cpp
@@ -72,7 +72,7 @@ KMPrinter::PrinterState LpcHelper::state(KMPrinter *prt) const
return state(prt->printerName());
}
-void LpcHelper::parseStatusLPR(TQTextStream &t)
+void LpcHelper::parsetStatusLPR(TQTextStream &t)
{
TQString printer, line;
int p(-1);
@@ -107,7 +107,7 @@ void LpcHelper::parseStatusLPR(TQTextStream &t)
}
}
-void LpcHelper::parseStatusLPRng(TQTextStream& t)
+void LpcHelper::parsetStatusLPRng(TQTextStream& t)
{
TQStringList l;
int p(-1);
@@ -152,10 +152,10 @@ void LpcHelper::updateStates()
{
default:
case LprSettings::LPR:
- parseStatusLPR(t);
+ parsetStatusLPR(t);
break;
case LprSettings::LPRng:
- parseStatusLPRng(t);
+ parsetStatusLPRng(t);
break;
}
proc.close();
diff --git a/kdeprint/lpr/lpchelper.h b/kdeprint/lpr/lpchelper.h
index 8f2590065..66e5cea43 100644
--- a/kdeprint/lpr/lpchelper.h
+++ b/kdeprint/lpr/lpchelper.h
@@ -46,8 +46,8 @@ public:
protected:
bool changeState(const TQString&, const TQString&, TQString&);
- void parseStatusLPR(TQTextStream&);
- void parseStatusLPRng(TQTextStream&);
+ void parsetStatusLPR(TQTextStream&);
+ void parsetStatusLPRng(TQTextStream&);
int parseStateChangeLPR(const TQString&, const TQString&);
int parseStateChangeLPRng(const TQString&, const TQString&);
diff --git a/kdeprint/lpr/printcapreader.cpp b/kdeprint/lpr/printcapreader.cpp
index 72a6e2903..0a4fa076f 100644
--- a/kdeprint/lpr/printcapreader.cpp
+++ b/kdeprint/lpr/printcapreader.cpp
@@ -56,7 +56,7 @@ void PrintcapReader::unputLine(const TQString& s)
PrintcapEntry* PrintcapReader::nextEntry()
{
- if (!m_stream.tqdevice())
+ if (!m_stream.device())
return NULL;
TQString line, comment, name, fields, buf;
diff --git a/kdeprint/management/kmiconview.cpp b/kdeprint/management/kmiconview.cpp
index 7ed893f51..2e7b5dac6 100644
--- a/kdeprint/management/kmiconview.cpp
+++ b/kdeprint/management/kmiconview.cpp
@@ -114,7 +114,7 @@ void KMIconViewItem::updatePrinter(KMPrinter *p, int mode)
setPixmap(SmallIcon(m_pixmap, 0, iconstate));
}
//if (update)
- // tqrepaint();
+ // repaint();
setDiscarded(false);
}
@@ -180,7 +180,7 @@ void KMIconView::setPrinterList(TQPtrList<KMPrinter> *list)
}
for (uint i=0; i<m_items.count(); i++)
- if (m_items.tqat(i)->isDiscarded())
+ if (m_items.at(i)->isDiscarded())
{
delete m_items.take(i);
i--;
diff --git a/kdeprint/management/kmjobviewer.cpp b/kdeprint/management/kmjobviewer.cpp
index 0f857c228..4ae3ef46f 100644
--- a/kdeprint/management/kmjobviewer.cpp
+++ b/kdeprint/management/kmjobviewer.cpp
@@ -398,7 +398,7 @@ void KMJobViewer::updateJobs()
}
for (uint i=0; i<m_items.count(); i++)
- if (m_items.tqat(i)->isDiscarded())
+ if (m_items.at(i)->isDiscarded())
{
delete m_items.take(i);
i--;
@@ -510,7 +510,7 @@ void KMJobViewer::slotMove(int prID)
{
if (prID >= 0 && prID < (int)(m_printers.count()))
{
- KMPrinter *p = m_printers.tqat(prID);
+ KMPrinter *p = m_printers.at(prID);
send(KMJob::Move,i18n("Move to %1").arg(p->printerName()),p->printerName());
}
}
@@ -540,7 +540,7 @@ void KMJobViewer::slotPrinterSelected(int prID)
{
if (prID >= 0 && prID < (int)(m_printers.count()+1))
{
- TQString prname = (prID == 0 ? i18n("All Printers") : m_printers.tqat(prID-1)->printerName());
+ TQString prname = (prID == 0 ? i18n("All Printers") : m_printers.at(prID-1)->printerName());
emit printerChanged(this, prname);
}
}
diff --git a/kdeprint/management/kmlistview.cpp b/kdeprint/management/kmlistview.cpp
index b9e4b738b..e754cfe1d 100644
--- a/kdeprint/management/kmlistview.cpp
+++ b/kdeprint/management/kmlistview.cpp
@@ -89,7 +89,7 @@ void KMListViewItem::updatePrinter(KMPrinter *p)
}
setDiscarded(false);
if (update)
- tqrepaint();
+ repaint();
}
void KMListViewItem::paintCell(TQPainter *p, const TQColorGroup& cg, int c, int w, int a)
@@ -216,7 +216,7 @@ void KMListView::setPrinterList(TQPtrList<KMPrinter> *list)
TQPtrList<KMListViewItem> deleteList;
deleteList.setAutoDelete(true);
for (uint i=0; i<m_items.count(); i++)
- if (m_items.tqat(i)->isDiscarded())
+ if (m_items.at(i)->isDiscarded())
{
// instance items are put in front of the list
// so that they are destroyed first
diff --git a/kdeprint/management/kmwdriverselect.cpp b/kdeprint/management/kmwdriverselect.cpp
index 353fc0861..93e37be7d 100644
--- a/kdeprint/management/kmwdriverselect.cpp
+++ b/kdeprint/management/kmwdriverselect.cpp
@@ -93,7 +93,7 @@ void KMWDriverSelect::updatePrinter(KMPrinter *p)
int index = m_list->currentItem();
if (m_entries && index >= 0 && index < (int)(m_entries->count()))
{
- KMDBEntry *entry = m_entries->tqat(index);
+ KMDBEntry *entry = m_entries->at(index);
p->setDbEntry(entry);
p->setDriverInfo(entry->description);
}
@@ -107,8 +107,8 @@ void KMWDriverSelect::updatePrinter(KMPrinter *p)
void KMWDriverSelect::slotDriverComment()
{
int index = m_list->currentItem();
- if (m_entries && index >=0 && index < (int)(m_entries->count()) && !m_entries->tqat(index)->drivercomment.isEmpty())
- KMessageBox::information(this, m_entries->tqat(index)->drivercomment, TQString::null, TQString::null, KMessageBox::AllowLink);
+ if (m_entries && index >=0 && index < (int)(m_entries->count()) && !m_entries->at(index)->drivercomment.isEmpty())
+ KMessageBox::information(this, m_entries->at(index)->drivercomment, TQString::null, TQString::null, KMessageBox::AllowLink);
else
KMessageBox::error(this, i18n("No information about the selected driver."));
}
diff --git a/kdeprint/management/kmwinfobase.cpp b/kdeprint/management/kmwinfobase.cpp
index 835042c59..0d6d4beae 100644
--- a/kdeprint/management/kmwinfobase.cpp
+++ b/kdeprint/management/kmwinfobase.cpp
@@ -56,19 +56,19 @@ void KMWInfoBase::setInfo(const TQString& s)
void KMWInfoBase::setLabel(int i, const TQString& s)
{
if (i >= 0 && i < m_nlines)
- m_labels.tqat(i)->setText(s);
+ m_labels.at(i)->setText(s);
}
void KMWInfoBase::setText(int i, const TQString& s)
{
if (i >= 0 && i < m_nlines)
- m_edits.tqat(i)->setText(s);
+ m_edits.at(i)->setText(s);
}
TQString KMWInfoBase::text(int i)
{
if (i >= 0 && i < m_nlines)
- return m_edits.tqat(i)->text();
+ return m_edits.at(i)->text();
return TQString::null;
}
@@ -76,15 +76,15 @@ void KMWInfoBase::setCurrent(int i)
{
if (i >= 0 && i < m_nlines)
{
- m_edits.tqat(i)->selectAll();
- m_edits.tqat(i)->setFocus();
+ m_edits.at(i)->selectAll();
+ m_edits.at(i)->setFocus();
}
}
TQLineEdit* KMWInfoBase::lineEdit( int i )
{
if ( i >= 0 && i < m_nlines )
- return m_edits.tqat( i );
+ return m_edits.at( i );
else
return NULL;
}
diff --git a/kdeprint/tests/drawdemo.cpp b/kdeprint/tests/drawdemo.cpp
index 20fc3d12e..443cc89e8 100644
--- a/kdeprint/tests/drawdemo.cpp
+++ b/kdeprint/tests/drawdemo.cpp
@@ -78,7 +78,7 @@ void drawFonts( TQPainter *p )
//
-// This function draws some tqshapes
+// This function draws some shapes
//
void drawShapes( TQPainter *p )
@@ -115,7 +115,7 @@ struct DrawThing {
DrawThing ourDrawFunctions[] = {
{ drawColorWheel, "Draw color wheel" },
{ drawFonts, "Draw fonts" },
- { drawShapes, "Draw tqshapes" },
+ { drawShapes, "Draw shapes" },
{ 0, 0 } };