Skip to content

Instantly share code, notes, and snippets.

View cyberbobs's full-sized avatar

Boris Moiseev cyberbobs

  • Moscow, Russia
View GitHub Profile
@cyberbobs
cyberbobs / fingerprint.svg
Created June 24, 2015 16:32
QML: recoloring fragment shader (recolor monochrome icons in runtime)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cyberbobs
cyberbobs / MenuBackIcon.qml
Created November 16, 2014 23:07
Animated hamburger-back icon in Material Design style done in QML
import QtQuick 2.2
Item {
id: root
width: 24
height: 24
Rectangle {
id: bar1
x: 2
@cyberbobs
cyberbobs / placeholder
Created September 21, 2014 23:50
Material-like floating placeholder text transition mockup in QML. Buggy as hell, bit it gets the point.
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
import QtQuick.Window 2.2
Window {
title: qsTr("Hello World")
width: 640
height: 480
@cyberbobs
cyberbobs / qmake.conf
Last active August 29, 2015 14:04
Compiling host Qt 5.2.1 for Yocto + SABRE (qtbase/mkspecs/devices/linux-imx6-g++/qmake.conf)
#
# qmake configuration for the Freescale iMX6 boards (single, dual and quad)
#
# This mkspec is based and tested on the ltib-source-release 3.0.15
# Building ltib including glib, gpu-drivers and what ever you want to use (e.g. dbus or fontconfig)
# This mkspec is tested with a framebuffer (eglfs) configuration (not testes with X11)
# A typical configure line looks like:
# /home/tsenyk/qt5/qt5/configure -opensource -confirm-license -make libs -device imx6 \
# -device-option CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-fsl-linux-gnueabi- \
# -sysroot <path-to-your-ltib-install>/rootfs -no-gcc-sysroot \
@cyberbobs
cyberbobs / gist:07f8cf599ff7b51e3133
Last active August 29, 2015 14:04
Compiling host Qt 5.2.1 for Yocto + SABRE.Lite: paths and options
$ export PATH=$PATH:/opt/yocto-fsp-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi
$ ./configure -v -opensource -confirm-license -device imx6 -device-option CROSS_COMPILE=/opt/yocto-fsp-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi- -sysroot /home/bobs/development/3rdparty/fsl-community-bsp/build/tmp/sysroots/imx6qsabrelite -prefix /opt/qt-sabrelite/5.2.1 -platform linux-g++ -shared -no-pch -no-rpath -pkg-config -no-fontconfig -no-directfb -evdev -no-opengl -opengl es2 -eglfs -no-glib -no-gtkstyle -no-iconv -system-libjpeg -no-kms -system-libpng -no-linuxfb -no-mitshm -no-nis -openssl -qt-pcre -release -no-sm -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -nomake tests -tslib -libudev -widgets -no-xcb -no-xcursor -no-xfixes -no-xinerama -no-xinput -no-xinput2 -no-xkb -no-xrandr -no-xrender -no-xshape -no-xsync -no-xvideo -nomake examples
$ make -j 8
$ make install