Commit 8761aa5f authored by Pino Toscano's avatar Pino Toscano

add possibility to for an item to be "set visible" or not

svn path=/trunk/KDE/kdegraphics/okular/; revision=755208
parent e60c1ec1
......@@ -39,7 +39,7 @@
/*********************/
PageViewItem::PageViewItem( const Okular::Page * page )
: m_page( page ), m_zoomFactor( 1.0 )
: m_page( page ), m_zoomFactor( 1.0 ), m_visible( true )
{
}
......@@ -80,6 +80,11 @@ double PageViewItem::zoomFactor() const
return m_zoomFactor;
}
bool PageViewItem::isVisible() const
{
return m_visible;
}
QHash<QString, FormWidgetIface*>& PageViewItem::formWidgets()
{
return m_formWidgets;
......@@ -114,6 +119,11 @@ void PageViewItem::moveTo( int x, int y )
}
}
void PageViewItem::setVisible( bool visible )
{
m_visible = visible;
}
void PageViewItem::invalidate()
{
m_geometry.setRect( 0, 0, 0, 0 );
......
......@@ -45,11 +45,13 @@ class PageViewItem
int width() const;
int height() const;
double zoomFactor() const;
bool isVisible() const;
QHash<QString, FormWidgetIface*>& formWidgets();
void setGeometry( int x, int y, int width, int height );
void setWHZ( int w, int h, double zoom );
void moveTo( int x, int y );
void setVisible( bool visible );
void invalidate();
bool setFormWidgetsVisible( bool visible );
......@@ -57,6 +59,7 @@ class PageViewItem
const Okular::Page * m_page;
double m_zoomFactor;
QRect m_geometry;
bool m_visible;
QHash<QString, FormWidgetIface*> m_formWidgets;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment