15 #include <QApplication>
17 #include <QDialogButtonBox>
21 #include <QVBoxLayout>
23 #include "../../../backend/cswordmodulesearch.h"
24 #include "../../../util/btconnect.h"
25 #include "../../messagedialog.h"
41 QVBoxLayout *vboxLayout =
new QVBoxLayout(
this);
50 QDialogButtonBox::Save | QDialogButtonBox::Close,
57 this, &CSearchAnalysisDialog::reject);
65 QDialog::resizeEvent(event);
70 QDialog::showEvent(event);
78 int const desktopWidth = screen()->availableSize().width();
83 { setWindowTitle(tr(
"Analysis of search results")); }
void showEvent(QShowEvent *event) override
CSearchAnalysisDialog(QString searchedText, CSwordModuleSearch::Results const &results, QWidget *parentDialog=nullptr)
CSearchAnalysisScene * m_analysis
void resizeEvent(QResizeEvent *event) override
CSearchAnalysisView * m_analysisView
QDialogButtonBox * m_buttonBox
void resizeHeight(int height)
std::vector< ModuleSearchResult > Results
static const int DIALOG_HEIGHT
static const int DIALOG_BORDER
void prepareDialogBox(QDialogButtonBox *box)