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