From 1de2c6cab939b0d887b8d2acc59fe24939df2cfc Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Wed, 16 Jun 2010 19:03:34 +0000 Subject: Removed repository files thats should not be there git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@14 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FaceTrackNoIR/FaceTrackNoIR.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'FaceTrackNoIR/FaceTrackNoIR.cpp') diff --git a/FaceTrackNoIR/FaceTrackNoIR.cpp b/FaceTrackNoIR/FaceTrackNoIR.cpp index 7b681b96..c8b717cf 100644 --- a/FaceTrackNoIR/FaceTrackNoIR.cpp +++ b/FaceTrackNoIR/FaceTrackNoIR.cpp @@ -678,13 +678,13 @@ void FaceTrackNoIR::exit() { // void FaceTrackNoIR::createIconGroupBox() { - ui.iconcomboBox->addItem(QIcon("images/Freetrack.ico"), tr("Freetrack")); - ui.iconcomboBox->addItem(QIcon("images/FlightGear.ico"), tr("FlightGear")); - ui.iconcomboBox->addItem(QIcon("images/FaceTrackNoIR.ico"), tr("FTNoir client")); - ui.iconcomboBox->addItem(QIcon("images/PPJoy.ico"), tr("Virtual Joystick")); + ui.iconcomboBox->addItem(QIcon(QCoreApplication::applicationDirPath() + "/images/Freetrack.ico"), tr("Freetrack")); + ui.iconcomboBox->addItem(QIcon(QCoreApplication::applicationDirPath() + "/images/FlightGear.ico"), tr("FlightGear")); + ui.iconcomboBox->addItem(QIcon(QCoreApplication::applicationDirPath() + "/images/FaceTrackNoIR.ico"), tr("FTNoir client")); + ui.iconcomboBox->addItem(QIcon(QCoreApplication::applicationDirPath() + "/images/PPJoy.ico"), tr("Virtual Joystick")); - ui.iconcomboTrackerSource->addItem(QIcon("images/SeeingMachines.ico"), tr("Face API")); - ui.iconcomboTrackerSource->addItem(QIcon("images/FaceTrackNoIR.ico"), tr("FTNoir server")); + ui.iconcomboTrackerSource->addItem(QIcon(QCoreApplication::applicationDirPath() + "/images/SeeingMachines.ico"), tr("Face API")); + ui.iconcomboTrackerSource->addItem(QIcon(QCoreApplication::applicationDirPath() + "/images/FaceTrackNoIR.ico"), tr("FTNoir server")); } // @@ -720,7 +720,7 @@ void FaceTrackNoIR::createTrayIcon() trayIcon = new QSystemTrayIcon(this); trayIcon->setContextMenu(trayIconMenu); - trayIcon->setIcon(QIcon("images/FaceTrackNoIR.ico")); + trayIcon->setIcon(QIcon(QCoreApplication::applicationDirPath() + "/images/FaceTrackNoIR.ico")); } // @@ -730,7 +730,7 @@ void FaceTrackNoIR::setIcon(int index) { QIcon icon = ui.iconcomboBox->itemIcon(index); trayIcon->setIcon(icon); - setWindowIcon(QIcon("images/FaceTrackNoIR.ico")); + setWindowIcon(QIcon(QCoreApplication::applicationDirPath() + "/images/FaceTrackNoIR.ico")); trayIcon->setToolTip(ui.iconcomboBox->itemText(index)); settingsDirty = true; -- cgit v1.2.3