Serial Studio 1.1.6
A dashboard software for your embedded projects
|
#include <Utilities.h>
Public Slots | |
static void | aboutQt () |
static void | revealFile (const QString &pathToReveal) |
Public Member Functions | |
Q_INVOKABLE bool | askAutomaticUpdates () |
Static Public Member Functions | |
static Utilities & | instance () |
static void | rebootApplication () |
static int | showMessageBox (const QString &text, const QString &informativeText="", const QString &windowTitle="", const QMessageBox::StandardButtons &bt=QMessageBox::Ok) |
The Utilities class.
The Utilitities
module provides commonly used functionality to the rest of the application. For example, showing a messagebox with a nice format or revealing files in the operating system's preffered file manager.
|
staticslot |
Displays the about Qt dialog
bool Misc::Utilities::askAutomaticUpdates | ( | ) |
Asks the user if he/she wants the application to check for updates automatically
|
static |
Returns a pointer to the only instance of the class
|
static |
Restarts the application - with macOS specific code to make it work
|
staticslot |
Reveals the file contained in pathToReveal in Explorer/Finder. On GNU/Linux, this function shall open the file directly with the desktop services.
Hacking details: http://stackoverflow.com/questions/3490336/how-to-reveal-in-finder-or-show-in-explorer-with-qt
|
static |
Shows a macOS-like message box with the given properties