Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/khomeview.cpp
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 87 | if (d->m_view) { | |||
---|---|---|---|---|---|
89 | QPointer<QPrintDialog> dialog = new QPrintDialog(d->m_currentPrinter, this); | 89 | QPointer<QPrintDialog> dialog = new QPrintDialog(d->m_currentPrinter, this); | ||
90 | dialog->setWindowTitle(QString()); | 90 | dialog->setWindowTitle(QString()); | ||
91 | if (dialog->exec() != QDialog::Accepted) { | 91 | if (dialog->exec() != QDialog::Accepted) { | ||
92 | delete d->m_currentPrinter; | 92 | delete d->m_currentPrinter; | ||
93 | d->m_currentPrinter = nullptr; | 93 | d->m_currentPrinter = nullptr; | ||
94 | return; | 94 | return; | ||
95 | } | 95 | } | ||
96 | #ifdef ENABLE_WEBENGINE | 96 | #ifdef ENABLE_WEBENGINE | ||
97 | d->m_view->page()->print(m_currentPrinter, [=] (bool) {delete m_currentPrinter; m_currentPrinter = nullptr;}); | 97 | d->m_view->page()->print(d->m_currentPrinter, [=] (bool) {delete d->m_currentPrinter; d->m_currentPrinter = nullptr;}); | ||
98 | #else | 98 | #else | ||
99 | d->m_view->print(d->m_currentPrinter); | 99 | d->m_view->print(d->m_currentPrinter); | ||
100 | #endif | 100 | #endif | ||
101 | } | 101 | } | ||
102 | } | 102 | } | ||
103 | 103 | | |||
104 | void KHomeView::slotOpenUrl(const QUrl &url) | 104 | void KHomeView::slotOpenUrl(const QUrl &url) | ||
105 | { | 105 | { | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |