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:
Vadim Zeitlin
2019-07-07 15:54:14 +02:00
parent 63a40a09b2
commit 958521183a
2 changed files with 20 additions and 2 deletions

View File

@@ -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;