From c2637a0da6d9a1c8626ca39f8451ab3b7cda487a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:47:59 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kpdf/ui/propertiesdialog.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kpdf/ui/propertiesdialog.cpp') diff --git a/kpdf/ui/propertiesdialog.cpp b/kpdf/ui/propertiesdialog.cpp index d9cee932..d3d0af60 100644 --- a/kpdf/ui/propertiesdialog.cpp +++ b/kpdf/ui/propertiesdialog.cpp @@ -8,7 +8,7 @@ ***************************************************************************/ // qt/kde includes -#include +#include #include #include #include @@ -24,18 +24,18 @@ PropertiesDialog::PropertiesDialog(TQWidget *parent, KPDFDocument *doc) { // Properties TQFrame *page = addPage(i18n("Properties")); - TQGridLayout *tqlayout = new TQGridLayout( page, 2, 2, marginHint(), spacingHint() ); + 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 ) { - tqlayout->addWidget( new TQLabel( 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 TQString mimeName = info->get( "mimeType" ).section( '/', -1 ).upper(); - setCaption( i18n("%1 Properties").tqarg( mimeName ) ); + setCaption( i18n("%1 Properties").arg( mimeName ) ); TQDomElement docElement = info->documentElement(); @@ -49,11 +49,11 @@ PropertiesDialog::PropertiesDialog(TQWidget *parent, KPDFDocument *doc) if ( titleString.isEmpty() || valueString.isEmpty() ) continue; - // create labels and tqlayout them - TQLabel *key = new TQLabel( i18n( "%1:" ).tqarg( titleString ), page ); + // create labels and layout them + TQLabel *key = new TQLabel( i18n( "%1:" ).arg( titleString ), page ); TQLabel *value = new KSqueezedTextLabel( valueString, page ); - tqlayout->addWidget( key, row, 0, AlignRight ); - tqlayout->addWidget( value, row, 1 ); + layout->addWidget( key, row, 0, AlignRight ); + layout->addWidget( value, row, 1 ); row++; // refine maximum width of 'value' labels @@ -66,8 +66,8 @@ PropertiesDialog::PropertiesDialog(TQWidget *parent, KPDFDocument *doc) TQLabel *key = new TQLabel( i18n( "Pages:" ), page ); TQLabel *value = new TQLabel( TQString::number( doc->pages() ), page ); - tqlayout->addWidget( key, row, 0 ); - tqlayout->addWidget( value, row, 1 ); + layout->addWidget( key, row, 0 ); + layout->addWidget( value, row, 1 ); } // Fonts @@ -82,10 +82,10 @@ PropertiesDialog::PropertiesDialog(TQWidget *parent, KPDFDocument *doc) } // current width: left column + right column + dialog borders - int width = tqlayout->tqminimumSize().width() + valMaxWidth + marginHint() + spacingHint() + marginHint() + 30; + int width = layout->minimumSize().width() + valMaxWidth + marginHint() + spacingHint() + marginHint() + 30; if (page2Layout) { - width = TQMAX( width, page2Layout->tqsizeHint().width() + marginHint() + spacingHint() + 31 ); + width = TQMAX( width, page2Layout->sizeHint().width() + marginHint() + spacingHint() + 31 ); } // stay inside the 2/3 of the screen width TQRect screenContainer = KGlobalSettings::desktopGeometry( this ); -- cgit v1.2.1