summaryrefslogtreecommitdiffstats
path: root/src/reportdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/reportdialog.cpp')
-rw-r--r--src/reportdialog.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/reportdialog.cpp b/src/reportdialog.cpp
index adf5ec9..d2cb615 100644
--- a/src/reportdialog.cpp
+++ b/src/reportdialog.cpp
@@ -35,7 +35,7 @@
#include <ksortablevaluelist.h>
#include <kfiledialog.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqfile.h>
#include <tqlabel.h>
#include <tqfileinfo.h>
@@ -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::fromLatin1("report-templates/*.xsl"),
+ TQStringList files = KGlobal::dirs()->findAllResources("appdata", TQString::tqfromLatin1("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::fromLatin1(" XSL Template")).utf8(), name.utf8());
+ TQString title = i18n((name + TQString::tqfromLatin1(" 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::fromLatin1("exec")), i18n("&Generate"), mainWidget);
+ KPushButton* pb1 = new KPushButton(SmallIconSet(TQString::tqfromLatin1("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::fromLatin1("<html><style>p{font-weight:bold;width:50%;"
+ TQString text = TQString::tqfromLatin1("<html><style>p{font-weight:bold;width:50%;"
"margin:20% auto auto auto;text-align:center;"
- "background:white;color:%1;}</style><body><p>").arg(contrastColor.name())
+ "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::fromLatin1("</p></body></html>");
+ + TQString::tqfromLatin1("</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::fromLatin1("Report Dialog Options")));
+ resize(configDialogSize(TQString::tqfromLatin1("Report Dialog Options")));
}
ReportDialog::~ReportDialog() {
delete m_exporter;
m_exporter = 0;
- saveDialogSize(TQString::fromLatin1("Report Dialog Options"));
+ saveDialogSize(TQString::tqfromLatin1("Report Dialog Options"));
}
void ReportDialog::slotGenerate() {
GUI::CursorSaver cs(TQt::waitCursor);
- TQString fileName = TQString::fromLatin1("report-templates/") + m_templateCombo->currentData().toString();
+ TQString fileName = TQString::tqfromLatin1("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::fromLatin1("/tmp/test.html"));
+ TQFile f(TQString::tqfromLatin1("/tmp/test.html"));
if(f.open(IO_WriteOnly)) {
TQTextStream t(&f);
t << m_exporter->text();
@@ -183,7 +183,7 @@ void ReportDialog::slotRefresh() {
#endif
m_HTMLPart->end();
// is this needed?
-// view()->layout();
+// view()->tqlayout();
}
// actually the print button