summaryrefslogtreecommitdiffstats
path: root/ksim/monitors/mail
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /ksim/monitors/mail
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksim/monitors/mail')
-rw-r--r--ksim/monitors/mail/ksimmail.cpp22
-rw-r--r--ksim/monitors/mail/ksimmail.h10
2 files changed, 16 insertions, 16 deletions
diff --git a/ksim/monitors/mail/ksimmail.cpp b/ksim/monitors/mail/ksimmail.cpp
index 6ca1142..fdda6bd 100644
--- a/ksim/monitors/mail/ksimmail.cpp
+++ b/ksim/monitors/mail/ksimmail.cpp
@@ -19,9 +19,9 @@
// $Id$
-#include <qbitmap.h>
-#include <qlayout.h>
-#include <qtimer.h>
+#include <tqbitmap.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
#include <kaboutapplication.h>
#include <kdebug.h>
@@ -69,7 +69,7 @@ void MailPlugin::showAbout()
MailView::MailView( KSim::PluginObject* parent, const char* name )
: KSim::PluginView( parent, name )
{
- QVBoxLayout* layout = new QVBoxLayout( this );
+ TQVBoxLayout* layout = new TQVBoxLayout( this );
MailLabel* label = new MailLabel( this );
layout->addWidget( label, 0, AlignHCenter );
@@ -87,13 +87,13 @@ void MailView::updateDisplay()
{
}
-MailLabel::MailLabel( QWidget* parent )
+MailLabel::MailLabel( TQWidget* parent )
: KSim::Label( KSim::Types::Mail, parent )
{
// label->setPixmap( KSim::ThemeLoader::self().current().krellMail() );
configureObject( false );
- QTimer* timer = new QTimer( this );
- connect( timer, SIGNAL( timeout() ), SLOT( animation() ) );
+ TQTimer* timer = new TQTimer( this );
+ connect( timer, TQT_SIGNAL( timeout() ), TQT_SLOT( animation() ) );
timer->start( 100 );
}
@@ -115,7 +115,7 @@ void MailLabel::configureObject( bool repaint )
KSim::Label::configureObject( repaint );
}
-void MailLabel::paintEvent( QPaintEvent* e )
+void MailLabel::paintEvent( TQPaintEvent* e )
{
KSim::Label::paintEvent( e );
}
@@ -127,13 +127,13 @@ void MailLabel::animation()
if ( f++ >= m_frames ) f = 1;
}
-QPixmap MailLabel::frame( const QPixmap& source, int number ) const
+TQPixmap MailLabel::frame( const TQPixmap& source, int number ) const
{
- QPixmap result( source.width(), source.height() / m_frames );
+ TQPixmap result( source.width(), source.height() / m_frames );
bitBlt( &result, 0, 0, &source, 0, number * source.height() / m_frames );
if ( source.mask() )
{
- QBitmap mask( result.size() );
+ TQBitmap mask( result.size() );
bitBlt( &mask, 0, 0, source.mask(), 0, number * source.height() / m_frames );
result.setMask( mask );
}
diff --git a/ksim/monitors/mail/ksimmail.h b/ksim/monitors/mail/ksimmail.h
index fd8790a..f5a42d7 100644
--- a/ksim/monitors/mail/ksimmail.h
+++ b/ksim/monitors/mail/ksimmail.h
@@ -53,23 +53,23 @@ class MailLabel : public KSim::Label
{
Q_OBJECT
public:
- MailLabel( QWidget* parent );
+ MailLabel( TQWidget* parent );
virtual ~MailLabel();
virtual void configureObject( bool );
protected:
- virtual void paintEvent( QPaintEvent* );
+ virtual void paintEvent( TQPaintEvent* );
private slots:
void animation();
private:
- QPixmap frame( const QPixmap& source, int number ) const;
+ TQPixmap frame( const TQPixmap& source, int number ) const;
private:
- QPixmap m_envelope;
- QPixmap m_penguin;
+ TQPixmap m_envelope;
+ TQPixmap m_penguin;
int m_frames;
int m_delay;
};