~ubuntu-branches/debian/sid/qpdfview/sid

« back to all changes in this revision

Viewing changes to sources/settings.cpp

  • Committer: Package Import Robot
  • Author(s): Benjamin Eltzner
  • Date: 2013-07-30 00:00:25 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20130730000025-lsj8rjj0brpaj5ve
Tags: 0.4.4-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
466
466
    m_settings->setValue("mainWindow/trackRecentlyUsed", on);
467
467
}
468
468
 
 
469
int Settings::MainWindow::recentlyUsedCount() const
 
470
{
 
471
    return m_settings->value("mainWindow/recentlyUsedCount", Defaults::MainWindow::recentlyUsedCount()).toInt();
 
472
}
 
473
 
 
474
void Settings::MainWindow::setRecentlyUsedCount(int recentlyUsedCount)
 
475
{
 
476
    m_settings->setValue("mainWindow/recentlyUsedCount", recentlyUsedCount);
 
477
}
 
478
 
469
479
QStringList Settings::MainWindow::recentlyUsed() const
470
480
{
471
481
    return m_settings->value("mainWindow/recentlyUsed").toStringList();
654
664
    m_settings->setValue("mainWindow/savePath", savePath);
655
665
}
656
666
 
 
667
QSize Settings::MainWindow::settingsDialogSize(const QSize& sizeHint) const
 
668
{
 
669
    return m_settings->value("mainWindow/settingsDialogSize", sizeHint).toSize();
 
670
}
 
671
 
 
672
void Settings::MainWindow::setSettingsDialogSize(const QSize& settingsDialogSize)
 
673
{
 
674
    m_settings->setValue("mainWindow/settingsDialogSize", settingsDialogSize);
 
675
}
 
676
 
657
677
QSize Settings::MainWindow::fontsDialogSize(const QSize& sizeHint) const
658
678
{
659
679
    return m_settings->value("mainWindow/fontsDialogSize", sizeHint).toSize();