From 3cd1029fded28f2f18ffbbfeee975e7467a27019 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 17 Dec 2015 18:38:31 +0300 Subject: [PATCH] It removes SketchShapePlugin from plugins First code for Status Bar. --- src/Config/plugins.xml | 1 - src/ModuleBase/ModuleBase_IModule.cpp | 1 + src/ModuleBase/ModuleBase_Preferences.cpp | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Config/plugins.xml b/src/Config/plugins.xml index 45903311b..90a80b50b 100644 --- a/src/Config/plugins.xml +++ b/src/Config/plugins.xml @@ -5,7 +5,6 @@ - diff --git a/src/ModuleBase/ModuleBase_IModule.cpp b/src/ModuleBase/ModuleBase_IModule.cpp index 35d09d0de..a4fb01757 100644 --- a/src/ModuleBase/ModuleBase_IModule.cpp +++ b/src/ModuleBase/ModuleBase_IModule.cpp @@ -129,6 +129,7 @@ void ModuleBase_IModule::createFeatures() void ModuleBase_IModule::actionCreated(QAction* theFeature) { + theFeature->setStatusTip(theFeature->text()); connect(theFeature, SIGNAL(triggered(bool)), this, SLOT(onFeatureTriggered())); } diff --git a/src/ModuleBase/ModuleBase_Preferences.cpp b/src/ModuleBase/ModuleBase_Preferences.cpp index 1cd5e702f..bc7864833 100644 --- a/src/ModuleBase/ModuleBase_Preferences.cpp +++ b/src/ModuleBase/ModuleBase_Preferences.cpp @@ -301,6 +301,10 @@ void ModuleBase_PreferencesDlg::createMenuPage(int thePageId) "rows_number"); myPreferences->setItemProperty("min", 1, aRowsNb); myPreferences->setItemProperty("max", 6, aRowsNb); + + myPreferences->addItem(tr("Show Status Bar"), aSizeGroup, + SUIT_PreferenceMgr::Bool, ModuleBase_Preferences::MENU_SECTION, + "status_bar"); } void ModuleBase_PreferencesDlg::accept() -- 2.39.2