summaryrefslogtreecommitdiffstats
path: root/src/reportdialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:15:24 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:15:24 -0600
commit8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch)
tree55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/reportdialog.cpp
parent2781e27b871150395a5a82e221684108641002b2 (diff)
downloadtellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz
tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/reportdialog.cpp')
-rw-r--r--src/reportdialog.cpp18
1 files changed, 9 insertions, 9 deletions
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<TQString, TQString> 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("<html><style>p{font-weight:bold;width:50%;"
+ TQString text = TQString::fromLatin1("<html><style>p{font-weight:bold;width:50%;"
"margin:20% auto auto auto;text-align:center;"
"background:white;color:%1;}</style><body><p>").tqarg(contrastColor.name())
+ i18n("Select a report template and click <em>Generate</em>.") + ' '
+ i18n("Some reports may take several seconds to generate for large collections.");
- + TQString::tqfromLatin1("</p></body></html>");
+ + TQString::fromLatin1("</p></body></html>");
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();