[QGIS Commit] r12622 - in trunk/qgis/src: core helpviewer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Dec 26 22:59:47 EST 2009


Author: jef
Date: 2009-12-26 22:59:46 -0500 (Sat, 26 Dec 2009)
New Revision: 12622

Modified:
   trunk/qgis/src/core/qgsapplication.cpp
   trunk/qgis/src/helpviewer/CMakeLists.txt
   trunk/qgis/src/helpviewer/main.cpp
Log:
fix #2294

Modified: trunk/qgis/src/core/qgsapplication.cpp
===================================================================
--- trunk/qgis/src/core/qgsapplication.cpp	2009-12-26 23:37:48 UTC (rev 12621)
+++ trunk/qgis/src/core/qgsapplication.cpp	2009-12-27 03:59:46 UTC (rev 12622)
@@ -225,9 +225,6 @@
 const QString QgsApplication::helpAppPath()
 {
   QString helpAppPath = applicationDirPath();
-#ifdef Q_OS_MACX
-  helpAppPath += "/bin/qgis_help.app/Contents/MacOS";
-#endif
   helpAppPath += "/qgis_help";
   return helpAppPath;
 }

Modified: trunk/qgis/src/helpviewer/CMakeLists.txt
===================================================================
--- trunk/qgis/src/helpviewer/CMakeLists.txt	2009-12-26 23:37:48 UTC (rev 12621)
+++ trunk/qgis/src/helpviewer/CMakeLists.txt	2009-12-27 03:59:46 UTC (rev 12622)
@@ -54,7 +54,7 @@
 
 #QT4_ADD_RESOURCES(HELP_RCC_SRCS ${HELP_RCCS})
 
-ADD_EXECUTABLE (qgis_help MACOSX_BUNDLE ${HELP_SRCS} ${HELP_MOC_SRCS} ${HELP_UIS_H})
+ADD_EXECUTABLE (qgis_help ${HELP_SRCS} ${HELP_MOC_SRCS} ${HELP_UIS_H})
 
 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}
      ${CMAKE_CURRENT_SOURCE_DIR}/../core
@@ -97,8 +97,8 @@
 ########################################################
 # Install
 
-IF (APPLE AND NOT ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} STRLESS "2.6")
-  INSTALL (TARGETS qgis_help BUNDLE DESTINATION ${QGIS_BIN_DIR})
-ELSE (APPLE AND NOT ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} STRLESS "2.6")
+IF (APPLE)
+  INSTALL (TARGETS qgis_help RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})
+ELSE (APPLE)
   INSTALL (TARGETS qgis_help RUNTIME DESTINATION ${QGIS_BIN_DIR})
-ENDIF (APPLE AND NOT ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} STRLESS "2.6")
+ENDIF (APPLE)

Modified: trunk/qgis/src/helpviewer/main.cpp
===================================================================
--- trunk/qgis/src/helpviewer/main.cpp	2009-12-26 23:37:48 UTC (rev 12621)
+++ trunk/qgis/src/helpviewer/main.cpp	2009-12-27 03:59:46 UTC (rev 12622)
@@ -15,6 +15,7 @@
  *   (at your option) any later version.                                   *
  *                                                                         *
  ***************************************************************************/
+#include <iostream>
 #include <QLocale>
 #include <QSettings>
 #include <QTranslator>
@@ -40,10 +41,6 @@
   {
     context = argv[1];
   }
-#ifdef Q_WS_MACX
-  // If we're on Mac, we have the resource library way above us...
-  a.setPkgDataPath( QgsApplication::prefixPath() + "/../../../../" + QString( QGIS_DATA_SUBDIR ) );
-#endif
 
   QString i18nPath = QgsApplication::i18nPath();
   if ( myTranslationCode.isEmpty() )
@@ -87,7 +84,7 @@
   // an additional viewer if one is already running.
   QgsHelpContextServer *helpServer = new QgsHelpContextServer();
   // Make port number available to client
-  QgsDebugMsg( helpServer->serverPort() );
+  std::cout << helpServer->serverPort() << std::endl;
   // Pass context request from socket to viewer widget
   QObject::connect( helpServer, SIGNAL( setContext( const QString& ) ),
                     &w, SLOT( setContext( const QString& ) ) );



More information about the QGIS-commit mailing list