diff options
Diffstat (limited to 'kipi-plugins/ipodexport/ipodheader.cpp')
-rw-r--r-- | kipi-plugins/ipodexport/ipodheader.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/kipi-plugins/ipodexport/ipodheader.cpp b/kipi-plugins/ipodexport/ipodheader.cpp index 24b2d94..432f734 100644 --- a/kipi-plugins/ipodexport/ipodheader.cpp +++ b/kipi-plugins/ipodexport/ipodheader.cpp @@ -17,22 +17,22 @@ #include "klocale.h" #include "kpushbutton.h" -#include "qlabel.h" -#include "qlayout.h" +#include "tqlabel.h" +#include "tqlayout.h" using namespace IpodExport; -IpodHeader::IpodHeader( QWidget *parent, const char *name, WFlags f ) - : QFrame( parent, name, f ) +IpodHeader::IpodHeader( TQWidget *tqparent, const char *name, WFlags f ) + : TQFrame( tqparent, name, f ) { - QVBoxLayout *layout = new QVBoxLayout( this, 10/*margin*/, 5/*spacing*/ ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( this, 10/*margin*/, 5/*spacing*/ ); - setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ); + tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - m_messageLabel = new QLabel( QString::null, this ); - m_messageLabel->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ); + m_messageLabel = new TQLabel( TQString(), this ); + m_messageLabel->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - QHBoxLayout *buttonLayout = new QHBoxLayout; + TQHBoxLayout *buttonLayout = new TQHBoxLayout; m_button = new KPushButton( this ); m_button->hide(); @@ -40,8 +40,8 @@ IpodHeader::IpodHeader( QWidget *parent, const char *name, WFlags f ) buttonLayout->addWidget( m_button ); buttonLayout->addStretch( 1 ); - layout->addWidget( m_messageLabel ); - layout->addLayout( buttonLayout ); + tqlayout->addWidget( m_messageLabel ); + tqlayout->addLayout( buttonLayout ); } void IpodHeader::setViewType( ViewType view ) @@ -71,54 +71,54 @@ void IpodHeader::setNoIpod() { m_messageLabel->setText( i18n("<p align=\"center\"><b>No iPod was detected</b></p>" ) ); - setPaletteBackgroundColor( QColor(147,18,18) ); - m_messageLabel->setPaletteBackgroundColor( QColor(147,18,18) ); - m_messageLabel->setPaletteForegroundColor( Qt::white ); + setPaletteBackgroundColor( TQColor(147,18,18) ); + m_messageLabel->setPaletteBackgroundColor( TQColor(147,18,18) ); + m_messageLabel->setPaletteForegroundColor( TQt::white ); m_button->setText( i18n( "Refresh" ) ); m_button->show(); m_button->disconnect(); - connect( m_button, SIGNAL( clicked() ), SIGNAL( refreshDevices() ) ); + connect( m_button, TQT_SIGNAL( clicked() ), TQT_SIGNAL( refreshDevices() ) ); } void IpodHeader::setIncompatibleIpod() { - const QString modelType = UploadDialog::instance()->ipodModel(); + const TQString modelType = UploadDialog::instance()->ipodModel(); - m_messageLabel->setText( i18n("<p align=\"center\"><b>Your iPod (%1) does not seem to support artwork.</b></p>" ).arg( modelType ) ); + m_messageLabel->setText( i18n("<p align=\"center\"><b>Your iPod (%1) does not seem to support artwork.</b></p>" ).tqarg( modelType ) ); - setPaletteBackgroundColor( QColor(225,150,0) ); - m_messageLabel->setPaletteBackgroundColor( QColor(225,150,0) ); - m_messageLabel->setPaletteForegroundColor( Qt::white ); + setPaletteBackgroundColor( TQColor(225,150,0) ); + m_messageLabel->setPaletteBackgroundColor( TQColor(225,150,0) ); + m_messageLabel->setPaletteForegroundColor( TQt::white ); m_button->setText( i18n( "Set iPod Model" ) ); // m_button->show(); m_button->hide(); // FIXME its not implemented! m_button->disconnect(); - connect( m_button, SIGNAL( clicked() ), SIGNAL( updateSysInfo() ) ); + connect( m_button, TQT_SIGNAL( clicked() ), TQT_SIGNAL( updateSysInfo() ) ); } void IpodHeader::setValidIpod() { - const QString modelType = UploadDialog::instance()->ipodModel(); - const QString mountPoint = UploadDialog::instance()->mountPoint(); + const TQString modelType = UploadDialog::instance()->ipodModel(); + const TQString mountPoint = UploadDialog::instance()->mountPoint(); if( !mountPoint.isEmpty() ) { m_messageLabel->setText( i18n("<p align=\"center\"><b>iPod %1 detected at: %2</b></p>" ) - .arg( modelType, mountPoint ) ); + .tqarg( modelType, mountPoint ) ); } else { m_messageLabel->setText( i18n("<p align=\"center\"><b>iPod %1 detected</b></p>" ) - .arg( modelType ) ); + .tqarg( modelType ) ); } - setPaletteBackgroundColor( QColor(0,98,0) ); - m_messageLabel->setPaletteBackgroundColor( QColor(0,98,0) ); - m_messageLabel->setPaletteForegroundColor( Qt::white ); + setPaletteBackgroundColor( TQColor(0,98,0) ); + m_messageLabel->setPaletteBackgroundColor( TQColor(0,98,0) ); + m_messageLabel->setPaletteForegroundColor( TQt::white ); m_button->hide(); } |