QElectroTech
0.8-dev
|
The ElementQueryWidget class A widget use to edit a sql query for get element information This widget only work to get information from ProjectDataBase. More...
#include <elementquerywidget.h>
Inherits QWidget.
Public Member Functions | |
ElementQueryWidget (QWidget *parent=nullptr) | |
ElementQueryWidget::ElementQueryWidget. More... | |
~ElementQueryWidget () | |
ElementQueryWidget::~ElementQueryWidget. More... | |
void | setQuery (const QString &query) |
ElementQueryWidget::setQuery. More... | |
QString | queryStr () const |
ElementQueryWidget::queryStr. More... | |
void | setGroupBy (QString text, bool set=true) |
ElementQueryWidget::setGroupBy Add the query instruction GROUP BY. More... | |
void | setCount (QString text, bool set=true) |
ElementQueryWidget::setCount Add the query instruction COUNT. Unlike setGroupBy, you have to write the entire sentance. ex : text = "COUNT(*) AS designation_qty". the query will contain what you write. More... | |
Static Public Member Functions | |
static QString | modelIdentifier () |
Private Attributes | |
Ui::ElementQueryWidget * | ui |
QHash< QString, QString > | m_export_info |
QButtonGroup | m_button_group |
QList< QListWidgetItem * > | m_items_list |
QString | m_custom_query |
QString | m_group_by |
QString | m_count |
QHash< QString, QPair< int, QString > > | m_filter |
The ElementQueryWidget class A widget use to edit a sql query for get element information This widget only work to get information from ProjectDataBase.
|
explicit |
ElementQueryWidget::~ElementQueryWidget | ( | ) |
|
privateslot |
ElementQueryWidget::fillSavedQuery Fill the combobox of saved queries.
|
privateslot |
ElementQueryWidget::FilterFor.
key |
|
inlinestatic |
|
privateslot |
ElementQueryWidget::on_m_add_pb_clicked.
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
ElementQueryWidget::on_m_filter_le_textEdited.
arg1 |
|
privateslot |
ElementQueryWidget::on_m_filter_type_cb_activated.
index |
|
privateslot |
ElementQueryWidget::on_m_load_pb_clicked Load a query from nomenclature.json file.
|
privateslot |
ElementQueryWidget::on_m_remove_pb_clicked.
|
privateslot |
ElementQueryWidget::on_m_save_current_conf_pb_clicked Save the actual query to nomenclature.json file.
|
privateslot |
|
privateslot |
|
privateslot |
QString ElementQueryWidget::queryStr | ( | ) | const |
|
privateslot |
ElementQueryWidget::reset Clear this widget aka set to initial state.
|
privateslot |
ElementQueryWidget::selectedKeys.
void ElementQueryWidget::setCount | ( | QString | text, |
bool | set = true |
||
) |
ElementQueryWidget::setCount Add the query instruction COUNT. Unlike setGroupBy, you have to write the entire sentance. ex : text = "COUNT(*) AS designation_qty". the query will contain what you write.
text | : the count instruction |
set | : true by default -> count will be used. false -> count will be not used. |
void ElementQueryWidget::setGroupBy | ( | QString | text, |
bool | set = true |
||
) |
ElementQueryWidget::setGroupBy Add the query instruction GROUP BY.
text | : the text of the GROUP BY instruction: ex : if text = designation, the query will contain "GROUP BY designation" |
set | : true by default -> GROUP BY will be used. false -> GROUP BY will be not used |
void ElementQueryWidget::setQuery | ( | const QString & | query | ) |
query | Set the current query to query. If it's possible, rebuild the state of the widget from the query |
|
privateslot |
|
privateslot |
ElementQueryWidget::updateQueryLine.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |