summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabstrip.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-05 15:47:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-05 15:47:31 +0300
commit5aa5429c62096034769ffdaef92a0fcb5db08301 (patch)
tree15fb060f619c30c4e7349e2d18f3cf6cfba05928 /src/gui/widgets/tabstrip.h
parentad3a223908a77d42ee97ef28b598e3c831bee7d1 (diff)
downloadmv-5aa5429c62096034769ffdaef92a0fcb5db08301.tar.gz
mv-5aa5429c62096034769ffdaef92a0fcb5db08301.tar.bz2
mv-5aa5429c62096034769ffdaef92a0fcb5db08301.tar.xz
mv-5aa5429c62096034769ffdaef92a0fcb5db08301.zip
Allow set pressed item in widgetgroup and child objects.
Diffstat (limited to 'src/gui/widgets/tabstrip.h')
-rw-r--r--src/gui/widgets/tabstrip.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/widgets/tabstrip.h b/src/gui/widgets/tabstrip.h
index 31877cb42..a041bad11 100644
--- a/src/gui/widgets/tabstrip.h
+++ b/src/gui/widgets/tabstrip.h
@@ -37,7 +37,8 @@ class TabStrip final : public WidgetGroup
A_DELETE_COPY(TabStrip)
- Widget *createWidget(const std::string &name)
+ Widget *createWidget(const std::string &name,
+ const bool pressed = false)
const override final A_WARN_UNUSED;
void action(const ActionEvent &event) override final;
@@ -45,6 +46,12 @@ class TabStrip final : public WidgetGroup
void nextTab();
void prevTab();
+
+ void setPressFirst(const bool press)
+ { mPressFirst = press; }
+
+ protected:
+ bool mPressFirst;
};
#endif // GUI_WIDGETS_TABSTRIP_H