Пример #1
0
void ServiceButton::startDrag()
{
    QString path = _service->desktopEntryPath();

    // If the path to the desktop file is relative, try to get the full
    // path from KStdDirs.
    path = locate("apps", path);

    KURL url;
    url.setPath(path);
    emit dragme(KURL::List(url), labelIcon());
}
Пример #2
0
void BrowserButton::startDrag()
{
    KUrl url(topMenu->path());
    emit dragme(KUrl::List(url), labelIcon());
}
Пример #3
0
void PanelButton::startDrag()
{
    emit dragme(m_icon);
}