| 1939 | } |
| 1940 | |
| 1941 | void MainWin::printPreview() { |
| 1942 | if (!m_currentAspectDock) |
| 1943 | return; |
| 1944 | |
| 1945 | AbstractPart* part = static_cast<ContentDockWidget*>(m_currentAspectDock)->part(); |
| 1946 | statusBar()->showMessage(i18n("Preparing printing of %1", part->name())); |
| 1947 | if (part->printPreview()) |
| 1948 | statusBar()->showMessage(i18n("%1 printed", part->name())); |
| 1949 | else |
| 1950 | statusBar()->clearMessage(); |
| 1951 | } |
| 1952 | |
| 1953 | /**************************************************************************************/ |
| 1954 |
nothing calls this directly
no test coverage detected