DbModel Pile
version 0.0.1
DbModel pile.
|
file dbmodelcol.cc date November 2015 author Nicu Tofan More...
Public Slots | |
void | ttChanged (const QString &s_value) |
We're informed that the text has changed. | |
void | showPopUp () |
Force a pop-up show. | |
Public Member Functions | |
ComboLine (QWidget *parent=0) | |
Constructor. | |
Public Attributes | |
bool | one_time_trigger_ |
QString | forced_text_ |
file dbmodelcol.cc date November 2015 author Nicu Tofan
brief Contains the implementation for DbModelCol class.A line editor for helping with ComboBoxes for foreign keys. Faced a problem with combos edit-enabled that, when the editing starts, show the index instead of the text for current item.
As a workaround, we set initial text in forced_text_ and set a one_time_trigger_ to tell us whn is the first time the editor text changes and we replace that text with cached version.
To also show the list when the editor is created we use a one-shot timer that presents th pop-up (if this is done in the function the pop-up is shown at the wrong position).