summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-17 15:54:50 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-17 15:54:50 +0300
commit37597422a0d458a224fed0258d093f7a7e400041 (patch)
tree61996595f7a39351635bdad0172deb5855aa8776 /src/gui/widgets/widget.h
parent794ebb9ccd1b6605a03fee438abc1e4f2f7966c9 (diff)
downloadmv-37597422a0d458a224fed0258d093f7a7e400041.tar.gz
mv-37597422a0d458a224fed0258d093f7a7e400041.tar.bz2
mv-37597422a0d458a224fed0258d093f7a7e400041.tar.xz
mv-37597422a0d458a224fed0258d093f7a7e400041.zip
Exclude useless logic methods calls.
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r--src/gui/widgets/widget.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h
index beff5113b..c2b1040db 100644
--- a/src/gui/widgets/widget.h
+++ b/src/gui/widgets/widget.h
@@ -148,7 +148,7 @@ class Widget : public Widget2
* @see setFrameSize, getFrameSize
* @since 0.8.0
*/
- virtual void drawFrame(Graphics* graphics)
+ virtual void drawFrame(Graphics* graphics A_UNUSED)
{ }
/**
@@ -1007,6 +1007,9 @@ class Widget : public Widget2
*/
virtual void showPart(const Rect &rectangle);
+ bool isAllowLogic() const
+ { return mAllowLogic; }
+
protected:
/**
* Distributes an action event to all action listeners
@@ -1215,6 +1218,8 @@ class Widget : public Widget2
*/
bool mEnabled;
+ bool mAllowLogic;
+
/**
* Holds the global font used by the widget.
*/