Refactor generic wxDataViewColumn to use DoGetEffectiveWidth()

This function will be used for m_manuallySetWidth too, in addition to
m_width, in the next commit.

No changes yet in this one.
This commit is contained in:
Vadim Zeitlin
2020-05-01 03:25:52 +02:00
parent ecc58e5211
commit 6c5f3f8929
2 changed files with 13 additions and 3 deletions

View File

@@ -166,6 +166,11 @@ private:
void UpdateDisplay();
void UpdateWidth();
// Return the effective value corresponding to the given width, handling
// its negative values such as wxCOL_WIDTH_DEFAULT.
int DoGetEffectiveWidth(int width) const;
wxString m_title;
int m_width,
m_manuallySetWidth,