Remove additional unneeded tq method conversions

pull/1/head
Timothy Pearson 13 years ago
parent 3420c0cfed
commit b67bd80ac6

@ -471,7 +471,7 @@ void KDialogDClient::initDialog(const TQString &caption, KDialogBase *d, unsigne
KWin::setState(itsDlg->winId(), NET::Modal); KWin::setState(itsDlg->winId(), NET::Modal);
KWin::WindowInfo wi(KWin::windowInfo(xid, NET::WMGeometry, NET::WM2UserTime)); KWin::WindowInfo wi(KWin::windowInfo(xid, NET::WMGeometry, NET::WM2UserTime));
TQRect geom(wi.tqgeometry()); TQRect geom(wi.geometry());
int rx=geom.x(), int rx=geom.x(),
ry=geom.y(); ry=geom.y();
@ -586,7 +586,7 @@ void KDialogDFileDialog::slotOk()
good=!KIO::NetAccess::exists(urls.first(), false, this) || good=!KIO::NetAccess::exists(urls.first(), false, this) ||
KMessageBox::Continue==KMessageBox::warningContinueCancel(this, KMessageBox::Continue==KMessageBox::warningContinueCancel(this,
i18n("File %1 exists.\nDo you want to replace it?") i18n("File %1 exists.\nDo you want to replace it?")
.tqarg(urls.first().prettyURL()), .arg(urls.first().prettyURL()),
i18n("File Exists"), i18n("File Exists"),
KGuiItem(i18n("Replace"), "filesaveas"), TQString(), KGuiItem(i18n("Replace"), "filesaveas"), TQString(),
KMessageBox::Notify|KMessageBox::PlainCaption); KMessageBox::Notify|KMessageBox::PlainCaption);

@ -188,7 +188,7 @@ static void kde2TQtFilter(const TQString &orig, TQString *sel)
// HACK HACK HACK!!! // HACK HACK HACK!!!
// KGtk versions <=0.9.1 used this copied TQFileDialogPrivate to access the file filters // KGtk versions <=0.9.1 used this copied TQFileDialogPrivate to access the file filters
// newer versions walk the file dialogs tqchildren... // newer versions walk the file dialogs children...
class TQFileDialogPrivate { class TQFileDialogPrivate {
public: public:
~TQFileDialogPrivate(); ~TQFileDialogPrivate();
@ -224,12 +224,12 @@ static const TQString getFilters(TQFileDialog *dlg, bool scribusSave=false)
#else #else
if(dlg) if(dlg)
{ {
const TQObjectList tqchildren=((TQObject *)dlg)->childrenListObject(); const TQObjectList children=((TQObject *)dlg)->childrenListObject();
if(!tqchildren.isEmpty()) if(!children.isEmpty())
{ {
TQObjectList::ConstIterator it(tqchildren.begin()), TQObjectList::ConstIterator it(children.begin()),
end(tqchildren.end()); end(children.end());
for(; it!=end; ++it) for(; it!=end; ++it)
if(::tqqt_cast<TQComboBox *>(*it) && 0==qstrcmp((*it)->name(), "file types")) if(::tqqt_cast<TQComboBox *>(*it) && 0==qstrcmp((*it)->name(), "file types"))
@ -261,12 +261,12 @@ static TQString getCurrentFileName(TQFileDialog *dlg)
{ {
if(dlg) if(dlg)
{ {
const TQObjectList tqchildren=((TQObject *)dlg)->childrenListObject(); const TQObjectList children=((TQObject *)dlg)->childrenListObject();
if(!tqchildren.isEmpty()) if(!children.isEmpty())
{ {
TQObjectList::ConstIterator it(tqchildren.begin()), TQObjectList::ConstIterator it(children.begin()),
end(tqchildren.end()); end(children.end());
for(; it!=end; ++it) for(; it!=end; ++it)
if(::tqqt_cast<TQLineEdit *>(*it)) // && 0==qstrcmp((*it)->name(), "name/filter editor")) if(::tqqt_cast<TQLineEdit *>(*it)) // && 0==qstrcmp((*it)->name(), "name/filter editor"))

Loading…
Cancel
Save