Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/forms/widgets/kexidbcombobox.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 40 | public: | |||
---|---|---|---|---|---|
62 | 62 | | |||
63 | //! Reimplemented because to avoid taking value from the internal editor (index is taken from the popup instead) | 63 | //! Reimplemented because to avoid taking value from the internal editor (index is taken from the popup instead) | ||
64 | virtual bool valueChanged(); | 64 | virtual bool valueChanged(); | ||
65 | 65 | | |||
66 | virtual QSize sizeHint() const; | 66 | virtual QSize sizeHint() const; | ||
67 | 67 | | |||
68 | //! Reimplemented after KexiDBAutoField: jsut sets \a cinfo without initializing a subwidget. | 68 | //! Reimplemented after KexiDBAutoField: jsut sets \a cinfo without initializing a subwidget. | ||
69 | //! Initialization is performed by \ref setVisibleColumnInfo(). | 69 | //! Initialization is performed by \ref setVisibleColumnInfo(). | ||
70 | virtual void setColumnInfo(KDbQueryColumnInfo* cinfo); | 70 | void setColumnInfo(KDbConnection *conn, KDbQueryColumnInfo* cinfo) override; | ||
71 | 71 | | |||
72 | /*! Used internally to set visible database column information. | 72 | /*! Used internally to set visible database column information. | ||
73 | Reimplemented: performs initialization of the subwidget. */ | 73 | Reimplemented: performs initialization of the subwidget. */ | ||
74 | virtual void setVisibleColumnInfo(KDbQueryColumnInfo* cinfo); | 74 | virtual void setVisibleColumnInfo(KDbQueryColumnInfo* cinfo); | ||
75 | 75 | | |||
76 | /*! \return visible database column information for this item. | 76 | /*! \return visible database column information for this item. | ||
77 | Reimplemented. */ | 77 | Reimplemented. */ | ||
78 | virtual KDbQueryColumnInfo* visibleColumnInfo(); | 78 | virtual KDbQueryColumnInfo* visibleColumnInfo(); | ||
▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 98 | protected: | |||
161 | virtual void setPopup(KexiComboBoxPopup *popup); | 161 | virtual void setPopup(KexiComboBoxPopup *popup); | ||
162 | 162 | | |||
163 | /*! Called by top-level form on key press event. | 163 | /*! Called by top-level form on key press event. | ||
164 | Used for Key_Escape to if the popup is visible, | 164 | Used for Key_Escape to if the popup is visible, | ||
165 | so the key press won't be consumed to perform "cancel editing". | 165 | so the key press won't be consumed to perform "cancel editing". | ||
166 | Also used for grabbing page down/up keys. */ | 166 | Also used for grabbing page down/up keys. */ | ||
167 | virtual bool keyPressed(QKeyEvent *ke); | 167 | virtual bool keyPressed(QKeyEvent *ke); | ||
168 | 168 | | |||
169 | //! Implemented for KexiComboBoxBase | ||||
170 | KDbConnection *connection() override; | ||||
171 | | ||||
169 | class Private; | 172 | class Private; | ||
170 | Private * const d; | 173 | Private * const d; | ||
171 | }; | 174 | }; | ||
172 | 175 | | |||
173 | #endif | 176 | #endif |