mirror of
https://invent.kde.org/graphics/okular
synced 2024-07-17 02:37:04 +00:00
configurationWidget() is too generic -> rename to printConfigurationWidget()
svn path=/trunk/playground/graphics/okular/; revision=622782
This commit is contained in:
parent
4f8724b62b
commit
91b7675c14
|
@ -2025,12 +2025,12 @@ bool Document::print( KPrinter &printer )
|
||||||
return d->m_generator ? d->m_generator->print( printer ) : false;
|
return d->m_generator ? d->m_generator->print( printer ) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
KPrintDialogPage* Document::configurationWidget() const
|
KPrintDialogPage* Document::printConfigurationWidget() const
|
||||||
{
|
{
|
||||||
if ( d->m_generator )
|
if ( d->m_generator )
|
||||||
{
|
{
|
||||||
PrintInterface * iface = qobject_cast< Okular::PrintInterface * >( d->m_generator );
|
PrintInterface * iface = qobject_cast< Okular::PrintInterface * >( d->m_generator );
|
||||||
return iface ? iface->configurationWidget() : 0;
|
return iface ? iface->printConfigurationWidget() : 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -432,7 +432,7 @@ class OKULAR_EXPORT Document : public QObject
|
||||||
* Returns a custom printer configuration page or 0 if no
|
* Returns a custom printer configuration page or 0 if no
|
||||||
* custom printer configuration page is available.
|
* custom printer configuration page is available.
|
||||||
*/
|
*/
|
||||||
KPrintDialogPage* configurationWidget() const;
|
KPrintDialogPage* printConfigurationWidget() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is used by the generators to signal the finish of
|
* This method is used by the generators to signal the finish of
|
||||||
|
|
|
@ -48,7 +48,7 @@ class OKULAR_EXPORT PrintInterface
|
||||||
* @note don't keep a pointer to the new constructed widget, as it
|
* @note don't keep a pointer to the new constructed widget, as it
|
||||||
* will be handled elsewhere (in the Okular KPart)
|
* will be handled elsewhere (in the Okular KPart)
|
||||||
*/
|
*/
|
||||||
virtual KPrintDialogPage* configurationWidget() const = 0;
|
virtual KPrintDialogPage* printConfigurationWidget() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
2
part.cpp
2
part.cpp
|
@ -1327,7 +1327,7 @@ void Part::slotPrint()
|
||||||
|
|
||||||
if ( m_document->canConfigurePrinter() )
|
if ( m_document->canConfigurePrinter() )
|
||||||
{
|
{
|
||||||
KPrintDialogPage * w = m_document->configurationWidget();
|
KPrintDialogPage * w = m_document->printConfigurationWidget();
|
||||||
if ( w )
|
if ( w )
|
||||||
{
|
{
|
||||||
printer.addDialogPage( w );
|
printer.addDialogPage( w );
|
||||||
|
|
Loading…
Reference in a new issue