snowshoe: removed from repo since inactive for long

This commit is contained in:
Chaoting Liu 2016-02-20 04:00:01 +00:00
parent f1053695ca
commit 3daabe6fb0
2 changed files with 0 additions and 76 deletions

View File

@ -1,31 +0,0 @@
# maintainer abveritas@chakra-project.org
# Contributor: Sandro Andrade <sandroandrade at kde.org>
pkgname=snowshoe
pkgver=1.0
pkgrel=3
pkgdesc="Cross platform browser application with multiple user interfaces based on Qt5 and WebKit2 technologies"
arch=('x86_64')
url="http://snowshoe.openbossa.org/"
license=('LGPL')
depends=('qt5-quick1')
source=("${pkgname}-${pkgver}::git://gitorious.org/qt-apps/snowshoe.git")
md5sums=('SKIP')
build() {
cd $srcdir/${pkgname}-${pkgver}
[[ -d build ]] || mkdir build # check if directory "build" exist or create one
cd build
export QML_IMPORT_PATH=/usr/lib/qt5/imports/
/usr/lib/qt5/bin/qmake ../
make
}
package() {
cd $srcdir/${pkgname}-${pkgver}/build
make INSTALL_ROOT=${pkgdir} install
}

View File

@ -1,45 +0,0 @@
diff --git a/src/desktop/BrowserWindow.cpp b/src/desktop/BrowserWindow.cpp
index ccf284e..f91a854 100644
--- a/src/desktop/BrowserWindow.cpp
+++ b/src/desktop/BrowserWindow.cpp
@@ -33,6 +33,7 @@
#include <QtQml/QQmlProperty>
#include <QtQuick/QQuickItem>
#include <QtGui/private/qguiapplication_p.h>
+#include <QDebug>
BrowserWindow::BrowserWindow(const QStringList& arguments)
: m_urlsFromCommandLine(arguments)
@@ -151,6 +152,9 @@ void BrowserWindow::setupDeclarativeEnvironment()
context->setContextProperty("UrlTools", new UrlTools(this));
context->setContextProperty("StateTracker", &m_stateTracker);
+ QString importPath = qgetenv("QML_IMPORT_PATH");
+ qDebug() << "Snowshoe desktop version is using the import path version: " << importPath;
+ engine()->addImportPath(importPath);
QObject::connect(engine(), SIGNAL(quit()), qApp, SLOT(quit()));
setResizeMode(QQuickView::SizeRootObjectToView);
diff --git a/src/mobile/BrowserWindowMobile.cpp b/src/mobile/BrowserWindowMobile.cpp
index 82f36aa..ba8319d 100644
--- a/src/mobile/BrowserWindowMobile.cpp
+++ b/src/mobile/BrowserWindowMobile.cpp
@@ -26,6 +26,7 @@
#include <QtQml/QQmlContext>
#include <QtQml/QQmlEngine>
#include <QtQuick/QQuickItem>
+#include <QDebug>
BrowserWindowMobile::BrowserWindowMobile()
: m_browserView(0)
@@ -47,6 +48,10 @@ void BrowserWindowMobile::setupDeclarativeEnvironment()
context->setContextProperty("TabsModel", new TabsModel(this));
context->setContextProperty("UrlTools", new UrlTools(this));
+ QString importPath = qgetenv("QML_IMPORT_PATH");
+ qDebug() << "Snowshoe mobile version is using the import path version: " << importPath;
+ engine()->addImportPath(importPath);
+
QObject::connect(engine(), SIGNAL(quit()), qApp, SLOT(quit()));
setResizeMode(QQuickView::SizeRootObjectToView);