diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:21 -0600 |
commit | 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (patch) | |
tree | 89de88213bd261e4ccaade899ab2d6ec34b3a5a7 /korn/boxcontaineritem.cpp | |
parent | 1dad5f662a09dfc5cc041caffe0f674044a4dcec (diff) | |
download | tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.tar.gz tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'korn/boxcontaineritem.cpp')
-rw-r--r-- | korn/boxcontaineritem.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/korn/boxcontaineritem.cpp b/korn/boxcontaineritem.cpp index c412a07b..b026e95c 100644 --- a/korn/boxcontaineritem.cpp +++ b/korn/boxcontaineritem.cpp @@ -81,7 +81,7 @@ BoxContainerItem::~BoxContainerItem() void BoxContainerItem::readConfig( KConfig* config, const int index ) { //Read information about how the thing have to look like - config->setGroup( TQString( "korn-%1" ).tqarg( index ) ); + config->setGroup( TQString( "korn-%1" ).arg( index ) ); if( config->readBoolEntry( "hasnormalicon", false ) ) _icons[ 0 ] = new TQString( config->readEntry( "normalicon", "" ) ); else @@ -216,23 +216,23 @@ void BoxContainerItem::showPassivePopup( TQWidget* parent, TQPtrList< KornMailSu { KPassivePopup *popup = new KPassivePopup( parent, "Passive popup" ); - TQVBox *mainvtqlayout = popup->standardView( i18n( "KOrn - %1/%2 (total: %3)" ).tqarg( TQString(objId()) ).tqarg( accountName ) - .tqarg( total ), "", TQPixmap(), 0 ); - TQGrid *maingtqlayout = new TQGrid( date ? 3 : 2 ,mainvtqlayout, "Grid-Layout" ); + TQVBox *mainvlayout = popup->standardView( i18n( "KOrn - %1/%2 (total: %3)" ).arg( TQString(objId()) ).arg( accountName ) + .arg( total ), "", TQPixmap(), 0 ); + TQGrid *mainglayout = new TQGrid( date ? 3 : 2 ,mainvlayout, "Grid-Layout" ); - TQLabel *title = new TQLabel( i18n("From"), maingtqlayout, "from_label" ); + TQLabel *title = new TQLabel( i18n("From"), mainglayout, "from_label" ); TQFont font = title->font(); font.setBold( true ); title->setFont( font ); - title = new TQLabel( i18n("Subject"), maingtqlayout, "subject_label" ); + title = new TQLabel( i18n("Subject"), mainglayout, "subject_label" ); font = title->font(); font.setBold( true ); title->setFont( font ); if( date ) { - title = new TQLabel( i18n("Date"), maingtqlayout, "date_label" ); + title = new TQLabel( i18n("Date"), mainglayout, "date_label" ); font = title->font(); font.setBold( true ); title->setFont( font ); @@ -240,19 +240,19 @@ void BoxContainerItem::showPassivePopup( TQWidget* parent, TQPtrList< KornMailSu for( KornMailSubject* subject = list->first(); subject; subject = list->next() ) { - new TQLabel( subject->getSender(), maingtqlayout, "from-value" ); - new TQLabel( subject->getSubject(), maingtqlayout, "subject-value" ); + new TQLabel( subject->getSender(), mainglayout, "from-value" ); + new TQLabel( subject->getSubject(), mainglayout, "subject-value" ); if( date ) { TQDateTime tijd; tijd.setTime_t( subject->getDate() ); - new TQLabel( tijd.toString(), maingtqlayout, "date-value" ); + new TQLabel( tijd.toString(), mainglayout, "date-value" ); } } popup->setAutoDelete( true ); //Now, now care for deleting these pointers. - popup->setView( mainvtqlayout ); + popup->setView( mainvlayout ); popup->show(); //Display it } @@ -316,7 +316,7 @@ void BoxContainerItem::drawLabel( TQLabel *label, const int count, const bool ne if( _fonts[ index ] ) label->setFont( *_fonts[ index ] ); label->setPaletteForegroundColor( *_fgColour[ index ] ); - label->tqsetAlignment( TQt::AlignHCenter | TQt::AlignVCenter ); + label->setAlignment( TQt::AlignHCenter | TQt::AlignVCenter ); label->setText( TQString::number( count ) ); } @@ -339,7 +339,7 @@ TQPixmap BoxContainerItem::calcComplexPixmap( const TQPixmap &icon, const TQColo //Make a transparent number; first make a white number on a black background. //This pixmap also is the base alpha-channel, the foreground colour is added later. numberPixmap.fill( TQt::black ); - p.tqbegin( &numberPixmap, false ); + p.begin( &numberPixmap, false ); p.setPen( TQt::white ); if( font ) p.setFont( *font ); @@ -371,7 +371,7 @@ TQPixmap BoxContainerItem::calcComplexPixmap( const TQPixmap &icon, const TQColo void BoxContainerItem::setAnimIcon( TQLabel* label, const TQString& anim ) { - label->tqsetAlignment( TQt::AlignHCenter | TQt::AlignVCenter ); + label->setAlignment( TQt::AlignHCenter | TQt::AlignVCenter ); label->setMovie( TQMovie( anim ) ); label->show(); } |