mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-19 16:01:41 +00:00
Implemented reloading of changed files.
svn path=/trunk/kdegraphics/kdvi/; revision=51453
This commit is contained in:
parent
fc3feb7552
commit
b5c8ffd6f9
3
dviwin.h
3
dviwin.h
|
@ -52,12 +52,13 @@ public slots:
|
|||
|
||||
void drawPage();
|
||||
|
||||
bool correctDVI();
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *ev);
|
||||
|
||||
|
||||
private:
|
||||
bool correctDVI();
|
||||
void initDVI();
|
||||
void changePageSize();
|
||||
QString filename;
|
||||
|
|
|
@ -110,7 +110,6 @@ bool KDVIMultiPage::closeURL()
|
|||
}
|
||||
|
||||
|
||||
// test code
|
||||
QStringList KDVIMultiPage::fileFormats()
|
||||
{
|
||||
QStringList r;
|
||||
|
@ -239,3 +238,13 @@ bool KDVIMultiPage::print(const QStrList &pages, int current)
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void KDVIMultiPage::reload()
|
||||
{
|
||||
if (window->correctDVI())
|
||||
{
|
||||
window->setFile(m_file);
|
||||
emit previewChanged(true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,6 +81,8 @@ public:
|
|||
virtual bool preview(QPainter *p, int w, int h);
|
||||
|
||||
virtual bool print(const QStrList &pages, int current);
|
||||
|
||||
virtual void reload();
|
||||
|
||||
|
||||
signals:
|
||||
|
|
Loading…
Reference in a new issue