diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kpdf/ui/propertiesdialog.cpp | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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); } |