mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 11:25:53 +00:00
Added some svgviewer code for possible future switch to QGraphicsWebView
This commit is contained in:
parent
18e52d81bf
commit
9826f6ae02
3 changed files with 20 additions and 6 deletions
|
@ -109,7 +109,7 @@ MainWindow::MainWindow()
|
|||
this, SLOT(setRenderer(QAction*)));
|
||||
|
||||
setCentralWidget(m_view);
|
||||
setWindowTitle(tr("SVG Viewer"));
|
||||
setWindowTitle(tr("Yosys SVG Viewer"));
|
||||
}
|
||||
|
||||
void MainWindow::openFile(const QString &path, bool reload)
|
||||
|
@ -147,7 +147,7 @@ void MainWindow::openFile(const QString &path, bool reload)
|
|||
if (!fileName.startsWith(":/"))
|
||||
{
|
||||
m_currentPath = fileName;
|
||||
setWindowTitle(tr("%1 - SVGViewer").arg(m_currentPath));
|
||||
setWindowTitle(tr("%1 - Yosys SVG Viewer").arg(m_currentPath));
|
||||
|
||||
// just keep the file open so this process is found using 'fuser'
|
||||
m_filehandle = fopen(fileName.toAscii(), "r");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue