~ubuntu-branches/ubuntu/vivid/qpdfview/vivid

« back to all changes in this revision

Viewing changes to sources/fontsdialog.cpp

  • Committer: Package Import Robot
  • Author(s): Benjamin Eltzner
  • Date: 2014-10-22 21:49:15 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20141022214915-agqeoe318lzs2s4d
Tags: 0.4.12-1
* New upstream release.
* Fixed option to zoom to selection and implemented tiled rendering
  (Closes: #739554)
* Enable support for qt5 and poppler-qt5.
* Explicit dependence on hicolor-icon-theme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <QTableView>
28
28
#include <QVBoxLayout>
29
29
 
 
30
#include "settings.h"
 
31
 
30
32
namespace qpdfview
31
33
{
32
34
 
33
35
FontsDialog::FontsDialog(QStandardItemModel* model, QWidget* parent) : QDialog(parent)
34
36
{
 
37
    setWindowTitle(tr("Fonts") + QLatin1String(" - qpdfview"));
 
38
 
35
39
    m_tableView = new QTableView(this);
36
40
    m_tableView->setModel(model);
37
41
 
61
65
    setLayout(new QVBoxLayout(this));
62
66
    layout()->addWidget(m_tableView);
63
67
    layout()->addWidget(m_dialogButtonBox);
 
68
 
 
69
    resize(Settings::instance()->mainWindow().fontsDialogSize(sizeHint()));
 
70
}
 
71
 
 
72
FontsDialog::~FontsDialog()
 
73
{
 
74
    Settings::instance()->mainWindow().setFontsDialogSize(size());
64
75
}
65
76
 
66
77
} // qpdfview