Group :: Engineering
RPM: picmicrosim
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: picmicrosim-use-stuff-from-app-dir.patch
Download
Download
diff --git a/microsim/helpbrowser.cpp b/microsim/helpbrowser.cpp
index d211df3..b07e4e8 100755
--- a/microsim/helpbrowser.cpp
+++ b/microsim/helpbrowser.cpp
@@ -69,9 +69,9 @@ HelpBrowser::HelpBrowser( const QString& home_, const QString& _path,
file->insertItem( tr("E&xit"), this, SLOT( close() ), CTRL+Key_X );
// The same three icons are used twice each.
- QIconSet icon_back( QPixmap("images/back.png" ) );
- QIconSet icon_forward( QPixmap("images/forward.png") );
- QIconSet icon_home( QPixmap("images/gohome.png") );
+ QIconSet icon_back( QPixmap(APPSDIR "images/back.png" ) );
+ QIconSet icon_forward( QPixmap(APPSDIR "images/forward.png") );
+ QIconSet icon_home( QPixmap(APPSDIR "images/gohome.png") );
QPopupMenu* go = new QPopupMenu( this );
backwardId = go->insertItem( icon_back,
diff --git a/microsim/helpwindow.ui.h b/microsim/helpwindow.ui.h
index 45a81c3..2fbcc14 100755
--- a/microsim/helpwindow.ui.h
+++ b/microsim/helpwindow.ui.h
@@ -48,7 +48,7 @@ void HelpWindow::fileExit()
void HelpWindow::setPage(QString str)
{
- str = QDir("../documentation/index.htm").absPath();
+ str = QDir(APPSDIR "documentation/index.htm").absPath();
mainBrowser->setSource(str);
}
@@ -58,6 +58,6 @@ void HelpWindow::init()
mainBrowser->setFrameStyle( QFrame::Panel | QFrame::Sunken );
//setCentralWidget(mainBrowser);
QString path;
- path = QDir("../documentation/index.htm").absPath();
+ path = QDir(APPSDIR "documentation/index.htm").absPath();
mainBrowser->setSource(path);
}
diff --git a/microsim/microsim.ui.h b/microsim/microsim.ui.h
index ffb870d..e159a85 100755
--- a/microsim/microsim.ui.h
+++ b/microsim/microsim.ui.h
@@ -433,7 +433,7 @@ void MicroSim::init()
pinDialog = new PinDialog(this);
pinDialog->setCPU(cpu);
QString home;
- home = QDir("documentation/index.htm").absPath();
+ home = QDir(APPSDIR "documentation/index.htm").absPath();
helpBrowser = new HelpBrowser(home, "./", 0, "help viewer");
//thread = new MyThread(cpu);