core: add debugging "magic" function
Just a UI way of turning on debug functionality
This commit is contained in:
@@ -282,6 +282,11 @@ MainMenu::MainMenu(MainWindow *parent) :
|
||||
|
||||
tools_preferences_item_ = tools_menu_->AddItem("prefs", Core::instance(), &Core::DialogPreferencesShow, tr("Ctrl+,"));
|
||||
|
||||
#ifndef NDEBUG
|
||||
tools_magic_item_ = tools_menu_->AddItem("magic", Core::instance(), &Core::SetMagic);
|
||||
tools_magic_item_->setCheckable(true);
|
||||
#endif
|
||||
|
||||
//
|
||||
// HELP MENU
|
||||
//
|
||||
@@ -787,6 +792,9 @@ void MainMenu::Retranslate()
|
||||
tools_record_item_->setText(tr("Record Tool"));
|
||||
tools_snapping_item_->setText(tr("Enable Snapping"));
|
||||
tools_preferences_item_->setText(tr("Preferences"));
|
||||
#ifndef NDEBUG
|
||||
tools_magic_item_->setText("Magic");
|
||||
#endif
|
||||
|
||||
// Help menu
|
||||
help_menu_->setTitle(tr("&Help"));
|
||||
|
||||
@@ -287,6 +287,10 @@ private:
|
||||
QAction* tools_snapping_item_;
|
||||
QAction* tools_preferences_item_;
|
||||
|
||||
#ifndef NDEBUG
|
||||
QAction* tools_magic_item_;
|
||||
#endif
|
||||
|
||||
Menu* help_menu_;
|
||||
QAction* help_action_search_item_;
|
||||
QAction* help_feedback_item_;
|
||||
|
||||
Reference in New Issue
Block a user