mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-14 09:56:16 +00:00
Fixed svgviewer hacks for builtin files
This commit is contained in:
parent
8edf4f378a
commit
c46597b697
1 changed files with 9 additions and 8 deletions
|
@ -141,19 +141,20 @@ void MainWindow::openFile(const QString &path, bool reload)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_watcher = new QFileSystemWatcher(this);
|
QTransform oldTransform = m_view->transform();
|
||||||
m_watcher->addPath(fileName);
|
m_view->openFile(file);
|
||||||
connect(m_watcher, SIGNAL(fileChanged(const QString&)), this, SLOT(reloadFile()));
|
|
||||||
|
if (!fileName.startsWith(":/"))
|
||||||
|
{
|
||||||
|
m_currentPath = fileName;
|
||||||
|
setWindowTitle(tr("%1 - SVGViewer").arg(m_currentPath));
|
||||||
|
|
||||||
// just keep the file open so this process is found using 'fuser'
|
// just keep the file open so this process is found using 'fuser'
|
||||||
m_filehandle = fopen(fileName.toAscii(), "r");
|
m_filehandle = fopen(fileName.toAscii(), "r");
|
||||||
|
|
||||||
QTransform oldTransform = m_view->transform();
|
m_watcher = new QFileSystemWatcher(this);
|
||||||
m_view->openFile(file);
|
m_watcher->addPath(fileName);
|
||||||
|
connect(m_watcher, SIGNAL(fileChanged(const QString&)), this, SLOT(reloadFile()));
|
||||||
if (!fileName.startsWith(":/")) {
|
|
||||||
m_currentPath = fileName;
|
|
||||||
setWindowTitle(tr("%1 - SVGViewer").arg(m_currentPath));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_outlineAction->setEnabled(true);
|
m_outlineAction->setEnabled(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue