mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Add static member for Yes|No|Cancel buttons
This commit is contained in:
@@ -269,6 +269,9 @@ void GUIInvoke::blockcall(const std::function<void()> &f)
|
||||
invoke->metaObject()->method(methodIndex).invoke(invoke, Qt::BlockingQueuedConnection);
|
||||
}
|
||||
|
||||
const QMessageBox::StandardButtons RDDialog::YesNoCancel =
|
||||
QMessageBox::StandardButtons(QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel);
|
||||
|
||||
void RDDialog::show(QMenu *menu, QPoint pos)
|
||||
{
|
||||
menu->setWindowModality(Qt::ApplicationModal);
|
||||
|
||||
@@ -246,6 +246,8 @@ class QMenu;
|
||||
// helper for doing a manual blocking invoke of a dialog
|
||||
struct RDDialog
|
||||
{
|
||||
static const QMessageBox::StandardButtons YesNoCancel;
|
||||
|
||||
static void show(QMenu *menu, QPoint pos);
|
||||
static int show(QDialog *dialog);
|
||||
static QMessageBox::StandardButton messageBox(
|
||||
|
||||
Reference in New Issue
Block a user