forked from qt-creator/qt-creator
ProjectExplorer: Add a common template for project settings
- Added base widget class for common options among project settings tabs - Added usage new template class to all pages used in project settings ToDo - Make CodeStyle tab standardized Change-Id: I8f70413b6ee764c5e43fbeae104b9389237c582f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -26,15 +26,16 @@
|
||||
#include "projectwindow.h"
|
||||
|
||||
#include "buildinfo.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "kit.h"
|
||||
#include "kitmanager.h"
|
||||
#include "kitoptionspage.h"
|
||||
#include "panelswidget.h"
|
||||
#include "project.h"
|
||||
#include "projectexplorer.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "projectimporter.h"
|
||||
#include "projectpanelfactory.h"
|
||||
#include "projectsettingswidget.h"
|
||||
#include "session.h"
|
||||
#include "target.h"
|
||||
#include "targetsettingspanel.h"
|
||||
@@ -261,7 +262,7 @@ QVariant MiscSettingsPanelItem::data(int column, int role) const
|
||||
|
||||
if (role == PanelWidgetRole) {
|
||||
if (!m_widget) {
|
||||
QWidget *widget = m_factory->createWidget(m_project);
|
||||
ProjectSettingsWidget *widget = m_factory->createWidget(m_project);
|
||||
m_widget = new PanelsWidget(m_factory->displayName(), widget);
|
||||
m_widget->setFocusProxy(widget);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user