~ubuntu-branches/ubuntu/precise/networkmanagement/precise

« back to all changes in this revision

Viewing changes to applet/vpninterfaceitem.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-10-23 14:00:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20111023140013-e38hdzybcg6zndrk
Tags: 0.9~svngit.nm09.20111023.ff842e-0ubuntu1
* New upstream snapshot.
* Drop all patches, merged upstream.
* Add kubuntu_add_subdirectory_po.diff to build the translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
    // Catch all kinds of signals to update the VPN widget
44
44
 
45
 
    connect(m_activatables, SIGNAL(activatableAdded(RemoteActivatable*)),
 
45
    connect(m_activatables, SIGNAL(activatableAdded(RemoteActivatable*, int)),
46
46
            SLOT(activatableAdded(RemoteActivatable *)));
47
47
    connect(m_activatables, SIGNAL(activatableRemoved(RemoteActivatable*)),
48
48
            SLOT(activatableRemoved(RemoteActivatable *)));
110
110
        m_connectionNameLabel->setText(i18nc("VPN state label", "Not Connected..."));
111
111
    }
112
112
    m_disconnectButton->setVisible(showDisconnect);
113
 
    if (m_vpnActivatables.count()) {
 
113
    if (!m_vpnActivatables.isEmpty()) {
114
114
        //kDebug() << m_vpnActivatables.count() << "VPN connections have become available!";
115
115
        show();
116
116
    } else {
182
182
    }
183
183
    return false;
184
184
}
 
185
 
 
186
void VpnInterfaceItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
 
187
{
 
188
    if (!m_vpnActivatables.isEmpty())
 
189
        emit hoverEnter();
 
190
 
 
191
    InterfaceItem::hoverEnterEvent(event);
 
192
}
 
193
 
 
194
void VpnInterfaceItem::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
 
195
{
 
196
    if (!m_vpnActivatables.isEmpty())
 
197
        emit hoverLeave();
 
198
 
 
199
    InterfaceItem::hoverLeaveEvent(event);
 
200
}
185
201
// vim: sw=4 sts=4 et tw=100