Skip to content

Commit e7dbc5a

Browse files
author
jef
committed
cleanup: remove QgsApplication::msexportAppPath() and app/qgshelpviewer*
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15293 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6720f15 commit e7dbc5a

8 files changed

+4
-107
lines changed

python/core/qgsapplication.sip

-3
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ static void qtgui_UpdatePyArgv(PyObject *argvlist, int argc, char **argv)
130130
//! Returns the path to the help application.
131131
static const QString helpAppPath();
132132

133-
//! Returns the path to the mapserver export application.
134-
static const QString msexportAppPath();
135-
136133
//! Returns the path to the translation directory.
137134
static const QString i18nPath();
138135

src/app/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ SET(QGIS_APP_SRCS
2525
qgsfieldcalculator.cpp
2626
qgsnewvectorlayerdialog.cpp
2727
qgsgraduatedsymboldialog.cpp
28-
qgshelpviewer.cpp
2928
qgsidentifyresults.cpp
3029
qgsfeatureaction.cpp
3130
qgslabeldialog.cpp
@@ -164,7 +163,6 @@ SET (QGIS_APP_MOC_HDRS
164163
qgsfieldcalculator.h
165164
qgsformannotationdialog.h
166165
qgsgraduatedsymboldialog.h
167-
qgshelpviewer.h
168166
qgsidentifyresults.h
169167
qgslabeldialog.h
170168
qgslabelengineconfigdialog.h

src/app/qgisapp.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@
119119
#include "qgsformannotationitem.h"
120120
#include "qgsgenericprojectionselector.h"
121121
#include "qgsgpsinformationwidget.h"
122-
#include "qgshelpviewer.h"
123122
#include "qgslabelinggui.h"
124123
#include "qgslegend.h"
125124
#include "qgslegendlayer.h"

src/app/qgisapp.h

-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class QgsClipboard;
4444
class QgsComposer;
4545
class QgsComposerView;
4646
class QgsGeometry;
47-
class QgsHelpViewer;
4847
class QgsFeature;
4948

5049
class QgsLegend;
@@ -1161,8 +1160,6 @@ class QgisApp : public QMainWindow
11611160
QTcpSocket *mSocket;
11621161
QString mVersionMessage;
11631162
QSplashScreen *mSplash;
1164-
//! help viewer
1165-
QgsHelpViewer *mHelpViewer;
11661163
//! list of recently opened/saved project files
11671164
QStringList mRecentProjectPaths;
11681165
//! Print composers of this project, accessible by id string

src/app/qgshelpviewer.cpp

-41
This file was deleted.

src/app/qgshelpviewer.h

-39
This file was deleted.

src/core/qgsapplication.cpp

+4-15
Original file line numberDiff line numberDiff line change
@@ -241,26 +241,15 @@ const QString QgsApplication::developerPath()
241241
*/
242242
const QString QgsApplication::helpAppPath()
243243
{
244-
QString helpAppPath = applicationDirPath();
244+
QString helpAppPath;
245245
#ifdef Q_OS_MACX
246-
helpAppPath += "/bin/qgis_help.app/Contents/MacOS";
246+
helpAppPath = applicationDirPath() + "/bin/qgis_help.app/Contents/MacOS";
247+
#else
248+
helpAppPath = prefixPath() + "/" QGIS_LIBEXEC_SUBDIR;
247249
#endif
248250
helpAppPath += "/qgis_help";
249251
return helpAppPath;
250252
}
251-
/*!
252-
Returns the path to the mapserverexport application.
253-
*/
254-
const QString QgsApplication::msexportAppPath()
255-
{
256-
QString msexportAppPath = applicationDirPath();
257-
#ifdef Q_OS_MACX
258-
msexportAppPath += "/bin/msexport.app/Contents/MacOS";
259-
#endif
260-
msexportAppPath += "/msexport";
261-
return msexportAppPath;
262-
}
263-
264253
/*!
265254
Returns the path to the translation directory.
266255
*/

src/core/qgsapplication.h

-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ class CORE_EXPORT QgsApplication: public QApplication
8383
//! Returns the path to the help application.
8484
static const QString helpAppPath();
8585

86-
//! Returns the path to the mapserver export application.
87-
static const QString msexportAppPath();
88-
8986
//! Returns the path to the translation directory.
9087
static const QString i18nPath();
9188

0 commit comments

Comments
 (0)