forked from qt-creator/qt-creator
(Help)SideBar fixes
1. Get rid of the need to remember the side bar items, instead use the IDs for activation. 2. Fix issue with empty side bar that cannot be shown, if settings exist but contain invalid item IDs. 3. Use actual IDs instead of translated window titles for item IDs. This requires using a different settings group to avoid issues with 2. when going back to earlier versions of Qt Creator. Change-Id: I1a760aa5a019db3231803af1bb72f83db49ba6b0 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -63,14 +63,18 @@ const char CONTEXT_HELP[] = "Help.Context";
|
||||
const char HELP_HOME[] = "Help.Home";
|
||||
const char HELP_PREVIOUS[] = "Help.Previous";
|
||||
const char HELP_NEXT[] = "Help.Next";
|
||||
const char HELP_BOOKMARK[] = "Help.AddBookmark";
|
||||
const char HELP_ADDBOOKMARK[] = "Help.AddBookmark";
|
||||
const char HELP_INDEX[] = "Help.Index";
|
||||
const char HELP_CONTENTS[] = "Help.Contents";
|
||||
const char HELP_SEARCH[] = "Help.Search";
|
||||
const char HELP_BOOKMARKS[] = "Help.Bookmarks";
|
||||
const char HELP_OPENPAGES[] = "Help.OpenPages";
|
||||
|
||||
static const char SB_INDEX[] = QT_TRANSLATE_NOOP("Help::Internal::HelpPlugin", "Index");
|
||||
static const char SB_CONTENTS[] = QT_TRANSLATE_NOOP("Help::Internal::HelpPlugin", "Contents");
|
||||
static const char SB_BOOKMARKS[] = QT_TRANSLATE_NOOP("Help::Internal::HelpPlugin", "Bookmarks");
|
||||
|
||||
static const char SB_OPENPAGES[] = QT_TRANSLATE_NOOP("Help::Internal::HelpPlugin", "Open Pages");
|
||||
static const char SB_SEARCH[] = QT_TRANSLATE_NOOP("Help::Internal::HelpPlugin", "Search");
|
||||
|
||||
} // Constants
|
||||
} // Help
|
||||
|
||||
Reference in New Issue
Block a user