summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/taskbarapplet/mailapplet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/mail/taskbarapplet/mailapplet.cpp b/noncore/net/mail/taskbarapplet/mailapplet.cpp
index 8bf4b89..5ba7085 100644
--- a/noncore/net/mail/taskbarapplet/mailapplet.cpp
+++ b/noncore/net/mail/taskbarapplet/mailapplet.cpp
@@ -12,33 +12,33 @@
12#include <opie/odevice.h> 12#include <opie/odevice.h>
13 13
14#include "mailapplet.h" 14#include "mailapplet.h"
15 15
16using namespace Opie; 16using namespace Opie;
17 17
18MailApplet::MailApplet( QWidget *parent, const char *name, WFlags fl ) 18MailApplet::MailApplet( QWidget *parent, const char *name, WFlags fl )
19 : QButton( parent, name, fl ) { 19 : QButton( parent, name, fl ) {
20 20
21 m_config = new Config( "mail" ); 21 m_config = new Config( "mail" );
22 m_config->setGroup( "Applet" ); 22 m_config->setGroup( "Applet" );
23 23
24 QVBoxLayout *layout = new QVBoxLayout( this ); 24 QVBoxLayout *layout = new QVBoxLayout( this );
25 layout->addItem( new QSpacerItem( 0,0 ) ); 25 layout->addItem( new QSpacerItem( 0,0 ) );
26 26
27 QLabel *pixmap = new QLabel( this ); 27 QLabel *pixmap = new QLabel( this );
28 pixmap->setPixmap( Resource::loadPixmap( "opiemail/mailchecker" ) ); 28 pixmap->setPixmap( Resource::loadPixmap( "mail/mailchecker" ) );
29 layout->addWidget( pixmap ); 29 layout->addWidget( pixmap );
30 30
31 layout->addItem( new QSpacerItem( 0,0 ) ); 31 layout->addItem( new QSpacerItem( 0,0 ) );
32 32
33 hide(); 33 hide();
34 34
35 connect( this, SIGNAL( clicked() ), SLOT( slotClicked() ) ); 35 connect( this, SIGNAL( clicked() ), SLOT( slotClicked() ) );
36 36
37 if ( !m_config->readBoolEntry( "Disabled", false ) ) { 37 if ( !m_config->readBoolEntry( "Disabled", false ) ) {
38 m_intervalMs = m_config->readNumEntry( "CheckEvery", 5 ) * 60000; 38 m_intervalMs = m_config->readNumEntry( "CheckEvery", 5 ) * 60000;
39 m_intervalTimer = new QTimer(); 39 m_intervalTimer = new QTimer();
40 m_intervalTimer->start( m_intervalMs ); 40 m_intervalTimer->start( m_intervalMs );
41 connect( m_intervalTimer, SIGNAL(timeout() ), SLOT( slotCheck() ) ); 41 connect( m_intervalTimer, SIGNAL(timeout() ), SLOT( slotCheck() ) );
42 42
43 QTimer::singleShot( 0, this, SLOT( slotCheck() ) ); 43 QTimer::singleShot( 0, this, SLOT( slotCheck() ) );
44 } 44 }