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.
|
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,
|
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
|
Compiling Qt Creator
|
||||||
====================
|
====================
|
||||||
|
@@ -61,12 +61,13 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget
|
|||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
m_scaleUp(0),
|
m_scaleUp(0),
|
||||||
m_scaleDown(0),
|
m_scaleDown(0),
|
||||||
m_resetScale(0)
|
m_resetScale(0),
|
||||||
|
m_style(style)
|
||||||
{
|
{
|
||||||
Utils::StyledBar *toolBar = new Utils::StyledBar();
|
Utils::StyledBar *toolBar = new Utils::StyledBar();
|
||||||
|
|
||||||
QAction *switchToHelp = new QAction(tr("Go to Help Mode"), toolBar);
|
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")),
|
QAction *back = new QAction(QIcon(QLatin1String(":/help/images/previous.png")),
|
||||||
tr("Back"), toolBar);
|
tr("Back"), toolBar);
|
||||||
@@ -123,7 +124,7 @@ HelpWidget::HelpWidget(const Core::Context &context, WidgetStyle style, QWidget
|
|||||||
cmd = Core::ActionManager::registerAction(m_openHelpMode,
|
cmd = Core::ActionManager::registerAction(m_openHelpMode,
|
||||||
Help::Constants::CONTEXT_HELP,
|
Help::Constants::CONTEXT_HELP,
|
||||||
context);
|
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);
|
Core::ActionContainer *advancedMenu = Core::ActionManager::actionContainer(Core::Constants::M_EDIT_ADVANCED);
|
||||||
QTC_CHECK(advancedMenu);
|
QTC_CHECK(advancedMenu);
|
||||||
@@ -206,9 +207,11 @@ void HelpWidget::updateWindowTitle()
|
|||||||
setWindowTitle(tr("Help - %1").arg(pageTitle));
|
setWindowTitle(tr("Help - %1").arg(pageTitle));
|
||||||
}
|
}
|
||||||
|
|
||||||
void HelpWidget::emitOpenHelpMode()
|
void HelpWidget::helpModeButtonClicked()
|
||||||
{
|
{
|
||||||
emit openHelpMode(m_viewer->source());
|
emit openHelpMode(m_viewer->source());
|
||||||
|
if (m_style == ExternalWindow)
|
||||||
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Internal
|
} // Internal
|
||||||
|
@@ -71,7 +71,7 @@ private slots:
|
|||||||
void updateBackMenu();
|
void updateBackMenu();
|
||||||
void updateForwardMenu();
|
void updateForwardMenu();
|
||||||
void updateWindowTitle();
|
void updateWindowTitle();
|
||||||
void emitOpenHelpMode();
|
void helpModeButtonClicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QMenu *m_backMenu;
|
QMenu *m_backMenu;
|
||||||
@@ -83,6 +83,7 @@ private:
|
|||||||
QAction *m_copy;
|
QAction *m_copy;
|
||||||
|
|
||||||
HelpViewer *m_viewer;
|
HelpViewer *m_viewer;
|
||||||
|
WidgetStyle m_style;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Internal
|
} // Internal
|
||||||
|
@@ -76,13 +76,18 @@ isEmpty(IDE_PACKAGE_MODE) {
|
|||||||
updateinfo
|
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) {
|
minQtVersion(5, 2, 0) {
|
||||||
SUBDIRS += \
|
SUBDIRS += \
|
||||||
qmldesigner \
|
|
||||||
qmlprofiler \
|
qmlprofiler \
|
||||||
welcome
|
welcome
|
||||||
} else {
|
} else {
|
||||||
warning("QmlDesigner plugin has been disabled.")
|
|
||||||
warning("QmlProfiler plugin has been disabled.")
|
warning("QmlProfiler plugin has been disabled.")
|
||||||
warning("Welcome plugin has been disabled.")
|
warning("Welcome plugin has been disabled.")
|
||||||
warning("These plugins need at least Qt 5.2.")
|
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,
|
VariableManager::registerFileVariables(Constants::VAR_CURRENTPROJECT_PREFIX,
|
||||||
tr("Current project's main file"),
|
tr("Current project's main file"),
|
||||||
[&]() -> QString {
|
[this]() -> QString {
|
||||||
QString projectFilePath;
|
QString projectFilePath;
|
||||||
if (Project *project = ProjectExplorerPlugin::currentProject())
|
if (Project *project = ProjectExplorerPlugin::currentProject())
|
||||||
if (IDocument *doc = project->document())
|
if (IDocument *doc = project->document())
|
||||||
|
@@ -245,6 +245,9 @@ ProjectExplorer::Kit *QmakeProjectImporter::createTemporaryKit(QtSupport::BaseQt
|
|||||||
const Utils::FileName &parsedSpec)
|
const Utils::FileName &parsedSpec)
|
||||||
{
|
{
|
||||||
ProjectExplorer::Kit *k = new ProjectExplorer::Kit;
|
ProjectExplorer::Kit *k = new ProjectExplorer::Kit;
|
||||||
|
|
||||||
|
ProjectExplorer::KitGuard guard(k);
|
||||||
|
|
||||||
QtSupport::QtKitInformation::setQtVersion(k, version);
|
QtSupport::QtKitInformation::setQtVersion(k, version);
|
||||||
ProjectExplorer::ToolChainKitInformation::setToolChain(k, version->preferredToolChain(parsedSpec));
|
ProjectExplorer::ToolChainKitInformation::setToolChain(k, version->preferredToolChain(parsedSpec));
|
||||||
QmakeKitInformation::setMkspec(k, parsedSpec);
|
QmakeKitInformation::setMkspec(k, parsedSpec);
|
||||||
@@ -253,7 +256,16 @@ ProjectExplorer::Kit *QmakeProjectImporter::createTemporaryKit(QtSupport::BaseQt
|
|||||||
if (temporaryVersion)
|
if (temporaryVersion)
|
||||||
k->setValue(QT_IS_TEMPORARY, version->uniqueId());
|
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());
|
k->setDisplayName(version->displayName());
|
||||||
|
|
||||||
setIsUpdating(true);
|
setIsUpdating(true);
|
||||||
ProjectExplorer::KitManager::registerKit(k);
|
ProjectExplorer::KitManager::registerKit(k);
|
||||||
setIsUpdating(false);
|
setIsUpdating(false);
|
||||||
|
@@ -68,11 +68,6 @@ static const char currentPageSettingsKeyC[] = "WelcomeTab";
|
|||||||
namespace Welcome {
|
namespace Welcome {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
struct WelcomeModePrivate
|
|
||||||
{
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
class WelcomeMode : public Core::IMode
|
class WelcomeMode : public Core::IMode
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Reference in New Issue
Block a user