diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-10-10 15:39:33 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-10-10 20:47:18 +0200 |
| commit | 7a7d9dc216ecf0bf7200666b479fb08c0edec834 (patch) | |
| tree | 30957e51979a26f5baaf54e0c3f193d9689fe92c /src/kristall.pro | |
| parent | 8cb79ee6711b3db3f138db6367752053f45efc17 (diff) | |
| download | kristall-query-dialog.tar.gz | |
Replace QInputDialog with custom dialog for queriesquery-dialog
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.
Diffstat (limited to 'src/kristall.pro')
| -rw-r--r-- | src/kristall.pro | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kristall.pro b/src/kristall.pro index 550a055..4884897 100644 --- a/src/kristall.pro +++ b/src/kristall.pro @@ -158,7 +158,8 @@ SOURCES += \ widgets/favouritepopup.cpp \ widgets/favouritebutton.cpp \ cachehandler.cpp \ - widgets/searchbox.cpp + widgets/searchbox.cpp \ + widgets/querydialog.cpp HEADERS += \ ../lib/luis-l-gist/interactiveview.hpp \ @@ -206,6 +207,7 @@ HEADERS += \ widgets/ssltrusteditor.hpp \ widgets/favouritepopup.hpp \ widgets/favouritebutton.hpp \ + widgets/querydialog.hpp \ cachehandler.hpp \ widgets/searchbox.hpp @@ -218,7 +220,8 @@ FORMS += \ dialogs/settingsdialog.ui \ mainwindow.ui \ widgets/mediaplayer.ui \ - widgets/ssltrusteditor.ui + widgets/ssltrusteditor.ui \ + widgets/querydialog.ui CONFIG += lrelease embed_translations |
