author | harlekin <harlekin> | 2004-01-05 21:13:38 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-01-05 21:13:38 (UTC) |
commit | 0c41bcb3472b013a55b990bc45280043dfcf4986 (patch) (side-by-side diff) | |
tree | 1136f4580b5f8f8a2a699545f8e9fb0006a0e054 /noncore/net/mail/taskbarapplet/mailappletimpl.cpp | |
parent | 3804209658d051d197526a28561bbd2e31b6f439 (diff) | |
download | opie-0c41bcb3472b013a55b990bc45280043dfcf4986.zip opie-0c41bcb3472b013a55b990bc45280043dfcf4986.tar.gz opie-0c41bcb3472b013a55b990bc45280043dfcf4986.tar.bz2 |
update
Diffstat (limited to 'noncore/net/mail/taskbarapplet/mailappletimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/taskbarapplet/mailappletimpl.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/noncore/net/mail/taskbarapplet/mailappletimpl.cpp b/noncore/net/mail/taskbarapplet/mailappletimpl.cpp index 26f6a6f..c01a674 100644 --- a/noncore/net/mail/taskbarapplet/mailappletimpl.cpp +++ b/noncore/net/mail/taskbarapplet/mailappletimpl.cpp @@ -1,33 +1,36 @@ #include "mailappletimpl.h" #include "mailapplet.h" MailAppletImpl::MailAppletImpl() : m_mailApplet(0), ref(0) { - } MailAppletImpl::~MailAppletImpl() { delete m_mailApplet; } QWidget *MailAppletImpl::applet(QWidget *parent) { - if (!m_mailApplet) m_mailApplet = new MailApplet(parent); + if (!m_mailApplet) + m_mailApplet = new MailApplet(parent); return m_mailApplet; } int MailAppletImpl::position() const { return 4; } QRESULT MailAppletImpl::queryInterface(const QUuid &uuid, QUnknownInterface **iface) { *iface = 0; - if (uuid == IID_QUnknown) *iface = this; - else if (uuid == IID_TaskbarApplet) *iface = this; + if (uuid == IID_QUnknown) + *iface = this; + else if (uuid == IID_TaskbarApplet) + *iface = this; - if (*iface) (*iface)->addRef(); + if (*iface) + (*iface)->addRef(); return QS_OK; } Q_EXPORT_INTERFACE() { Q_CREATE_INSTANCE( MailAppletImpl ) } |