Implemented reloading of changed files.

svn path=/trunk/kdegraphics/kdvi/; revision=51453
This commit is contained in:
Matthias Hoelzer-Kluepfel 2000-06-01 10:27:41 +00:00
parent fc3feb7552
commit b5c8ffd6f9
3 changed files with 14 additions and 2 deletions

View file

@ -52,12 +52,13 @@ public slots:
void drawPage();
bool correctDVI();
protected:
void paintEvent(QPaintEvent *ev);
private:
bool correctDVI();
void initDVI();
void changePageSize();
QString filename;

View file

@ -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);
}
}

View file

@ -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: