mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
KConfig* API overhaul. only cosmetics, so don't panic.
KConfigBase: - remove separator argument from list entry reading/writing functions - introduce {read,write}XdgListEntry() - kill readPathListEntry(), add readPathEntry() overload instead. the default value is not optional any more, as it defines the return type. this is consistent with the readEntry() functions. - rename clean() => markAsClean(), remove rollback() - rename ConfigState => AccessMode, getConfigState() => accessMode() - rename {entry,group}IsImmutable() => is{Entry,Group}Immutable() - remove NLS alias to Localized KConfig: - remove setGroup() & group() - reshuffle OpenFlag enum, introduce NoCascade for symmetry - remove setExtraConfigFiles() alias to addConfigSources() KConfigGroup: - inherit KConfigBase::deleteGroup() overloads - make convertToQVariant() private, it will probably change somehow - KConfig & KConfigGroup: deprecate entryMap() - remove bogus declarations: KConfigGroup::setReadDefaults(), KConfig::readEntryUntranslated() - apidox - reshuffle the declarations in the headers svn path=/trunk/KDE/kdegraphics/okular/; revision=728852
This commit is contained in:
commit
77801a028d
2
part.cpp
2
part.cpp
|
@ -1609,7 +1609,7 @@ void Part::doPrint(QPrinter &printer)
|
|||
|
||||
void Part::restoreDocument(const KConfigGroup &group)
|
||||
{
|
||||
KUrl url ( group.readPathEntry( "URL" ) );
|
||||
KUrl url ( group.readPathEntry( "URL", QString() ) );
|
||||
if ( url.isValid() )
|
||||
{
|
||||
QString viewport = group.readEntry( "Viewport" );
|
||||
|
|
Loading…
Reference in a new issue