Skip to content

Instantly share code, notes, and snippets.

@benlau
Created January 1, 2016 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benlau/2a4920495d3152380bb7 to your computer and use it in GitHub Desktop.
Save benlau/2a4920495d3152380bb7 to your computer and use it in GitHub Desktop.
import QtQuick 2.2
pragma Singleton
QtObject {
function openItem(id) { AppDispatcher.dispatch(ActionTypes.openItem, { id : id }) }
function removeItem(id) { AppDispatcher.dispatch(ActionTypes.removeItem, { id: id }) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment