QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlMessageBoxUtils.cpp File Reference

Functions

void qtlAbout (QObject *parent, const QString &title, const QString &iconPath, const QString &text)
 Display a simple "about" box similar to QMessageBox::about() but add a specific icon. More...
 
bool qtlConfirm (QObject *parent, const QString &question, const QString &title)
 Ask a question with Yes/No buttons (default to No). More...
 
void qtlError (QObject *parent, const QString &message, const QString &title)
 Report an error message. More...
 

Function Documentation

◆ qtlConfirm()

bool qtlConfirm ( QObject *  parent,
const QString &  question,
const QString &  title = qtlApplicationName() 
)

Ask a question with Yes/No buttons (default to No).

Parameters
[in]parentParent object/widget. If not a widget, find first widget in its hierarchy.
[in]questionThe question to display.
[in]titleDialog box title. Default to the application name.
Returns
True if answer is Yes, false otherwise.

◆ qtlError()

void qtlError ( QObject *  parent,
const QString &  message,
const QString &  title = qtlApplicationName() 
)

Report an error message.

Parameters
[in]parentParent object/widget. If not a widget, find first widget in its hierarchy.
[in]messageThe message to display.
[in]titleDialog box title. Default to the application name.

◆ qtlAbout()

void qtlAbout ( QObject *  parent,
const QString &  title,
const QString &  iconPath,
const QString &  text 
)

Display a simple "about" box similar to QMessageBox::about() but add a specific icon.

Parameters
[in]parentParent object/widget. If not a widget, find first widget in its hierarchy.
[in]titleWindow title.
[in]iconPathPath to icon file, for instance ":/images/logo.png".
[in]textDescription text. Can be HTML.