Commit 960cbef5 authored by Dirk Mueller's avatar Dirk Mueller
Browse files

yeah, well. it didn't compile anyway.

svn path=/trunk/kdegraphics/kpdf/; revision=250485
parent d0addec2
......@@ -83,30 +83,30 @@ namespace KPDF
void PageWidget::nextPage()
{
setPage( getPage() + 1);
};
}
void PageWidget::previousPage()
{
setPage( getPage() - 1 );
};
}
void PageWidget::zoomIn()
{
m_zoomFactor += 0.1;
updatePixmap();
};
}
void PageWidget::zoomOut()
{
m_zoomFactor -= 0.1;
updatePixmap();
};
}
void PageWidget::setPage(int page)
{
static QMutex mutex;
ASSERT(mutex.locked() == false);
Q_ASSERT(mutex.locked() == false);
mutex.lock();
if (m_doc)
{
......@@ -116,7 +116,7 @@ namespace KPDF
}
updatePixmap();
mutex.unlock();
};
}
void PageWidget::updatePixmap()
{
......
......@@ -28,7 +28,7 @@
typedef KParts::GenericFactory<KPDF::Part> KPDFPartFactory;
K_EXPORT_COMPONENT_FACTORY(libkpdfpart, KPDFPartFactory);
K_EXPORT_COMPONENT_FACTORY(libkpdfpart, KPDFPartFactory)
using namespace KPDF;
......@@ -406,7 +406,7 @@ Part::update()
redrawing = true;
QTimer::singleShot(200, this, SLOT( redrawPage() ));
}
};
}
void
Part::redrawPage()
......
......@@ -2,10 +2,10 @@ template<class T>
inline T min(T a, T b)
{
return ( a < b ? a : b );
};
}
template<class T>
inline T max(T a, T b)
{
return ( a > b ? a : b );
};
}
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