~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to kde/src/extendedaction.cpp

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140128182336-3xenud1kbnwmf3mz
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2009-2013 by Savoir-Faire Linux                         *
 
2
 *   Copyright (C) 2009-2014 by Savoir-Faire Linux                         *
3
3
 *   Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com>*
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
16
16
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
17
17
 **************************************************************************/
18
18
#include "extendedaction.h"
 
19
#include <KIcon>
19
20
 
20
21
ExtendedAction::ExtendedAction(QObject* parent) : KAction(parent),m_pIcon(nullptr)
21
22
{
24
25
 
25
26
ExtendedAction::~ExtendedAction()
26
27
{
27
 
   if (m_pIcon) delete m_pIcon;
 
28
   delete m_pIcon;
28
29
}
29
30
 
30
31
const KIcon& ExtendedAction::altIcon()
32
33
   return (const KIcon&) *m_pIcon;
33
34
}
34
35
 
35
 
void ExtendedAction::setAltIcon(QString path)
 
36
void ExtendedAction::setAltIcon(const QString &path)
36
37
{
37
38
   m_pIcon = new KIcon(path);
38
39
}
39
40
 
 
41
void ExtendedAction::setAltIcon(const KIcon &icon)
 
42
{
 
43
   m_pIcon = new KIcon(icon);
 
44
}
 
45
 
40
46
void ExtendedAction::setText(const QString& newText)
41
47
{
42
48
   QAction::setText(newText);