mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
KUrl::path() -> KUrl::toLocalFile()
svn path=/trunk/KDE/kdegraphics/okular/; revision=1071713
This commit is contained in:
parent
f12bd0a942
commit
9e2f6edcf5
|
@ -106,7 +106,7 @@ QString BookmarkManager::Private::currentUrl() const
|
|||
|
||||
QString BookmarkManager::Private::currentTitle() const
|
||||
{
|
||||
return url.isLocalFile() ? url.path() : url.prettyUrl();
|
||||
return url.isLocalFile() ? url.toLocalFile() : url.prettyUrl();
|
||||
}
|
||||
|
||||
bool BookmarkManager::Private::enableOption(BookmarkOption option) const
|
||||
|
@ -241,7 +241,7 @@ QHash<KUrl, QString>::iterator BookmarkManager::Private::bookmarkFind( const KUr
|
|||
{
|
||||
// folder not found :(
|
||||
// then, in a single step create a new folder and add it in our cache :)
|
||||
QString purl = url.isLocalFile() ? url.path() : url.prettyUrl();
|
||||
QString purl = url.isLocalFile() ? url.toLocalFile() : url.prettyUrl();
|
||||
KBookmarkGroup newbg = root.createNewFolder( purl );
|
||||
it = knownFiles.insert( url, newbg.address() );
|
||||
if ( result )
|
||||
|
|
2
part.cpp
2
part.cpp
|
@ -879,7 +879,7 @@ bool Part::slotImportPSFile()
|
|||
m_temporaryLocalFile = tf.fileName();
|
||||
tf.close();
|
||||
|
||||
setLocalFilePath( url.path() );
|
||||
setLocalFilePath( url.toLocalFile() );
|
||||
QStringList args;
|
||||
QProcess *p = new QProcess();
|
||||
args << url.toLocalFile() << m_temporaryLocalFile;
|
||||
|
|
|
@ -290,7 +290,7 @@ void BookmarkList::rebuildTree( bool filter )
|
|||
if ( !subitems.isEmpty() )
|
||||
{
|
||||
QTreeWidgetItem * item = new QTreeWidgetItem( m_tree, FileItemType );
|
||||
QString fileString = url.isLocalFile() ? url.path() : url.prettyUrl();
|
||||
QString fileString = url.isLocalFile() ? url.toLocalFile() : url.prettyUrl();
|
||||
item->setText( 0, fileString );
|
||||
item->setToolTip( 0, i18ncp( "%1 is the file name", "%1\n\nOne bookmark", "%1\n\n%2 bookmarks", fileString, subitems.count() ) );
|
||||
item->setData( 0, UrlRole, qVariantFromValue( url ) );
|
||||
|
@ -350,7 +350,7 @@ void BookmarkList::selectiveUrlUpdate( const KUrl& url, QTreeWidgetItem*& item )
|
|||
}
|
||||
else
|
||||
{
|
||||
const QString fileString = url.isLocalFile() ? url.path() : url.prettyUrl();
|
||||
const QString fileString = url.isLocalFile() ? url.toLocalFile() : url.prettyUrl();
|
||||
if ( item )
|
||||
{
|
||||
for ( int i = item->childCount() - 1; i >= 0; --i )
|
||||
|
|
|
@ -358,7 +358,7 @@ FileEdit::FileEdit( Okular::FormFieldText * text, QWidget * parent )
|
|||
|
||||
void FileEdit::slotChanged( const QString& )
|
||||
{
|
||||
m_form->setText( url().path() );
|
||||
m_form->setText( url().toLocalFile() );
|
||||
|
||||
m_controller->signalChanged( this );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue