From 6d97b7f19824e36caee34219e02e7bbe7ec29fa1 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 10 Oct 2023 15:39:33 +0200 Subject: Replace QInputDialog with custom dialog for queries Recent commits allowed multi-line input while reusing the QInputDialog object already defined by Kristall. However, QInputDialog lacks a way to access its QPlainTextEdit directly, and therefore set the wrap mode. Since QInputDialog does no wrapping, it is inconvenient for writing a long text (think of social media sites such as BBS or Station). Therefore, a custom QDialog-derived class, namely QueryDialog, has been provided. --- src/widgets/querydialog.ui | 77 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 src/widgets/querydialog.ui (limited to 'src/widgets/querydialog.ui') diff --git a/src/widgets/querydialog.ui b/src/widgets/querydialog.ui new file mode 100644 index 0000000..001c29d --- /dev/null +++ b/src/widgets/querydialog.ui @@ -0,0 +1,77 @@ + + + QueryDialog + + + + 0 + 0 + 480 + 240 + + + + Dialog + + + + + + + + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + QueryDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + QueryDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + -- cgit v1.2.3