diff options
Diffstat (limited to 'kradio3/src/aboutwidget.cpp')
-rw-r--r-- | kradio3/src/aboutwidget.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/kradio3/src/aboutwidget.cpp b/kradio3/src/aboutwidget.cpp index 2b70a20..2008135 100644 --- a/kradio3/src/aboutwidget.cpp +++ b/kradio3/src/aboutwidget.cpp @@ -41,10 +41,10 @@ // copied (and renamed) from kaboutdialog.cpp // original: KAboutTabWidget -class KRadioAboutTabWidget : public TQTabWidget +class TDERadioAboutTabWidget : public TQTabWidget { public: - KRadioAboutTabWidget( TQWidget* parent ) : TQTabWidget( parent ) {} + TDERadioAboutTabWidget( TQWidget* parent ) : TQTabWidget( parent ) {} TQSize sizeHint() const { return TQTabWidget::sizeHint().expandedTo( tabBar()->sizeHint() + TQSize(4,4) ); } @@ -54,7 +54,7 @@ public: // copied (renamed and extended) from kaboutdialog.cpp // original: KAboutContainerBase -KRadioAboutWidget::KRadioAboutWidget(const TDEAboutData &aboutData, int layoutType, TQWidget *_parent, +TDERadioAboutWidget::TDERadioAboutWidget(const TDEAboutData &aboutData, int layoutType, TQWidget *_parent, char *_name ) : TQWidget( _parent, _name ), mImageLabel(0), mTitleLabel(0), mIconLabel(0),mVersionLabel(0), @@ -119,7 +119,7 @@ KRadioAboutWidget::KRadioAboutWidget(const TDEAboutData &aboutData, int layoutTy vbox->addSpacing(1); vbox = new TQVBoxLayout( mImageFrame, 1 ); - mImageLabel = new KRadioImageTrackLabel( mImageFrame ); + mImageLabel = new TDERadioImageTrackLabel( mImageFrame ); connect( mImageLabel, TQT_SIGNAL(mouseTrack( int, const TQMouseEvent * )), TQT_SLOT( slotMouseTrack( int, const TQMouseEvent * )) ); vbox->addStretch(10); @@ -130,7 +130,7 @@ KRadioAboutWidget::KRadioAboutWidget(const TDEAboutData &aboutData, int layoutTy if( layoutType & AbtTabbed ) { - mPageTab = new KRadioAboutTabWidget( this ); + mPageTab = new TDERadioAboutTabWidget( this ); if( mPageTab == 0 ) { return; } hbox->addWidget( mPageTab, 10 ); } @@ -146,7 +146,7 @@ KRadioAboutWidget::KRadioAboutWidget(const TDEAboutData &aboutData, int layoutTy gbox->setColStretch( 0, 10 ); gbox->setColStretch( 2, 10 ); - mImageLabel = new KRadioImageTrackLabel( mImageFrame ); + mImageLabel = new TDERadioImageTrackLabel( mImageFrame ); connect( mImageLabel, TQT_SIGNAL(mouseTrack( int, const TQMouseEvent * )), TQT_SLOT( slotMouseTrack( int, const TQMouseEvent * )) ); gbox->addWidget( mImageLabel, 1, 1 ); @@ -170,7 +170,7 @@ KRadioAboutWidget::KRadioAboutWidget(const TDEAboutData &aboutData, int layoutTy vbox->addSpacing(1); vbox = new TQVBoxLayout( mImageFrame, 1 ); - mImageLabel = new KRadioImageTrackLabel( mImageFrame ); + mImageLabel = new TDERadioImageTrackLabel( mImageFrame ); connect( mImageLabel, TQT_SIGNAL(mouseTrack( int, const TQMouseEvent * )), TQT_SLOT( slotMouseTrack( int, const TQMouseEvent * )) ); vbox->addStretch(10); @@ -185,17 +185,17 @@ KRadioAboutWidget::KRadioAboutWidget(const TDEAboutData &aboutData, int layoutTy } -void KRadioAboutWidget::show( void ) +void TDERadioAboutWidget::show( void ) { TQWidget::show(); } -TQSize KRadioAboutWidget::sizeHint( void ) const +TQSize TDERadioAboutWidget::sizeHint( void ) const { return minimumSize().expandedTo( TQSize( TQWidget::sizeHint().width(), 0 ) ); } -void KRadioAboutWidget::fontChange( const TQFont &/*oldFont*/ ) +void TDERadioAboutWidget::fontChange( const TQFont &/*oldFont*/ ) { if( mTitleLabel != 0 ) { @@ -217,7 +217,7 @@ void KRadioAboutWidget::fontChange( const TQFont &/*oldFont*/ ) update(); } -TQFrame *KRadioAboutWidget::addTextPage( const TQString &title, +TQFrame *TDERadioAboutWidget::addTextPage( const TQString &title, const TQString &text, bool richText, int numLines ) { @@ -252,7 +252,7 @@ TQFrame *KRadioAboutWidget::addTextPage( const TQString &title, return page; } -TQFrame *KRadioAboutWidget::addLicensePage( const TQString &title, +TQFrame *TDERadioAboutWidget::addLicensePage( const TQString &title, const TQString &text, int numLines) { TQFrame *page = addEmptyPage( title ); @@ -273,7 +273,7 @@ TQFrame *KRadioAboutWidget::addLicensePage( const TQString &title, } -KAboutContainer *KRadioAboutWidget::addContainerPage( const TQString &title, +KAboutContainer *TDERadioAboutWidget::addContainerPage( const TQString &title, int childAlignment, int innerAlignment ) { @@ -302,7 +302,7 @@ KAboutContainer *KRadioAboutWidget::addContainerPage( const TQString &title, } -KAboutContainer *KRadioAboutWidget::addScrolledContainerPage( +KAboutContainer *TDERadioAboutWidget::addScrolledContainerPage( const TQString &title, int childAlignment, int innerAlignment ) @@ -334,7 +334,7 @@ KAboutContainer *KRadioAboutWidget::addScrolledContainerPage( } -TQFrame *KRadioAboutWidget::addEmptyPage( const TQString &title ) +TQFrame *TDERadioAboutWidget::addEmptyPage( const TQString &title ) { if( mPageTab == 0 ) { @@ -350,7 +350,7 @@ TQFrame *KRadioAboutWidget::addEmptyPage( const TQString &title ) } -KAboutContainer *KRadioAboutWidget::addContainer( int childAlignment, +KAboutContainer *TDERadioAboutWidget::addContainer( int childAlignment, int innerAlignment ) { KAboutContainer *container = new KAboutContainer( this, "container", @@ -372,7 +372,7 @@ KAboutContainer *KRadioAboutWidget::addContainer( int childAlignment, -void KRadioAboutWidget::setTitle( const TQString &title ) +void TDERadioAboutWidget::setTitle( const TQString &title ) { if( mTitleLabel == 0 ) { @@ -383,7 +383,7 @@ void KRadioAboutWidget::setTitle( const TQString &title ) } -void KRadioAboutWidget::setImage( const TQString &fileName ) +void TDERadioAboutWidget::setImage( const TQString &fileName ) { if( mImageLabel == 0 ) { @@ -407,7 +407,7 @@ void KRadioAboutWidget::setImage( const TQString &fileName ) } -void KRadioAboutWidget::setImageBackgroundColor( const TQColor &color ) +void TDERadioAboutWidget::setImageBackgroundColor( const TQColor &color ) { if( mImageFrame != 0 ) { @@ -416,7 +416,7 @@ void KRadioAboutWidget::setImageBackgroundColor( const TQColor &color ) } -void KRadioAboutWidget::setImageFrame( bool state ) +void TDERadioAboutWidget::setImageFrame( bool state ) { if( mImageFrame != 0 ) { @@ -434,7 +434,7 @@ void KRadioAboutWidget::setImageFrame( bool state ) } -void KRadioAboutWidget::setProduct( const TQString &appName, +void TDERadioAboutWidget::setProduct( const TQString &appName, const TQString &/*version*/, const TQString &author, const TQString &year ) @@ -465,20 +465,20 @@ void KRadioAboutWidget::setProduct( const TQString &appName, } -void KRadioAboutWidget::slotMouseTrack( int mode, const TQMouseEvent *e ) +void TDERadioAboutWidget::slotMouseTrack( int mode, const TQMouseEvent *e ) { emit mouseTrack( mode, e ); } -void KRadioAboutWidget::slotUrlClick( const TQString &url ) +void TDERadioAboutWidget::slotUrlClick( const TQString &url ) { if ( kapp ) kapp->invokeBrowser( url ); } -void KRadioAboutWidget::slotMailClick( const TQString &/*_name*/, +void TDERadioAboutWidget::slotMailClick( const TQString &/*_name*/, const TQString &_address ) { if ( kapp ) @@ -489,7 +489,7 @@ void KRadioAboutWidget::slotMailClick( const TQString &/*_name*/, // copied (and renamed) from kaboutapplication.cpp // original: KAboutApplication::buildDialog -void KRadioAboutWidget::setAboutData(const TDEAboutData &_aboutData) +void TDERadioAboutWidget::setAboutData(const TDEAboutData &_aboutData) { const TDEAboutData *aboutData = &_aboutData; if (aboutData->programName().length()) { @@ -579,28 +579,28 @@ void KRadioAboutWidget::setAboutData(const TDEAboutData &_aboutData) // copied (and renamed) from kaboutdialog.cpp // original: KImageTrackLabel -KRadioImageTrackLabel::KRadioImageTrackLabel( TQWidget *_parent, const char *_name, WFlags f ) +TDERadioImageTrackLabel::TDERadioImageTrackLabel( TQWidget *_parent, const char *_name, WFlags f ) : TQLabel( _parent, _name, f ) { setText( i18n("Image missing")); } -void KRadioImageTrackLabel::mousePressEvent( TQMouseEvent *e ) +void TDERadioImageTrackLabel::mousePressEvent( TQMouseEvent *e ) { emit mouseTrack( MousePress, e ); } -void KRadioImageTrackLabel::mouseReleaseEvent( TQMouseEvent *e ) +void TDERadioImageTrackLabel::mouseReleaseEvent( TQMouseEvent *e ) { emit mouseTrack( MouseRelease, e ); } -void KRadioImageTrackLabel::mouseDoubleClickEvent( TQMouseEvent *e ) +void TDERadioImageTrackLabel::mouseDoubleClickEvent( TQMouseEvent *e ) { emit mouseTrack( MouseDoubleClick, e ); } -void KRadioImageTrackLabel::mouseMoveEvent ( TQMouseEvent *e ) +void TDERadioImageTrackLabel::mouseMoveEvent ( TQMouseEvent *e ) { emit mouseTrack( MouseDoubleClick, e ); } |