Delay widget creation of options pages till their category is shown

Also add the alternative way: IOptionsPageProvider, which states
a category, and is asked for a list of options pages for that
category when it is shown.

Task-number: QTCREATORBUG-3131
This commit is contained in:
con
2010-12-02 18:28:16 +01:00
parent 5c99316624
commit 773343f396
32 changed files with 549 additions and 352 deletions

View File

@@ -54,7 +54,7 @@ using namespace Core;
using namespace Core::Internal;
CommandMappings::CommandMappings(QObject *parent)
: IOptionsPage(parent)
: IOptionsPage(parent), m_page(0)
{
}
@@ -140,7 +140,10 @@ void CommandMappings::setTargetHeader(const QString &s)
void CommandMappings::finish()
{
if (!m_page) // page was never shown
return;
delete m_page;
m_page = 0;
}
void CommandMappings::commandChanged(QTreeWidgetItem *current)