Add minimal support for ellipsization to wxQt wxStaticText
Set the visible label to the ellipsized value, if necessary. Also call AutoResizeIfNecessary() for consistency with the other ports.
This commit is contained in:
@@ -31,10 +31,13 @@ public:
|
||||
const wxString &name = wxStaticTextNameStr );
|
||||
|
||||
virtual void SetLabel(const wxString& label) wxOVERRIDE;
|
||||
virtual wxString GetLabel() const wxOVERRIDE;
|
||||
|
||||
virtual QWidget *GetHandle() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual wxString WXGetVisibleLabel() const wxOVERRIDE;
|
||||
virtual void WXSetVisibleLabel(const wxString& str) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
QLabel *m_qtLabel;
|
||||
|
||||
|
Reference in New Issue
Block a user