summaryrefslogtreecommitdiffstats
path: root/korn/boxcontaineritem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-14 20:16:30 +0000
commit1c93fca14d9ce37499bcfdf994c660186a0b6f17 (patch)
treef2defe163a805a9e34a2142dfde4cdb5e49241e7 /korn/boxcontaineritem.cpp
parent67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (diff)
downloadtdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.tar.gz
tdepim-1c93fca14d9ce37499bcfdf994c660186a0b6f17.zip
Enable kdepim compilation under Qt4
This will likely break Qt3 compilation temporarily, which is an unintended side effect. A third and final kdepim commit will repair Qt3 compilation shortly. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korn/boxcontaineritem.cpp')
-rw-r--r--korn/boxcontaineritem.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/korn/boxcontaineritem.cpp b/korn/boxcontaineritem.cpp
index c357fd4f4..1f4be46a2 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" ).arg( index ) );
+ config->setGroup( TQString( "korn-%1" ).tqarg( index ) );
if( config->readBoolEntry( "hasnormalicon", false ) )
_icons[ 0 ] = new TQString( config->readEntry( "normalicon", "" ) );
else
@@ -171,11 +171,11 @@ void BoxContainerItem::runCommand( const TQString& cmd )
void BoxContainerItem::mouseButtonPressed( TQt::ButtonState state )
{
int button;
- if( state & TQt::LeftButton )
+ if( state & Qt::LeftButton )
button = 0;
- else if( state & TQt::RightButton )
+ else if( state & Qt::RightButton )
button = 2;
- else if( state & TQt::MidButton )
+ else if( state & Qt::MidButton )
button = 1;
else
return; //Invalid mouse button
@@ -216,8 +216,8 @@ void BoxContainerItem::showPassivePopup( TQWidget* tqparent, TQPtrList< KornMail
{
KPassivePopup *popup = new KPassivePopup( tqparent, "Passive popup" );
- TQVBox *mainvtqlayout = popup->standardView( i18n( "KOrn - %1/%2 (total: %3)" ).arg( objId() ).arg( accountName )
- .arg( total ), "", TQPixmap(), 0 );
+ 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" );
TQLabel *title = new TQLabel( i18n("From"), maingtqlayout, "from_label" );
@@ -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.begin( &numberPixmap, false );
+ p.tqbegin( &numberPixmap, false );
p.setPen( TQt::white );
if( font )
p.setFont( *font );