DbModel Pile   version 0.0.1
DbModel pile.
ComboLine Class Reference

file dbmodelcol.cc date November 2015 author Nicu Tofan More...

+ Inheritance diagram for ComboLine:

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_
 

Detailed Description

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).


The documentation for this class was generated from the following file: