~ubuntu-branches/debian/jessie/qpdfview/jessie

« back to all changes in this revision

Viewing changes to sources/settings.cpp

  • Committer: Package Import Robot
  • Author(s): Benjamin Eltzner
  • Date: 2013-12-01 13:26:44 UTC
  • mfrom: (1.2.11)
  • Revision ID: package-import@ubuntu.com-20131201132644-vwledybqwubap2uh
Tags: 0.4.7-1
* New upstream release.
* Patch to provide more toolbar items by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
    m_settings->setValue("pageItem/addAnnotationModifiers", static_cast< int >(modifiers));
163
163
}
164
164
 
 
165
bool Settings::PageItem::annotationOverlay() const
 
166
{
 
167
    return m_settings->value("pageItem/annotationOverlay", Defaults::PageItem::annotationOverlay()).toBool();
 
168
}
 
169
 
 
170
void Settings::PageItem::setAnnotationOverlay(bool overlay)
 
171
{
 
172
    m_settings->setValue("pageItem/annotationOverlay", overlay);
 
173
}
 
174
 
 
175
bool Settings::PageItem::formFieldOverlay() const
 
176
{
 
177
    return m_settings->value("pageItem/formFieldOverlay", Defaults::PageItem::formFieldOverlay()).toBool();
 
178
}
 
179
 
 
180
void Settings::PageItem::setFormFieldOverlay(bool overlay)
 
181
{
 
182
    m_settings->setValue("pageItem/formFieldOverlay", overlay);
 
183
}
 
184
 
165
185
Settings::PageItem::PageItem(QSettings* settings) :
166
186
    m_settings(settings),
167
187
    m_cacheSize(Defaults::PageItem::cacheSize()),