summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-07-24 20:01:44 +0300
committerMavridis Philippe <mavridisf@gmail.com>2021-07-24 20:03:56 +0300
commit479de3b5aa48845e33cdc5a570fda046a0ea41c7 (patch)
treeb0d2d34b2581862ccd5e9f62553e38e61bf25b1e
parentb4ad842fcb91bdd5ff83ab3c000a71de2261ab94 (diff)
downloadmathemagics-479de3b5.tar.gz
mathemagics-479de3b5.zip
Added action to show/hide toolbars.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit 7741d685c4fc82cdb15828ec944e211476868704)
-rw-r--r--mathemagics/mathemagics.cpp1
-rw-r--r--mathemagics/mathemagicsui.rc2
2 files changed, 3 insertions, 0 deletions
diff --git a/mathemagics/mathemagics.cpp b/mathemagics/mathemagics.cpp
index 24ac91b..73877a9 100644
--- a/mathemagics/mathemagics.cpp
+++ b/mathemagics/mathemagics.cpp
@@ -146,6 +146,7 @@ Mathemagics::Mathemagics(TQWidget *parent, const char *name, WFlags f)
(void) new TDEAction(i18n("&Revert Stack Changes"), 0, this, SLOT(slotRevert()), actionCollection(), "revert");
(void) new TDEAction(i18n("&Drop"), 0, this, SLOT(slotDrop()), actionCollection(), "drop");
+ setStandardToolBarMenuEnabled(true);
statusBar();
createGUI();
diff --git a/mathemagics/mathemagicsui.rc b/mathemagics/mathemagicsui.rc
index 78f9cee..6a1372b 100644
--- a/mathemagics/mathemagicsui.rc
+++ b/mathemagics/mathemagicsui.rc
@@ -53,6 +53,8 @@
<Action name="angle" />
<Separator />
<Action name="keypad" />
+ <Separator />
+ <Merge name="StandardToolBarMenuHandler" />
</Menu>
</MenuBar>