[Ktutorial-commits] SF.net SVN: ktutorial:[329] trunk/ktutorial
Status: Alpha
Brought to you by:
danxuliu
From: <dan...@us...> - 2011-06-21 15:18:40
|
Revision: 329 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=329&view=rev Author: danxuliu Date: 2011-06-21 15:18:34 +0000 (Tue, 21 Jun 2011) Log Message: ----------- Remove applicationFilePath from the D-Bus exposed interface, as it is no longer needed since commit 320. Modified Paths: -------------- trunk/ktutorial/ktutorial-editor/tests/unit/targetapplication/RemoteClassStubs.h trunk/ktutorial/ktutorial-library/src/editorsupport/EditorSupportAdaptor.cpp trunk/ktutorial/ktutorial-library/src/editorsupport/EditorSupportAdaptor.h trunk/ktutorial/ktutorial-library/tests/editorsupport/EditorSupportAdaptorTest.cpp Modified: trunk/ktutorial/ktutorial-editor/tests/unit/targetapplication/RemoteClassStubs.h =================================================================== --- trunk/ktutorial/ktutorial-editor/tests/unit/targetapplication/RemoteClassStubs.h 2011-06-17 01:51:56 UTC (rev 328) +++ trunk/ktutorial/ktutorial-editor/tests/unit/targetapplication/RemoteClassStubs.h 2011-06-21 15:18:34 UTC (rev 329) @@ -226,10 +226,6 @@ public slots: - QString applicationFilePath() const { - return QApplication::applicationFilePath(); - } - int mainWindowObjectId() const { return 42; } Modified: trunk/ktutorial/ktutorial-library/src/editorsupport/EditorSupportAdaptor.cpp =================================================================== --- trunk/ktutorial/ktutorial-library/src/editorsupport/EditorSupportAdaptor.cpp 2011-06-17 01:51:56 UTC (rev 328) +++ trunk/ktutorial/ktutorial-library/src/editorsupport/EditorSupportAdaptor.cpp 2011-06-21 15:18:34 UTC (rev 329) @@ -33,10 +33,6 @@ //public slots: -QString EditorSupportAdaptor::applicationFilePath() const { - return QCoreApplication::applicationFilePath(); -} - int EditorSupportAdaptor::mainWindowObjectId() const { return mEditorSupport->mainWindowObjectId(); } Modified: trunk/ktutorial/ktutorial-library/src/editorsupport/EditorSupportAdaptor.h =================================================================== --- trunk/ktutorial/ktutorial-library/src/editorsupport/EditorSupportAdaptor.h 2011-06-17 01:51:56 UTC (rev 328) +++ trunk/ktutorial/ktutorial-library/src/editorsupport/EditorSupportAdaptor.h 2011-06-21 15:18:34 UTC (rev 329) @@ -48,13 +48,6 @@ public Q_SLOTS: /** - * Returns the path to the application file. - * - * @return The path to the application file. - */ - QString applicationFilePath() const; - - /** * Returns the object id of the application main window. * * @return The object id of the application main window. Modified: trunk/ktutorial/ktutorial-library/tests/editorsupport/EditorSupportAdaptorTest.cpp =================================================================== --- trunk/ktutorial/ktutorial-library/tests/editorsupport/EditorSupportAdaptorTest.cpp 2011-06-17 01:51:56 UTC (rev 328) +++ trunk/ktutorial/ktutorial-library/tests/editorsupport/EditorSupportAdaptorTest.cpp 2011-06-21 15:18:34 UTC (rev 329) @@ -51,8 +51,6 @@ void testConstructor(); - void testApplicationFilePath(); - void testMainWindowObjectId(); void testHighlight(); @@ -75,14 +73,6 @@ QCOMPARE(adaptor->parent(), &editorSupport); } -void EditorSupportAdaptorTest::testApplicationFilePath() { - EditorSupport editorSupport; - EditorSupportAdaptor* adaptor = new EditorSupportAdaptor(&editorSupport); - - QCOMPARE(adaptor->applicationFilePath(), - QCoreApplication::applicationFilePath()); -} - void EditorSupportAdaptorTest::testMainWindowObjectId() { EditorSupport editorSupport; QWidget window; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |