diff options
author | Sebastian Geerken <devnull@localhost> | 2014-07-18 23:25:17 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-07-18 23:25:17 +0200 |
commit | 738c0a53692efc77a6888a2f683c2481ca844628 (patch) | |
tree | 8faef1cb0e1d1d9589c35cb1ac71cbea2da4ac9a /dw/widget.hh | |
parent | 9d9b0c76a3b04a8ea5971e9d9cc8c9cd790b8b49 (diff) |
New dillorc option 'adjust_min_width'. Also fixed bug in textblock extremes calculation.
Diffstat (limited to 'dw/widget.hh')
-rw-r--r-- | dw/widget.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dw/widget.hh b/dw/widget.hh index bfbf1e91..23d91a55 100644 --- a/dw/widget.hh +++ b/dw/widget.hh @@ -99,6 +99,8 @@ protected: WidgetImgRenderer *widgetImgRenderer; private: + static bool adjustMinWidth; + /** * \brief The parent widget, NULL for top-level widgets. */ @@ -290,6 +292,8 @@ protected: */ virtual void markExtremesChange (int ref); + int getMinWidth (Extremes *extremes); + virtual int getAvailWidthOfChild (Widget *child, bool forceValue); virtual int getAvailHeightOfChild (Widget *child, bool forceValue); virtual void correctRequisitionOfChild (Widget *child, @@ -383,6 +387,10 @@ private: public: static int CLASS_ID; + inline static void setAdjustMinWidth (bool adjustMinWidth) + { Widget::adjustMinWidth = adjustMinWidth; } + inline static bool getAdjustMinWidth () { return Widget::adjustMinWidth; } + Widget (); ~Widget (); |