Okular::Settings::writeConfig() -> Okular::Settings::self()->writeConfig()

svn path=/trunk/KDE/kdegraphics/okular/; revision=667772
remotes/origin/KDE/4.0
Pino Toscano 19 years ago
parent 9984a73c33
commit b4b3ebdded
  1. 6
      part.cpp
  2. 6
      ui/pageview.cpp
  3. 4
      ui/pageviewannotator.cpp
  4. 2
      ui/thumbnaillist.cpp

@ -447,7 +447,7 @@ m_searchStarted(false), m_cliPresentation(false)
// [SPEECH] check for KTTSD presence and usability
KService::List offers = KServiceTypeTrader::self()->query("DBUS/Text-to-Speech", "Name == 'KTTSD'");
Okular::Settings::setUseKTTSD( !offers.isEmpty() );
Okular::Settings::writeConfig();
Okular::Settings::self()->writeConfig();
rebuildBookmarkMenu( false );
@ -856,7 +856,7 @@ void Part::slotShowLeftPanel()
{
bool showLeft = m_showLeftPanel->isChecked();
Okular::Settings::setShowLeftPanel( showLeft );
Okular::Settings::writeConfig();
Okular::Settings::self()->writeConfig();
// show/hide left panel
m_leftPanel->setVisible( showLeft );
// this needs to be hidden explicitly to disable thumbnails gen
@ -867,7 +867,7 @@ void Part::slotShowLeftPanel()
void Part::saveSplitterSize()
{
Okular::Settings::setSplitterSizes( m_splitter->sizes() );
Okular::Settings::writeConfig();
Okular::Settings::self()->writeConfig();
}

@ -2152,7 +2152,7 @@ void PageView::updateZoom( ZoomMode newZoomMode )
// store zoom settings
Okular::Settings::setZoomMode( newZoomMode );
Okular::Settings::setZoomFactor( newFactor );
Okular::Settings::writeConfig();
Okular::Settings::self()->writeConfig();
}
d->aZoomIn->setEnabled( d->zoomFactor < 3.9 );
@ -2799,7 +2799,7 @@ void PageView::slotViewMode( int nr )
if ( (int)Okular::Settings::viewMode() != nr )
{
Okular::Settings::setViewMode( nr );
Okular::Settings::writeConfig();
Okular::Settings::self()->writeConfig();
if ( d->document->pages() > 0 )
slotRelayoutPages();
}
@ -2810,7 +2810,7 @@ void PageView::slotContinuousToggled( bool on )
if ( Okular::Settings::viewContinuous() != on )
{
Okular::Settings::setViewContinuous( on );
Okular::Settings::writeConfig();
Okular::Settings::self()->writeConfig();
if ( d->document->pages() > 0 )
slotRelayoutPages();
}

@ -697,7 +697,7 @@ void PageViewAnnotator::setEnabled( bool on )
}
// save the name
Okular::Settings::setIdentityAuthor( userName );
Okular::Settings::writeConfig();
Okular::Settings::self()->writeConfig();
}
}
@ -902,7 +902,7 @@ void PageViewAnnotator::slotToolSelected( int toolID )
void PageViewAnnotator::slotSaveToolbarOrientation( int side )
{
Okular::Settings::setEditToolBarPlacement( (int)side );
Okular::Settings::writeConfig();
Okular::Settings::self()->writeConfig();
}
#include "pageviewannotator.moc"

@ -314,7 +314,7 @@ void ThumbnailList::slotFilterBookmarks( bool filterOn )
{
// save state
Okular::Settings::setFilterBookmarks( filterOn );
Okular::Settings::writeConfig();
Okular::Settings::self()->writeConfig();
// ask for the 'notifySetup' with a little trick (on reinsertion the
// document sends the list again)
m_document->removeObserver( this );

Loading…
Cancel
Save