Lines 543-582
void KHTMLPopupGUIClient::slotSaveImageA
Link Here
|
543 |
saveURL( d->m_khtml->widget(), i18n( "Save Image As" ), d->m_imageURL, metaData, QString::null, 0, d->m_suggestedFilename ); |
543 |
saveURL( d->m_khtml->widget(), i18n( "Save Image As" ), d->m_imageURL, metaData, QString::null, 0, d->m_suggestedFilename ); |
544 |
} |
544 |
} |
545 |
|
545 |
|
546 |
void KHTMLPopupGUIClient::slotCopyLinkLocation() |
546 |
void KHTMLPopupGUIClient::slotCopyLinkLocation() |
547 |
{ |
547 |
{ |
|
|
548 |
KURL safeURL(d->m_url); |
549 |
safeURL.setPass(QString::null); |
548 |
#ifndef QT_NO_MIMECLIPBOARD |
550 |
#ifndef QT_NO_MIMECLIPBOARD |
549 |
// Set it in both the mouse selection and in the clipboard |
551 |
// Set it in both the mouse selection and in the clipboard |
550 |
KURL::List lst; |
552 |
KURL::List lst; |
551 |
lst.append( d->m_url ); |
553 |
lst.append( safeURL ); |
552 |
QApplication::clipboard()->setSelectionMode(true); |
554 |
QApplication::clipboard()->setSelectionMode(true); |
553 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
555 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
554 |
QApplication::clipboard()->setSelectionMode(false); |
556 |
QApplication::clipboard()->setSelectionMode(false); |
555 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
557 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
556 |
#else |
558 |
#else |
557 |
QApplication::clipboard()->setText( d->m_url.url() ); //FIXME(E): Handle multiple entries |
559 |
QApplication::clipboard()->setText( safeURL.url() ); //FIXME(E): Handle multiple entries |
558 |
#endif |
560 |
#endif |
559 |
} |
561 |
} |
560 |
|
562 |
|
561 |
void KHTMLPopupGUIClient::slotStopAnimations() |
563 |
void KHTMLPopupGUIClient::slotStopAnimations() |
562 |
{ |
564 |
{ |
563 |
d->m_khtml->stopAnimations(); |
565 |
d->m_khtml->stopAnimations(); |
564 |
} |
566 |
} |
565 |
|
567 |
|
566 |
void KHTMLPopupGUIClient::slotCopyImageLocation() |
568 |
void KHTMLPopupGUIClient::slotCopyImageLocation() |
567 |
{ |
569 |
{ |
|
|
570 |
KURL safeURL(d->m_imageURL); |
571 |
safeURL.setPass(QString::null); |
568 |
#ifndef QT_NO_MIMECLIPBOARD |
572 |
#ifndef QT_NO_MIMECLIPBOARD |
569 |
// Set it in both the mouse selection and in the clipboard |
573 |
// Set it in both the mouse selection and in the clipboard |
570 |
KURL::List lst; |
574 |
KURL::List lst; |
571 |
lst.append( d->m_imageURL); |
575 |
lst.append( safeURL ); |
572 |
QApplication::clipboard()->setSelectionMode(true); |
576 |
QApplication::clipboard()->setSelectionMode(true); |
573 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
577 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
574 |
QApplication::clipboard()->setSelectionMode(false); |
578 |
QApplication::clipboard()->setSelectionMode(false); |
575 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
579 |
QApplication::clipboard()->setData( new KURLDrag( lst ) ); |
576 |
#else |
580 |
#else |
577 |
QApplication::clipboard()->setText(d->m_imageURL.url()); //FIXME(E): Handle multiple entries |
581 |
QApplication::clipboard()->setText( safeURL.url() ); //FIXME(E): Handle multiple entries |
578 |
#endif |
582 |
#endif |
579 |
} |
583 |
} |
580 |
|
584 |
|
581 |
void KHTMLPopupGUIClient::slotViewImage() |
585 |
void KHTMLPopupGUIClient::slotViewImage() |
582 |
{ |
586 |
{ |