Merge branch 'qt-dropdown'
Make wxQt wxComboBox behave more consistently with the other ports. Also includes related fixes to wxChoice and wxTextEntry. See https://github.com/wxWidgets/wxWidgets/pull/1161
This commit is contained in:
@@ -71,6 +71,8 @@ protected:
|
||||
virtual void DoClear();
|
||||
virtual void DoDeleteOneItem(unsigned int pos);
|
||||
|
||||
void QtInitSort(QComboBox *combo);
|
||||
|
||||
QComboBox *m_qtComboBox;
|
||||
|
||||
private:
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxComboBoxNameStr);
|
||||
|
||||
virtual void SetSelection(int n) wxOVERRIDE { wxChoice::SetSelection(n); }
|
||||
virtual void SetSelection(int n) wxOVERRIDE;
|
||||
virtual void SetSelection(long from, long to) wxOVERRIDE;
|
||||
|
||||
virtual int GetSelection() const wxOVERRIDE { return wxChoice::GetSelection(); }
|
||||
@@ -70,6 +70,12 @@ public:
|
||||
bool IsTextEmpty() const { return wxTextEntry::IsEmpty(); }
|
||||
|
||||
virtual void SetValue(const wxString& value) wxOVERRIDE;
|
||||
virtual void ChangeValue(const wxString& value) wxOVERRIDE;
|
||||
virtual void AppendText(const wxString &value) wxOVERRIDE;
|
||||
virtual void Replace(long from, long to, const wxString &value) wxOVERRIDE;
|
||||
virtual void WriteText(const wxString &value) wxOVERRIDE;
|
||||
virtual void SetInsertionPoint(long insertion) wxOVERRIDE;
|
||||
virtual long GetInsertionPoint() const wxOVERRIDE;
|
||||
|
||||
virtual void Popup();
|
||||
virtual void Dismiss();
|
||||
@@ -80,6 +86,7 @@ protected:
|
||||
virtual wxString DoGetValue() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
void SetActualValue(const wxString& value);
|
||||
|
||||
// From wxTextEntry:
|
||||
virtual wxWindow *GetEditableWindow() wxOVERRIDE { return this; }
|
||||
|
||||
Reference in New Issue
Block a user