This module provides miscellaneous Qt utility functions.
Returns a callback that broadcasts a message over the notifier.
If the caller of SLOT() provides args or opts then those are used instead of the ones provided by the invoker of the callback.
Adds a Ctrl+w close action to a widget.
Adds items to a widget.
Move widget to the center of the default screen
Creates a QListWidgetItem with text and the icon at filename.
Given a filename, return a QListWidgetItem suitable for adding to a QListWidget. “staged” and “untracked” controls whether to use the appropriate icons.
Creates a QTreeWidgetItem with text and the icon at filename.
Return the diff font string.
Return a standard icon for a directory.
Return a standard icon for a file.
Given a basename returns a QIcon from the corresponding cola icon.
Returns a file path representing a corresponding file path.
Returns a QIcon for a particular file path.
Launches a QMessageBox information with the provided title and message.
Sends messages to the log window.
Creates an Open File dialog and returns a filename.
Prompts for a directory path
Presents the user with an input widget and returns the input.
Launches a QMessageBox question with the provided title and message. Passing “default=False” will make “No” the default choice.
Creates a Save File dialog and returns a filename.
Returns the selected item in a QListWidget.
Returns a(row_number, is_selected) tuple for a QListWidget.
Returns a(id_number, is_selected) for a QTreeWidget.
Returns an array of model items that correspond to the selected QListWidget indices.
Sets the copy/paste buffer to text.
Updates the diff font based on the configured value.
Clear the existing widget contents and set the new items.
Sets a list widget to the strings passed in items.
Sets a the currently selected item to the item at index idx.
Returns model items that correspond to selected widget indices
Populate a QListWidget with custom icon items.