aboutsummaryrefslogtreecommitdiff
path: root/dw/widget.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-05-28 20:48:21 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-05-28 20:48:21 +0200
commitb0b0cddaff10b4cff371b8bb7aa21e045f8e3915 (patch)
tree10f178f4d8cb6ad5b80cba3590d9dc0107027655 /dw/widget.hh
parent1351b8d80044b898f92557e7ff90096deee5f5bc (diff)
parentb99998a37d3ab1336d0ce82ddc60d0c406a2fd1b (diff)
merge
Diffstat (limited to 'dw/widget.hh')
-rw-r--r--dw/widget.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/dw/widget.hh b/dw/widget.hh
index 013be27b..3034b982 100644
--- a/dw/widget.hh
+++ b/dw/widget.hh
@@ -67,6 +67,11 @@ protected:
* The dw::Image widget uses this flag, see dw::Image::setBuffer.
*/
WAS_ALLOCATED = 1 << 5,
+
+ /**
+ * \brief Set for block-level widgets (as opposed to inline widgets)
+ */
+ BLOCK_LEVEL = 1 << 6,
};
private:
@@ -241,6 +246,7 @@ public:
inline bool wasAllocated () { return flags & WAS_ALLOCATED; }
inline bool usesHints () { return flags & USES_HINTS; }
inline bool hasContents () { return flags & HAS_CONTENTS; }
+ inline bool blockLevel () { return flags & BLOCK_LEVEL; }
void setParent (Widget *parent);