diff options
Diffstat (limited to 'kpdf/ui/propertiesdialog.cpp')
-rw-r--r-- | kpdf/ui/propertiesdialog.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kpdf/ui/propertiesdialog.cpp b/kpdf/ui/propertiesdialog.cpp index d5810a07..df03422e 100644 --- a/kpdf/ui/propertiesdialog.cpp +++ b/kpdf/ui/propertiesdialog.cpp @@ -8,8 +8,8 @@ ***************************************************************************/ // qt/kde includes -#include <qlayout.h> -#include <qlabel.h> +#include <tqlayout.h> +#include <tqlabel.h> #include <klistview.h> #include <klocale.h> #include <ksqueezedtextlabel.h> @@ -19,39 +19,39 @@ #include "propertiesdialog.h" #include "core/document.h" -PropertiesDialog::PropertiesDialog(QWidget *parent, KPDFDocument *doc) +PropertiesDialog::PropertiesDialog(TQWidget *parent, KPDFDocument *doc) : KDialogBase( Tabbed, i18n( "Unknown File" ), Ok, Ok, parent, 0, true, true ) { // Properties - QFrame *page = addPage(i18n("Properties")); - QGridLayout *layout = new QGridLayout( page, 2, 2, marginHint(), spacingHint() ); + TQFrame *page = addPage(i18n("Properties")); + TQGridLayout *layout = new TQGridLayout( page, 2, 2, marginHint(), spacingHint() ); // get document info, if not present display blank data and a warning const DocumentInfo * info = doc->documentInfo(); if ( !info ) { - layout->addWidget( new QLabel( i18n( "No document opened." ), page ), 0, 0 ); + layout->addWidget( new TQLabel( i18n( "No document opened." ), page ), 0, 0 ); return; } // mime name based on mimetype id - QString mimeName = info->get( "mimeType" ).section( '/', -1 ).upper(); + TQString mimeName = info->get( "mimeType" ).section( '/', -1 ).upper(); setCaption( i18n("%1 Properties").arg( mimeName ) ); - QDomElement docElement = info->documentElement(); + TQDomElement docElement = info->documentElement(); int row = 0; int valMaxWidth = 100; - for ( QDomNode node = docElement.firstChild(); !node.isNull(); node = node.nextSibling() ) { - QDomElement element = node.toElement(); + for ( TQDomNode node = docElement.firstChild(); !node.isNull(); node = node.nextSibling() ) { + TQDomElement element = node.toElement(); - QString titleString = element.attribute( "title" ); - QString valueString = element.attribute( "value" ); + TQString titleString = element.attribute( "title" ); + TQString valueString = element.attribute( "value" ); if ( titleString.isEmpty() || valueString.isEmpty() ) continue; // create labels and layout them - QLabel *key = new QLabel( i18n( "%1:" ).arg( titleString ), page ); - QLabel *value = new KSqueezedTextLabel( valueString, page ); + TQLabel *key = new TQLabel( i18n( "%1:" ).arg( titleString ), page ); + TQLabel *value = new KSqueezedTextLabel( valueString, page ); layout->addWidget( key, row, 0, AlignRight ); layout->addWidget( value, row, 1 ); row++; @@ -61,21 +61,21 @@ PropertiesDialog::PropertiesDialog(QWidget *parent, KPDFDocument *doc) } // add the number of pages if the generator hasn't done it already - QDomNodeList list = docElement.elementsByTagName( "pages" ); + TQDomNodeList list = docElement.elementsByTagName( "pages" ); if ( list.count() == 0 ) { - QLabel *key = new QLabel( i18n( "Pages:" ), page ); - QLabel *value = new QLabel( QString::number( doc->pages() ), page ); + TQLabel *key = new TQLabel( i18n( "Pages:" ), page ); + TQLabel *value = new TQLabel( TQString::number( doc->pages() ), page ); layout->addWidget( key, row, 0 ); layout->addWidget( value, row, 1 ); } // Fonts - QVBoxLayout *page2Layout = 0; + TQVBoxLayout *page2Layout = 0; if (doc->hasFonts()) { - QFrame *page2 = addPage(i18n("Fonts")); - page2Layout = new QVBoxLayout(page2, 0, KDialog::spacingHint()); + TQFrame *page2 = addPage(i18n("Fonts")); + page2Layout = new TQVBoxLayout(page2, 0, KDialog::spacingHint()); KListView *lv = new KListView(page2); page2Layout->add(lv); doc->putFontInfo(lv); @@ -88,7 +88,7 @@ PropertiesDialog::PropertiesDialog(QWidget *parent, KPDFDocument *doc) width = QMAX( width, page2Layout->sizeHint().width() + marginHint() + spacingHint() + 31 ); } // stay inside the 2/3 of the screen width - QRect screenContainer = KGlobalSettings::desktopGeometry( this ); + TQRect screenContainer = KGlobalSettings::desktopGeometry( this ); width = QMIN( width, 2*screenContainer.width()/3 ); resize(width, 1); } |