зеркало из https://github.com/mozilla/gecko-dev.git
Bug 722042 - Part 4: Remove Qt code from mobile/android. r=blassey
This commit is contained in:
Родитель
1e518ce00c
Коммит
85ed94a982
|
@ -28,8 +28,4 @@ CPPSRCS = \
|
|||
nsShellService.cpp \
|
||||
$(NULL)
|
||||
|
||||
ifneq (,$(filter $(MOZ_WIDGET_TOOLKIT),qt))
|
||||
LOCAL_INCLUDES += $(MOZ_QT_CFLAGS)
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
|
@ -3,11 +3,6 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifdef MOZ_WIDGET_QT
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QWidget>
|
||||
#endif
|
||||
|
||||
#include "nsShellService.h"
|
||||
#include "nsString.h"
|
||||
|
||||
|
@ -18,14 +13,7 @@ NS_IMPL_ISUPPORTS1(nsShellService, nsIShellService)
|
|||
NS_IMETHODIMP
|
||||
nsShellService::SwitchTask()
|
||||
{
|
||||
#if MOZ_WIDGET_QT
|
||||
QWidget * window = QApplication::activeWindow();
|
||||
if (window)
|
||||
window->showMinimized();
|
||||
return NS_OK;
|
||||
#else
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче