FactDev
0.1
|
Class for search in database. More...
#include <searchwidget.h>
Public Slots | |
void | search (QString toSearch) |
searchWidget::launch a search More... | |
void | getCustomerData () |
searchWidget::getCustomerData Return data on the customer selected in the QTableView and display this data (Firstname, Lastname, Company) | |
Signals | |
void | selectCustomer () |
searchWidget::selectCustomer Signal that the Customer selected has changed | |
Public Member Functions | |
searchWidget (QWidget *parent=0) | |
searchWidget::searchWidget Construct a search widget More... | |
int | getCurrentCustomerId () |
searchWidget::getCurrentCustomerId Return the id of the customer selected in the table More... | |
bool | isCustomerSelected () const |
searchWidget::isCustomerSelected Return TRUE if a customer is selected, else FALSE More... | |
void | selectCustomer (int id) |
searchWidget::selectCustomer Select the Customer with it id More... | |
int | getIdCustomer () const |
searchWidget::getIdCustomer Return the Customer id of the Customer line selected More... | |
void | setIdCustomer (int idCustomer) |
searchWidget::setIdCustomer Change the customer id by the new idCustomer More... | |
Class for search in database.
|
explicit |
searchWidget::searchWidget Construct a search widget
parent | The QWidget parent |
int Gui::Widgets::searchWidget::getCurrentCustomerId | ( | ) |
searchWidget::getCurrentCustomerId Return the id of the customer selected in the table
int Gui::Widgets::searchWidget::getIdCustomer | ( | ) | const |
searchWidget::getIdCustomer Return the Customer id of the Customer line selected
bool Gui::Widgets::searchWidget::isCustomerSelected | ( | ) | const |
searchWidget::isCustomerSelected Return TRUE if a customer is selected, else FALSE
|
slot |
searchWidget::launch a search
toSearch | The value to search |
void Gui::Widgets::searchWidget::selectCustomer | ( | int | id | ) |
searchWidget::selectCustomer Select the Customer with it id
id | Customer ID |
void Gui::Widgets::searchWidget::setIdCustomer | ( | int | idCustomer | ) |
searchWidget::setIdCustomer Change the customer id by the new idCustomer
idCustomer | Customer id |