From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdvi/infodialog.cpp | 84 ++++++++++++++++++++++++++--------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'kdvi/infodialog.cpp') diff --git a/kdvi/infodialog.cpp b/kdvi/infodialog.cpp index f645def8..91de53d3 100644 --- a/kdvi/infodialog.cpp +++ b/kdvi/infodialog.cpp @@ -8,73 +8,73 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include "dviFile.h" #include "fontpool.h" #include "infodialog.h" -infoDialog::infoDialog( QWidget* parent ) +infoDialog::infoDialog( TQWidget* parent ) : KDialogBase( Tabbed, i18n("Document Info"), Ok, Ok, parent, "Document Info", false, false) { - QFrame *page1 = addPage( i18n("DVI File") ); - QVBoxLayout *topLayout1 = new QVBoxLayout( page1, 0, 6 ); - TextLabel1 = new QTextView( page1, "TextLabel1" ); - QToolTip::add( TextLabel1, i18n("Information on the currently loaded DVI-file.") ); + TQFrame *page1 = addPage( i18n("DVI File") ); + TQVBoxLayout *topLayout1 = new TQVBoxLayout( page1, 0, 6 ); + TextLabel1 = new TQTextView( page1, "TextLabel1" ); + TQToolTip::add( TextLabel1, i18n("Information on the currently loaded DVI-file.") ); topLayout1->addWidget( TextLabel1 ); - QFrame *page2 = addPage( i18n("Fonts") ); - QVBoxLayout *topLayout2 = new QVBoxLayout( page2, 0, 6 ); - TextLabel2 = new QTextView( page2, "TextLabel1" ); + TQFrame *page2 = addPage( i18n("Fonts") ); + TQVBoxLayout *topLayout2 = new TQVBoxLayout( page2, 0, 6 ); + TextLabel2 = new TQTextView( page2, "TextLabel1" ); TextLabel2->setMinimumWidth(fontMetrics().maxWidth()*40); TextLabel2->setMinimumHeight(fontMetrics().height()*10); - QToolTip::add( TextLabel2, i18n("Information on currently loaded fonts.") ); - QWhatsThis::add( TextLabel2, i18n("This text field shows detailed information about the currently loaded fonts. " + TQToolTip::add( TextLabel2, i18n("Information on currently loaded fonts.") ); + TQWhatsThis::add( TextLabel2, i18n("This text field shows detailed information about the currently loaded fonts. " "This is useful for experts who want to locate problems in the setup of TeX or KDVI.") ); topLayout2->addWidget( TextLabel2 ); - QFrame *page3 = addPage( i18n("External Programs") ); - QVBoxLayout *topLayout3 = new QVBoxLayout( page3, 0, 6 ); - TextLabel3 = new QTextView( page3, "TextLabel1" ); + TQFrame *page3 = addPage( i18n("External Programs") ); + TQVBoxLayout *topLayout3 = new TQVBoxLayout( page3, 0, 6 ); + TextLabel3 = new TQTextView( page3, "TextLabel1" ); TextLabel3->setText( i18n("No output from any external program received.") ); - QToolTip::add( TextLabel3, i18n("Output of external programs.") ); - QWhatsThis::add( TextLabel3, i18n("KDVI uses external programs, such as MetaFont, dvipdfm or dvips. " + TQToolTip::add( TextLabel3, i18n("Output of external programs.") ); + TQWhatsThis::add( TextLabel3, i18n("KDVI uses external programs, such as MetaFont, dvipdfm or dvips. " "This text field shows the output of these programs. " "That is useful for experts who want to find problems in the setup of TeX or KDVI.") ); topLayout3->addWidget( TextLabel3 ); MFOutputReceived = false; - headline = QString::null; - pool = QString::null; + headline = TQString::null; + pool = TQString::null; } void infoDialog::setDVIData(dvifile *dviFile) { - QString text = ""; + TQString text = ""; if (dviFile == NULL) text = i18n("There is no DVI file loaded at the moment."); else { text.append(""); - text.append(QString("").arg(i18n("Filename")).arg(dviFile->filename)); + text.append(TQString("").arg(i18n("Filename")).arg(dviFile->filename)); - QFile file(dviFile->filename); + TQFile file(dviFile->filename); if (file.exists()) - text.append(QString("").arg(i18n("File Size")).arg(KIO::convertSize(file.size()))); + text.append(TQString("").arg(i18n("File Size")).arg(KIO::convertSize(file.size()))); else - text.append(QString("").arg(i18n("The file does no longer exist."))); + text.append(TQString("").arg(i18n("The file does no longer exist."))); - text.append(QString("")); - text.append(QString("").arg(i18n("#Pages")).arg(dviFile->total_pages)); - text.append(QString("").arg(i18n("Generator/Date")).arg(dviFile->generatorString)); + text.append(TQString("")); + text.append(TQString("").arg(i18n("#Pages")).arg(dviFile->total_pages)); + text.append(TQString("").arg(i18n("Generator/Date")).arg(dviFile->generatorString)); } // else (dviFile == NULL) TextLabel1->setText( text ); @@ -86,23 +86,23 @@ void infoDialog::setFontInfo(fontPool *fp) TextLabel2->setText(fp->status()); } -void infoDialog::outputReceiver(const QString& _op) +void infoDialog::outputReceiver(const TQString& _op) { - QString op = _op; - op = op.replace( QRegExp("<"), "<" ); + TQString op = _op; + op = op.replace( TQRegExp("<"), "<" ); if (MFOutputReceived == false) { TextLabel3->setText(""+headline+"
"); - headline = QString::null; + headline = TQString::null; } - // It seems that the QTextView wants that we append only full lines. + // It seems that the TQTextView wants that we append only full lines. // We see to that. pool = pool+op; int idx = pool.findRev("\n"); while(idx != -1) { - QString line = pool.left(idx); + TQString line = pool.left(idx); pool = pool.mid(idx+1); // If the Output of the kpsewhich program contains a line starting @@ -111,7 +111,7 @@ void infoDialog::outputReceiver(const QString& _op) int startlineindex = line.find("kpathsea:"); if (startlineindex != -1) { int endstartline = line.find("\n",startlineindex); - QString startLine = line.mid(startlineindex,endstartline-startlineindex); + TQString startLine = line.mid(startlineindex,endstartline-startlineindex); if (MFOutputReceived) TextLabel3->append("
\n"+startLine+""); else @@ -125,10 +125,10 @@ void infoDialog::outputReceiver(const QString& _op) MFOutputReceived = true; } -void infoDialog::clear(const QString& op) +void infoDialog::clear(const TQString& op) { headline = op; - pool = QString::null; + pool = TQString::null; MFOutputReceived = false; } #include "infodialog.moc" -- cgit v1.2.3
%1 %2
%1 %2
%1 %2
%1 %2
%1
%1
%1 %2
%1 %2
%1 %2
%1 %2