mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-05 15:39:47 +00:00
Fixed saving remote files to disk. Added two more items in todo (not merge
blocking after all.. not bad thus). svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=360586
This commit is contained in:
parent
dfcb9b7947
commit
0f7917bf94
|
@ -31,6 +31,8 @@ More items (first items will enter 'In progress list' first):
|
|||
-> implement history (mainly for actionNamed)
|
||||
-> history as a toolbox child (collecting DOs's setPage calls)
|
||||
-> zoom: fit text (with configurable margin)
|
||||
-> find: scroll page if the the searched string is not visible
|
||||
-> open gzipped (.pdf.gz?) files
|
||||
-> autodetect "/dev/speech" and provide {document/page/selection} -> reading
|
||||
-> automatic online dictionaries / translators (BR80338)
|
||||
-> add OCR for building TextPages out of pure graphical (aka scanned) pages
|
||||
|
|
|
@ -345,11 +345,12 @@ void Part::slotFindNext()
|
|||
|
||||
void Part::slotSaveFileAs()
|
||||
{
|
||||
KURL saveURL = KFileDialog::getSaveURL(
|
||||
url().isLocalFile() ? url().url() : url().fileName(),
|
||||
QString::null, widget(), QString::null );
|
||||
if( !KIO::NetAccess::upload( url().path(), saveURL, static_cast<QWidget*>( 0 ) ) )
|
||||
KMessageBox::information( 0, i18n("File could not be saved in '%1'. Try to save it to another location.").arg( url().path() ) );
|
||||
KURL saveURL = KFileDialog::getSaveURL( url().isLocalFile() ? url().url() : url().fileName(), QString::null, widget() );
|
||||
if ( saveURL.isValid() && !saveURL.isEmpty() )
|
||||
{
|
||||
if ( !KIO::NetAccess::file_copy( url(), saveURL, -1, true ) )
|
||||
KMessageBox::information( 0, i18n("File could not be saved in '%1'. Try to save it to another location.").arg( saveURL.prettyURL() ) );
|
||||
}
|
||||
}
|
||||
|
||||
void Part::slotPreferences()
|
||||
|
|
Loading…
Reference in a new issue