From 8d9b90ca794ffabf151719c2edebe9278a2d3f36 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:15:24 -0600 Subject: Rename old tq methods that no longer need a unique name --- src/reportdialog.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/reportdialog.cpp') diff --git a/src/reportdialog.cpp b/src/reportdialog.cpp index d2cb615..cf6a659 100644 --- a/src/reportdialog.cpp +++ b/src/reportdialog.cpp @@ -61,7 +61,7 @@ ReportDialog::ReportDialog(TQWidget* parent_, const char* name_/*=0*/) hlay->addWidget(l); // KStandardDirs::findAllResources(const char *type, const TQString &filter, bool recursive, bool uniq) - TQStringList files = KGlobal::dirs()->findAllResources("appdata", TQString::tqfromLatin1("report-templates/*.xsl"), + TQStringList files = KGlobal::dirs()->findAllResources("appdata", TQString::fromLatin1("report-templates/*.xsl"), false, true); KSortableValueList templates; for(TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it) { @@ -69,7 +69,7 @@ ReportDialog::ReportDialog(TQWidget* parent_, const char* name_/*=0*/) TQString file = fi.fileName(); TQString name = file.section('.', 0, -2); name.replace('_', ' '); - TQString title = i18n((name + TQString::tqfromLatin1(" XSL Template")).utf8(), name.utf8()); + TQString title = i18n((name + TQString::fromLatin1(" XSL Template")).utf8(), name.utf8()); templates.insert(title, file); } templates.sort(); @@ -80,7 +80,7 @@ ReportDialog::ReportDialog(TQWidget* parent_, const char* name_/*=0*/) hlay->addWidget(m_templateCombo); l->setBuddy(m_templateCombo); - KPushButton* pb1 = new KPushButton(SmallIconSet(TQString::tqfromLatin1("exec")), i18n("&Generate"), mainWidget); + KPushButton* pb1 = new KPushButton(SmallIconSet(TQString::fromLatin1("exec")), i18n("&Generate"), mainWidget); hlay->addWidget(pb1); connect(pb1, TQT_SIGNAL(clicked()), TQT_SLOT(slotGenerate())); @@ -101,32 +101,32 @@ ReportDialog::ReportDialog(TQWidget* parent_, const char* name_/*=0*/) m_HTMLPart->setPluginsEnabled(false); topLayout->addWidget(m_HTMLPart->view()); - TQString text = TQString::tqfromLatin1("

").tqarg(contrastColor.name()) + i18n("Select a report template and click Generate.") + ' ' + i18n("Some reports may take several seconds to generate for large collections."); - + TQString::tqfromLatin1("

"); + + TQString::fromLatin1("

"); m_HTMLPart->begin(); m_HTMLPart->write(text); m_HTMLPart->end(); setMinimumWidth(TQMAX(minimumWidth(), REPORT_MIN_WIDTH)); setMinimumHeight(TQMAX(minimumHeight(), REPORT_MIN_HEIGHT)); - resize(configDialogSize(TQString::tqfromLatin1("Report Dialog Options"))); + resize(configDialogSize(TQString::fromLatin1("Report Dialog Options"))); } ReportDialog::~ReportDialog() { delete m_exporter; m_exporter = 0; - saveDialogSize(TQString::tqfromLatin1("Report Dialog Options")); + saveDialogSize(TQString::fromLatin1("Report Dialog Options")); } void ReportDialog::slotGenerate() { GUI::CursorSaver cs(TQt::waitCursor); - TQString fileName = TQString::tqfromLatin1("report-templates/") + m_templateCombo->currentData().toString(); + TQString fileName = TQString::fromLatin1("report-templates/") + m_templateCombo->currentData().toString(); TQString xsltFile = locate("appdata", fileName); if(xsltFile.isEmpty()) { kdWarning() << "ReportDialog::setXSLTFile() - can't locate " << m_templateCombo->currentData().toString() << endl; @@ -174,7 +174,7 @@ void ReportDialog::slotRefresh() { m_HTMLPart->begin(u); m_HTMLPart->write(m_exporter->text()); #if 0 - TQFile f(TQString::tqfromLatin1("/tmp/test.html")); + TQFile f(TQString::fromLatin1("/tmp/test.html")); if(f.open(IO_WriteOnly)) { TQTextStream t(&f); t << m_exporter->text(); -- cgit v1.2.1