Right click
Select
Middle click
Pan
Mouse wheel
Zoom
const auto now = std::chrono::steady_clock::now(); | |
const auto ms = std::chrono::time_point_cast<std::chrono::milliseconds>(now); | |
const float angle = (ms.time_since_epoch().count() % (360 * 20)) / 20.0f; |
[submodule "glslang"] | |
path = glslang | |
url = git@github.com:KhronosGroup/glslang.git |
template <typename T> | |
struct Range { | |
T *_begin, *_end; | |
T *begin() { return _begin; } | |
T *end() { return _end; } | |
}; | |
template <typename T> | |
Range<T> make_range(T *begin, size_t count) | |
{ |
import QtQuick 2.4 | |
ListView { | |
id: list | |
width: 800 | |
height: 600 | |
orientation: Qt.Horizontal | |
model: 5 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="xml" encoding="utf-8" indent="yes"/> | |
<xsl:template match="shortcut"/> | |
<xsl:template match="*[(node())]"> | |
<xsl:copy> | |
<xsl:copy-of select="@*"/> | |
<xsl:apply-templates/> | |
</xsl:copy> | |
</xsl:template> | |
<xsl:template match="@*|node()"> |
import QtQuick 2.4 | |
import QtQuick.Window 2.2 | |
Window { | |
width: 800 | |
height: 480 | |
color: "#444" | |
ListView { |
#include <boost/property_tree/ptree.hpp> | |
void traverse(const boost::property_tree::ptree &pt) | |
{ | |
for (const auto &pair : pt) { | |
if (!pair.second.empty()) { | |
traverse(pair.second); | |
} | |
} | |
} |
import QtQuick 2.2 | |
import QtQuick.Window 2.2 | |
Window { | |
color: "gray" | |
NumberAnimation { | |
target: fx | |
property: "angle"; from: Math.PI * 2; to: 0 |
import QtQuick 2.2 | |
Rectangle { | |
id: root | |
width: 360 | |
height: 360 | |
Timer { | |
id: d |