forked from qt-creator/qt-creator
Merge branch '1.0.0'
Conflicts: src/plugins/coreplugin/editormanager/stackededitorgroup.cpp src/plugins/debugger/gdbengine.cpp
This commit is contained in:
@@ -217,6 +217,8 @@ FunctionArgumentWidget::FunctionArgumentWidget()
|
|||||||
void FunctionArgumentWidget::showFunctionHint(Function *functionSymbol,
|
void FunctionArgumentWidget::showFunctionHint(Function *functionSymbol,
|
||||||
const LookupContext &context)
|
const LookupContext &context)
|
||||||
{
|
{
|
||||||
|
m_popupFrame->hide();
|
||||||
|
|
||||||
m_item = functionSymbol;
|
m_item = functionSymbol;
|
||||||
m_context = context;
|
m_context = context;
|
||||||
m_startpos = m_editor->position();
|
m_startpos = m_editor->position();
|
||||||
@@ -230,7 +232,7 @@ void FunctionArgumentWidget::showFunctionHint(Function *functionSymbol,
|
|||||||
m_popupFrame->move(pos);
|
m_popupFrame->move(pos);
|
||||||
m_popupFrame->show();
|
m_popupFrame->show();
|
||||||
|
|
||||||
QCoreApplication::instance()->installEventFilter(this);
|
qApp->installEventFilter(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FunctionArgumentWidget::update()
|
void FunctionArgumentWidget::update()
|
||||||
|
@@ -124,7 +124,15 @@ void GdbMacrosBuildStep::run(QFutureInterface<bool> & fi)
|
|||||||
qmake.start(m_qmake, QStringList()<<"-spec"<<mkspec<<configarguments<<"gdbmacros.pro");
|
qmake.start(m_qmake, QStringList()<<"-spec"<<mkspec<<configarguments<<"gdbmacros.pro");
|
||||||
qmake.waitForFinished();
|
qmake.waitForFinished();
|
||||||
|
|
||||||
qmake.start(qt4Project->qtVersion(m_buildConfiguration)->makeCommand(), makeArguments);
|
QString makeCmd = qt4Project->qtVersion(m_buildConfiguration)->makeCommand();
|
||||||
|
if (!value(m_buildConfiguration, "makeCmd").toString().isEmpty())
|
||||||
|
makeCmd = value(m_buildConfiguration, "makeCmd").toString();
|
||||||
|
if (!QFileInfo(makeCmd).isAbsolute()) {
|
||||||
|
// Try to detect command in environment
|
||||||
|
QString tmp = qt4Project->environment(m_buildConfiguration).searchInPath(makeCmd);
|
||||||
|
makeCmd = tmp;
|
||||||
|
}
|
||||||
|
qmake.start(makeCmd, makeArguments);
|
||||||
qmake.waitForFinished();
|
qmake.waitForFinished();
|
||||||
|
|
||||||
fi.reportResult(true);
|
fi.reportResult(true);
|
||||||
|
@@ -296,12 +296,13 @@ void QtVersionManager::updateSystemVersion()
|
|||||||
foreach (QtVersion *version, m_versions) {
|
foreach (QtVersion *version, m_versions) {
|
||||||
if (version->isSystemVersion()) {
|
if (version->isSystemVersion()) {
|
||||||
version->setPath(findSystemQt());
|
version->setPath(findSystemQt());
|
||||||
|
version->setName(tr("Auto-detected Qt"));
|
||||||
haveSystemVersion = true;
|
haveSystemVersion = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (haveSystemVersion)
|
if (haveSystemVersion)
|
||||||
return;
|
return;
|
||||||
QtVersion *version = new QtVersion(tr("System Qt"),
|
QtVersion *version = new QtVersion(tr("Auto-detected Qt"),
|
||||||
findSystemQt(),
|
findSystemQt(),
|
||||||
getUniqueId(),
|
getUniqueId(),
|
||||||
true);
|
true);
|
||||||
|
@@ -3463,12 +3463,12 @@ void BaseTextEditor::unCollapseAll()
|
|||||||
if (TextBlockUserData::canCollapse(block))
|
if (TextBlockUserData::canCollapse(block))
|
||||||
TextBlockUserData::doCollapse(block, makeVisible);
|
TextBlockUserData::doCollapse(block, makeVisible);
|
||||||
block = block.next();
|
block = block.next();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
d->moveCursorVisible();
|
d->moveCursorVisible();
|
||||||
documentLayout->requestUpdate();
|
documentLayout->requestUpdate();
|
||||||
documentLayout->emitDocumentSizeChanged();
|
documentLayout->emitDocumentSizeChanged();
|
||||||
|
centerCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseTextEditor::setTextCodec(QTextCodec *codec)
|
void BaseTextEditor::setTextCodec(QTextCodec *codec)
|
||||||
|
Reference in New Issue
Block a user