forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.2'
This commit is contained in:
4
README
4
README
@@ -12,7 +12,9 @@ Mac OS X 10.7 or later
|
||||
|
||||
Building the sources requires Qt 5.2.0 or later.
|
||||
It is also possible to build with Qt 4.8.x, but in that case the Welcome mode,
|
||||
Qt Quick Designer, QML Profiler, and the WinRT and Qbs support are disabled.
|
||||
QML Profiler, and the WinRT and Qbs support are disabled.
|
||||
The Qt Quick Designer can only be compiled with Qt 5.3.1 or later , because
|
||||
it requires QQuickWidget.
|
||||
|
||||
Compiling Qt Creator
|
||||
====================
|
||||
|
@@ -61,12 +61,13 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget
|
||||
QWidget(parent),
|
||||
m_scaleUp(0),
|
||||
m_scaleDown(0),
|
||||
m_resetScale(0)
|
||||
m_resetScale(0),
|
||||
m_style(style)
|
||||
{
|
||||
Utils::StyledBar *toolBar = new Utils::StyledBar();
|
||||
|
||||
QAction *switchToHelp = new QAction(tr("Go to Help Mode"), toolBar);
|
||||
connect(switchToHelp, SIGNAL(triggered()), this, SLOT(emitOpenHelpMode()));
|
||||
connect(switchToHelp, SIGNAL(triggered()), this, SLOT(helpModeButtonClicked()));
|
||||
|
||||
QAction *back = new QAction(QIcon(QLatin1String(":/help/images/previous.png")),
|
||||
tr("Back"), toolBar);
|
||||
@@ -123,7 +124,7 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget
|
||||
cmd = Core::ActionManager::registerAction(m_openHelpMode,
|
||||
Help::Constants::CONTEXT_HELP,
|
||||
context);
|
||||
connect(m_openHelpMode, SIGNAL(triggered()), this, SLOT(emitOpenHelpMode()));
|
||||
connect(m_openHelpMode, SIGNAL(triggered()), this, SLOT(helpModeButtonClicked()));
|
||||
|
||||
Core::ActionContainer *advancedMenu = Core::ActionManager::actionContainer(Core::Constants::M_EDIT_ADVANCED);
|
||||
QTC_CHECK(advancedMenu);
|
||||
@@ -206,9 +207,11 @@ void HelpWidget::updateWindowTitle()
|
||||
setWindowTitle(tr("Help - %1").arg(pageTitle));
|
||||
}
|
||||
|
||||
void HelpWidget::emitOpenHelpMode()
|
||||
void HelpWidget::helpModeButtonClicked()
|
||||
{
|
||||
emit openHelpMode(m_viewer->source());
|
||||
if (m_style == ExternalWindow)
|
||||
close();
|
||||
}
|
||||
|
||||
} // Internal
|
||||
|
@@ -71,7 +71,7 @@ private slots:
|
||||
void updateBackMenu();
|
||||
void updateForwardMenu();
|
||||
void updateWindowTitle();
|
||||
void emitOpenHelpMode();
|
||||
void helpModeButtonClicked();
|
||||
|
||||
private:
|
||||
QMenu *m_backMenu;
|
||||
@@ -83,6 +83,7 @@ private:
|
||||
QAction *m_copy;
|
||||
|
||||
HelpViewer *m_viewer;
|
||||
WidgetStyle m_style;
|
||||
};
|
||||
|
||||
} // Internal
|
||||
|
@@ -76,13 +76,18 @@ isEmpty(IDE_PACKAGE_MODE) {
|
||||
updateinfo
|
||||
}
|
||||
|
||||
minQtVersion(5, 3, 1) {
|
||||
SUBDIRS += qmldesigner
|
||||
} else {
|
||||
warning("QmlDesigner plugin has been disabled.")
|
||||
warning("This plugin requires Qt 5.3.1 or newer.")
|
||||
}
|
||||
|
||||
minQtVersion(5, 2, 0) {
|
||||
SUBDIRS += \
|
||||
qmldesigner \
|
||||
qmlprofiler \
|
||||
welcome
|
||||
} else {
|
||||
warning("QmlDesigner plugin has been disabled.")
|
||||
warning("QmlProfiler plugin has been disabled.")
|
||||
warning("Welcome plugin has been disabled.")
|
||||
warning("These plugins need at least Qt 5.2.")
|
||||
|
@@ -1049,7 +1049,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
||||
|
||||
VariableManager::registerFileVariables(Constants::VAR_CURRENTPROJECT_PREFIX,
|
||||
tr("Current project's main file"),
|
||||
[&]() -> QString {
|
||||
[this]() -> QString {
|
||||
QString projectFilePath;
|
||||
if (Project *project = ProjectExplorerPlugin::currentProject())
|
||||
if (IDocument *doc = project->document())
|
||||
|
@@ -245,6 +245,9 @@ ProjectExplorer::Kit *QmakeProjectImporter::createTemporaryKit(QtSupport::BaseQt
|
||||
const Utils::FileName &parsedSpec)
|
||||
{
|
||||
ProjectExplorer::Kit *k = new ProjectExplorer::Kit;
|
||||
|
||||
ProjectExplorer::KitGuard guard(k);
|
||||
|
||||
QtSupport::QtKitInformation::setQtVersion(k, version);
|
||||
ProjectExplorer::ToolChainKitInformation::setToolChain(k, version->preferredToolChain(parsedSpec));
|
||||
QmakeKitInformation::setMkspec(k, parsedSpec);
|
||||
@@ -253,7 +256,16 @@ ProjectExplorer::Kit *QmakeProjectImporter::createTemporaryKit(QtSupport::BaseQt
|
||||
if (temporaryVersion)
|
||||
k->setValue(QT_IS_TEMPORARY, version->uniqueId());
|
||||
|
||||
// Set up other values:
|
||||
foreach (ProjectExplorer::KitInformation *ki, ProjectExplorer::KitManager::kitInformation()) {
|
||||
if (ki->id() == ProjectExplorer::ToolChainKitInformation::id()
|
||||
|| ki->id() == QtSupport::QtKitInformation::id())
|
||||
continue;
|
||||
ki->setup(k);
|
||||
}
|
||||
|
||||
k->setDisplayName(version->displayName());
|
||||
|
||||
setIsUpdating(true);
|
||||
ProjectExplorer::KitManager::registerKit(k);
|
||||
setIsUpdating(false);
|
||||
|
@@ -68,11 +68,6 @@ static const char currentPageSettingsKeyC[] = "WelcomeTab";
|
||||
namespace Welcome {
|
||||
namespace Internal {
|
||||
|
||||
struct WelcomeModePrivate
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
class WelcomeMode : public Core::IMode
|
||||
{
|
||||
Q_OBJECT
|
||||
|
Reference in New Issue
Block a user