summaryrefslogtreecommitdiffstats
path: root/kradio3/src/aboutwidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:57:04 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:57:04 -0600
commit6df9eac4b9928768bf0c3dc988bac1c0c1fbb685 (patch)
treee9c9e6486689b74eac0c7c4af8e910df3942fa31 /kradio3/src/aboutwidget.cpp
parent5fb78f4b68672906005b059e7e5066c702bc5c90 (diff)
downloadtderadio-6df9eac4b9928768bf0c3dc988bac1c0c1fbb685.tar.gz
tderadio-6df9eac4b9928768bf0c3dc988bac1c0c1fbb685.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 5fb78f4b68672906005b059e7e5066c702bc5c90.
Diffstat (limited to 'kradio3/src/aboutwidget.cpp')
-rw-r--r--kradio3/src/aboutwidget.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kradio3/src/aboutwidget.cpp b/kradio3/src/aboutwidget.cpp
index e873bbc..8d81179 100644
--- a/kradio3/src/aboutwidget.cpp
+++ b/kradio3/src/aboutwidget.cpp
@@ -25,13 +25,13 @@
#include <tqframe.h>
#include <kaboutdialog.h>
#include <tqtabwidget.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqtabbar.h>
#include <tqimage.h>
#include <kglobalsettings.h>
#include <ktextbrowser.h>
-#include <textedit.h>
+#include <tqtextedit.h>
#include <kdebug.h>
#include <kapplication.h>
#include <klocale.h>
@@ -45,8 +45,8 @@ class KRadioAboutTabWidget : public TQTabWidget
{
public:
KRadioAboutTabWidget( TQWidget* parent ) : TQTabWidget( parent ) {}
- TQSize sizeHint() const {
- return TQTabWidget::sizeHint().expandedTo( tabBar()->sizeHint() + TQSize(4,4) );
+ TQSize tqsizeHint() const {
+ return TQTabWidget::tqsizeHint().expandedTo( tabBar()->tqsizeHint() + TQSize(4,4) );
}
};
@@ -75,7 +75,7 @@ KRadioAboutWidget::KRadioAboutWidget(const KAboutData &aboutData, int layoutType
if( layoutType & AbtTitle )
{
mTitleLabel = new TQLabel( this, "title" );
- mTitleLabel->setAlignment(AlignCenter);
+ mTitleLabel->tqsetAlignment(AlignCenter);
mTopLayout->addWidget( mTitleLabel );
mTopLayout->addSpacing( KDialog::spacingHint() );
}
@@ -190,9 +190,9 @@ void KRadioAboutWidget::show( void )
TQWidget::show();
}
-TQSize KRadioAboutWidget::sizeHint( void ) const
+TQSize KRadioAboutWidget::tqsizeHint( void ) const
{
- return minimumSize().expandedTo( TQSize( TQWidget::sizeHint().width(), 0 ) );
+ return tqminimumSize().expandedTo( TQSize( TQWidget::tqsizeHint().width(), 0 ) );
}
void KRadioAboutWidget::fontChange( const TQFont &/*oldFont*/ )
@@ -211,7 +211,7 @@ void KRadioAboutWidget::fontChange( const TQFont &/*oldFont*/ )
f.setBold( true );
mVersionLabel->setFont(f);
mAuthorLabel->setFont(f);
- mVersionLabel->parentWidget()->layout()->activate();
+ mVersionLabel->parentWidget()->tqlayout()->activate();
}
update();
@@ -279,7 +279,7 @@ KAboutContainer *KRadioAboutWidget::addContainerPage( const TQString &title,
{
if( mPageTab == 0 )
{
- kdDebug(291) << "addPage: " << i18n("Invalid layout") << endl;
+ kdDebug(291) << "addPage: " << i18n("Invalid tqlayout") << endl;
return 0;
}
@@ -309,7 +309,7 @@ KAboutContainer *KRadioAboutWidget::addScrolledContainerPage(
{
if( mPageTab == 0 )
{
- kdDebug(291) << "addPage: " << "Invalid layout" << endl;
+ kdDebug(291) << "addPage: " << "Invalid tqlayout" << endl;
return 0;
}
@@ -338,7 +338,7 @@ TQFrame *KRadioAboutWidget::addEmptyPage( const TQString &title )
{
if( mPageTab == 0 )
{
- kdDebug(291) << "addPage: " << "Invalid layout" << endl;
+ kdDebug(291) << "addPage: " << "Invalid tqlayout" << endl;
return 0;
}
@@ -376,7 +376,7 @@ void KRadioAboutWidget::setTitle( const TQString &title )
{
if( mTitleLabel == 0 )
{
- kdDebug(291) << "setTitle: " << "Invalid layout" << endl;
+ kdDebug(291) << "setTitle: " << "Invalid tqlayout" << endl;
return;
}
mTitleLabel->setText(title);
@@ -387,7 +387,7 @@ void KRadioAboutWidget::setImage( const TQString &fileName )
{
if( mImageLabel == 0 )
{
- kdDebug(291) << "setImage: " << "Invalid layout" << endl;
+ kdDebug(291) << "setImage: " << "Invalid tqlayout" << endl;
return;
}
if( fileName.isNull() )
@@ -402,7 +402,7 @@ void KRadioAboutWidget::setImage( const TQString &fileName )
pix = logo;
mImageLabel->setPixmap( pix );
}
- mImageFrame->layout()->activate();
+ mImageFrame->tqlayout()->activate();
}
@@ -441,18 +441,18 @@ void KRadioAboutWidget::setProduct( const TQString &appName,
{
if( mIconLabel == 0 )
{
- kdDebug(291) << "setProduct: " << "Invalid layout" << endl;
+ kdDebug(291) << "setProduct: " << "Invalid tqlayout" << endl;
return;
}
if ( kapp )
mIconLabel->setPixmap( kapp->icon() );
- TQString msg1 = i18n("%1 %2 (Using KDE %3)").arg(appName).
- arg(TQString::fromLatin1(KRADIO_VERSION)).
- arg(TQString::fromLatin1(TDE_VERSION_STRING));
- TQString msg2 = !year.isEmpty() ? i18n("%1 %2, %3").arg('�').arg(year).
- arg(author) : TQString::fromLatin1("");
+ TQString msg1 = i18n("%1 %2 (Using KDE %3)").tqarg(appName).
+ arg(TQString::tqfromLatin1(KRADIO_VERSION)).
+ arg(TQString::tqfromLatin1(TDE_VERSION_STRING));
+ TQString msg2 = !year.isEmpty() ? i18n("%1 %2, %3").tqarg('�').tqarg(year).
+ arg(author) : TQString::tqfromLatin1("");
mVersionLabel->setText( msg1 );
mAuthorLabel->setText( msg2 );
@@ -461,7 +461,7 @@ void KRadioAboutWidget::setProduct( const TQString &appName,
mAuthorLabel->hide();
}
- mIconLabel->parentWidget()->layout()->activate();
+ mIconLabel->parentWidget()->tqlayout()->activate();
}
@@ -563,7 +563,7 @@ void KRadioAboutWidget::setAboutData(const KAboutData &_aboutData)
TQLabel *label = new TQLabel(KAboutData::aboutTranslationTeam(),
translatorPage);
label->adjustSize();
- label->setMinimumSize(label->sizeHint());
+ label->setMinimumSize(label->tqsizeHint());
translatorPage->addWidget(label);
}