mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 14:42:51 -04:00
Fix Windows 7 32b Compilation from scratch.
Add scripts to build Libs on branch.
This commit is contained in:
parent
febea809b1
commit
625461bf69
9 changed files with 583 additions and 52 deletions
|
@ -38,7 +38,6 @@
|
|||
|
||||
#include "printpreview.h"
|
||||
|
||||
#include <QAbstractScrollArea>
|
||||
#include <QPrintDialog>
|
||||
#include <QPrinter>
|
||||
#include <QToolBar>
|
||||
|
@ -70,35 +69,6 @@ static inline qreal mmToInches(double mm)
|
|||
return mm*0.039370147;
|
||||
}
|
||||
|
||||
class PreviewView : public QAbstractScrollArea
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
PreviewView(QTextDocument *document, PrintPreview *printPrev);
|
||||
|
||||
inline void updateLayout() { resizeEvent(0); viewport()->update(); }
|
||||
|
||||
public slots:
|
||||
void zoomIn();
|
||||
void zoomOut();
|
||||
|
||||
protected:
|
||||
virtual void paintEvent(QPaintEvent *e);
|
||||
virtual void resizeEvent(QResizeEvent *);
|
||||
virtual void mousePressEvent(QMouseEvent *e);
|
||||
virtual void mouseMoveEvent(QMouseEvent *e);
|
||||
virtual void mouseReleaseEvent(QMouseEvent *e);
|
||||
|
||||
private:
|
||||
void paintPage(QPainter *painter, int page);
|
||||
QTextDocument *doc;
|
||||
qreal scale;
|
||||
int interPageSpacing;
|
||||
QPoint mousePressPos;
|
||||
QPoint scrollBarValuesOnMousePress;
|
||||
PrintPreview *printPreview;
|
||||
};
|
||||
|
||||
PreviewView::PreviewView(QTextDocument *document, PrintPreview *printPrev)
|
||||
: printPreview(printPrev)
|
||||
{
|
||||
|
@ -330,5 +300,3 @@ void PrintPreview::pageSetup()
|
|||
view->updateLayout();
|
||||
}
|
||||
}
|
||||
|
||||
#include "printpreview.moc"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue