From 876bce493fc8bdb3ed6a5c02ab42c18aacafc9e6 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Wed, 4 Nov 2009 19:30:27 +0100 Subject: [PATCH 01/16] Fixed dereferencing NULL-pointer. Reviewed-by: dt --- src/plugins/debugger/debuggeragents.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/debugger/debuggeragents.cpp b/src/plugins/debugger/debuggeragents.cpp index 558617d1ae1..d29b5e506fc 100644 --- a/src/plugins/debugger/debuggeragents.cpp +++ b/src/plugins/debugger/debuggeragents.cpp @@ -199,8 +199,6 @@ DisassemblerViewAgent::~DisassemblerViewAgent() d->locationMark = 0; delete d; d = 0; - delete d->locationMark; - d->locationMark = 0; } void DisassemblerViewAgent::cleanup() From 83016e47feeed3eb3e40470626ffb2ddf2deab9d Mon Sep 17 00:00:00 2001 From: dt Date: Wed, 4 Nov 2009 18:50:37 +0100 Subject: [PATCH 02/16] Fix leaking PropertiesPanels --- src/plugins/projectexplorer/projectwindow.cpp | 6 ++++++ src/plugins/projectexplorer/projectwindow.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp index 125c6c21933..6a6708506c8 100644 --- a/src/plugins/projectexplorer/projectwindow.cpp +++ b/src/plugins/projectexplorer/projectwindow.cpp @@ -737,6 +737,8 @@ ProjectWindow::ProjectWindow(QWidget *parent) ProjectWindow::~ProjectWindow() { + qDeleteAll(m_panels); + m_panels.clear(); } void ProjectWindow::projectAdded() @@ -775,6 +777,9 @@ void ProjectWindow::showProperties(Project *project) // Remove the tabs from the tab widget first m_panelsWidget->clear(); + qDeleteAll(m_panels); + m_panels.clear(); + m_panelsWidget->addWidget(tr("Active Build and Run Configurations"), m_activeConfigurationWidget); m_panelsWidget->addWidget(m_spacerBetween); m_panelsWidget->addWidget(m_projectChooser); @@ -788,6 +793,7 @@ void ProjectWindow::showProperties(Project *project) if (debug) qDebug() << "ProjectWindow - setting up project properties tab " << panel->name(); m_panelsWidget->addWidget(panel->name(), panel->widget()); + m_panels.push_back(panel); } } } diff --git a/src/plugins/projectexplorer/projectwindow.h b/src/plugins/projectexplorer/projectwindow.h index 2ad04af4cbf..c183a92805f 100644 --- a/src/plugins/projectexplorer/projectwindow.h +++ b/src/plugins/projectexplorer/projectwindow.h @@ -191,6 +191,7 @@ private: QWidget *m_projectChooser; QLabel *m_noprojectLabel; PanelsWidget *m_panelsWidget; + QList m_panels; }; From a19f6e69eb279d43156ae0c2faa0a3794b1b091a Mon Sep 17 00:00:00 2001 From: dt Date: Wed, 4 Nov 2009 18:59:31 +0100 Subject: [PATCH 03/16] Fix memory leaking a context per output window --- src/plugins/projectexplorer/outputwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/projectexplorer/outputwindow.cpp b/src/plugins/projectexplorer/outputwindow.cpp index d2f7ec7ac27..45bdbad7431 100644 --- a/src/plugins/projectexplorer/outputwindow.cpp +++ b/src/plugins/projectexplorer/outputwindow.cpp @@ -391,6 +391,7 @@ OutputWindow::OutputWindow(QWidget *parent) OutputWindow::~OutputWindow() { Core::ICore::instance()->removeContextObject(m_outputWindowContext); + delete m_outputWindowContext; } void OutputWindow::showEvent(QShowEvent *e) From b0019bbc64ca3a721c7d0e574112e2d7bd0a6e09 Mon Sep 17 00:00:00 2001 From: dt Date: Wed, 4 Nov 2009 19:26:35 +0100 Subject: [PATCH 04/16] Revert "revert the latest leak "fix"." That fix was correct. This reverts commit 239e0418caeb7f97c217a7867f45970e07366401. --- src/plugins/debugger/stackwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/debugger/stackwindow.cpp b/src/plugins/debugger/stackwindow.cpp index f92a6993fd3..afc5d257294 100644 --- a/src/plugins/debugger/stackwindow.cpp +++ b/src/plugins/debugger/stackwindow.cpp @@ -75,8 +75,7 @@ StackWindow::StackWindow(DebuggerManager *manager, QWidget *parent) StackWindow::~StackWindow() { - // FIXME: leak - //delete m_disassemblerAgent; + delete m_disassemblerAgent; } void StackWindow::showAddressColumn(bool on) From 30a796d4e8a121a1a9db8c2675271eb7c809383c Mon Sep 17 00:00:00 2001 From: dt Date: Wed, 4 Nov 2009 19:41:37 +0100 Subject: [PATCH 05/16] Fixes crashes --- src/plugins/projectexplorer/buildsettingspropertiespage.cpp | 2 +- src/plugins/projectexplorer/dependenciespanel.cpp | 2 +- src/plugins/projectexplorer/editorsettingspropertiespage.cpp | 2 +- src/plugins/projectexplorer/runsettingspropertiespage.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/projectexplorer/buildsettingspropertiespage.cpp b/src/plugins/projectexplorer/buildsettingspropertiespage.cpp index e319388f8bf..4daa8009c3a 100644 --- a/src/plugins/projectexplorer/buildsettingspropertiespage.cpp +++ b/src/plugins/projectexplorer/buildsettingspropertiespage.cpp @@ -73,7 +73,7 @@ BuildSettingsPanel::BuildSettingsPanel(Project *project) BuildSettingsPanel::~BuildSettingsPanel() { - delete m_widget; + } QString BuildSettingsPanel::name() const diff --git a/src/plugins/projectexplorer/dependenciespanel.cpp b/src/plugins/projectexplorer/dependenciespanel.cpp index 3d4fc5519ea..0c8ed3efa39 100644 --- a/src/plugins/projectexplorer/dependenciespanel.cpp +++ b/src/plugins/projectexplorer/dependenciespanel.cpp @@ -283,7 +283,7 @@ DependenciesPanel::DependenciesPanel(SessionManager *session, Project *project) DependenciesPanel::~DependenciesPanel() { - delete m_widget; + } QString DependenciesPanel::name() const diff --git a/src/plugins/projectexplorer/editorsettingspropertiespage.cpp b/src/plugins/projectexplorer/editorsettingspropertiespage.cpp index 82b185a4bab..e589ee0fd61 100644 --- a/src/plugins/projectexplorer/editorsettingspropertiespage.cpp +++ b/src/plugins/projectexplorer/editorsettingspropertiespage.cpp @@ -55,7 +55,7 @@ EditorSettingsPanel::EditorSettingsPanel(Project *project) EditorSettingsPanel::~EditorSettingsPanel() { - delete m_widget; + } QString EditorSettingsPanel::name() const diff --git a/src/plugins/projectexplorer/runsettingspropertiespage.cpp b/src/plugins/projectexplorer/runsettingspropertiespage.cpp index 055341f6beb..c7fc27525c4 100644 --- a/src/plugins/projectexplorer/runsettingspropertiespage.cpp +++ b/src/plugins/projectexplorer/runsettingspropertiespage.cpp @@ -111,7 +111,7 @@ RunSettingsPanel::RunSettingsPanel(Project *project) RunSettingsPanel::~RunSettingsPanel() { - delete m_widget; + } QString RunSettingsPanel::name() const From b1af7f2fd5c48042cca7810c6883600a27376b4d Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 5 Nov 2009 10:05:46 +0100 Subject: [PATCH 06/16] Debugger autotests: Compile Windows/gcc 4.4.1, skip tst_gdb when not applicable. --- tests/auto/debugger/tst_dumpers.cpp | 7 +++++-- tests/auto/debugger/tst_gdb.cpp | 11 ++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 129e487a843..8e94aadc668 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -392,7 +392,7 @@ static void testDumper(QByteArray expected0, const void *data, QByteArray outert extraInt0, extraInt1, extraInt2, extraInt3); QString expected(expected0); char buf[100]; - sprintf(buf, pointerPrintFormat(), (uintptr_t)data); + sprintf(buf, pointerPrintFormat(), (quintptr)data); if ((!expected.startsWith('t') && !expected.startsWith('f')) || expected.startsWith("type")) expected = "tiname='$I',addr='$A'," + expected; @@ -422,7 +422,7 @@ static void testDumper(QByteArray expected0, const void *data, QByteArray outert QByteArray str(const void *p) { char buf[100]; - sprintf(buf, pointerPrintFormat(), (uintptr_t)p); + sprintf(buf, pointerPrintFormat(), (quintptr)p); return buf; } @@ -1552,6 +1552,7 @@ template void tst_Debugger::dumpQMap() { + qDebug() << "QMap"; // Case 1: Simple type -> simple type. QMap map1; @@ -1567,6 +1568,7 @@ void tst_Debugger::dumpQMap() dumpQMapHelper(map1); // Case 2: Simple type -> composite type. + qDebug() << "QMap"; QMap map2; // Case 2.1: Empty Map. @@ -1581,6 +1583,7 @@ void tst_Debugger::dumpQMap() dumpQMapHelper(map2); // Case 3: Composite type -> simple type. + qDebug() << "QMap"; QMap map3; // Case 3.1: Empty map. diff --git a/tests/auto/debugger/tst_gdb.cpp b/tests/auto/debugger/tst_gdb.cpp index b6a4e2ab748..79b66523761 100644 --- a/tests/auto/debugger/tst_gdb.cpp +++ b/tests/auto/debugger/tst_gdb.cpp @@ -3,11 +3,12 @@ bool checkUninitialized = false; //#define DO_DEBUG 1 +#include "gdb/gdbmi.h" + #include #include #include - /* #include #include @@ -23,8 +24,9 @@ bool checkUninitialized = false; #include -#include "gdb/gdbmi.h" - +#ifdef Q_OS_WIN +# include +#endif #undef NS #ifdef QT_NAMESPACE @@ -593,6 +595,9 @@ tst_Gdb::tst_Gdb() void tst_Gdb::initTestCase() { +#ifndef Q_CC_GNU + QSKIP("gdb test not applicable for compiler", SkipAll); +#endif //qDebug() << "\nTHREAD RUN" << getpid() << gettid(); QProcess *gdbProc = new QProcess; QStringList args; From 8d810bd1d2299d4972cd258e39242adc25e0559d Mon Sep 17 00:00:00 2001 From: ck Date: Wed, 28 Oct 2009 09:23:57 +0100 Subject: [PATCH 07/16] Debugger: Fix dumper tests for 64-bit Linux. Resolved padding issue for QMapNode. Reviewed-by: Friedemann Kleint --- tests/auto/debugger/tst_dumpers.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 8e94aadc668..2cb677968c5 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -1530,8 +1530,10 @@ template QByteArray keyTypeStr = typeToString(); QByteArray valTypeStr = typeToString(); #if QT_VERSION >= 0x040500 - expected.append("addr='"). - append(ptrToBa(reinterpret_cast(&(*it)) + sizeof(V))). + QMapNode *node = 0; + size_t backwardOffset = size_t(&node->backward) - valOff; + char *addr = reinterpret_cast(&(*it)) + backwardOffset; + expected.append("addr='").append(ptrToBa(addr)). append("',type='"NS"QMapNode<").append(keyTypeStr).append(","). append(valTypeStr).append(MAP_NODE_TYPE_END).append("'"); #else From eaa2c10a25a718ab13280db42b7a9d935a05749f Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Thu, 5 Nov 2009 12:34:02 +0100 Subject: [PATCH 08/16] Introduced CppTools::CppModelManagerInterface::updateModifiedFiles(). updateModifiedFiles ckecks the timestamp and reparses all the modified files in the current snapshot. --- src/libs/cplusplus/CppDocument.cpp | 12 ++++++++++ src/libs/cplusplus/CppDocument.h | 5 ++++ src/plugins/cpptools/cppmodelmanager.cpp | 24 +++++++++++++++++++ .../cpptools/cppmodelmanagerinterface.h | 8 ++++--- 4 files changed, 46 insertions(+), 3 deletions(-) diff --git a/src/libs/cplusplus/CppDocument.cpp b/src/libs/cplusplus/CppDocument.cpp index 3f1b1aff944..b05525b8547 100644 --- a/src/libs/cplusplus/CppDocument.cpp +++ b/src/libs/cplusplus/CppDocument.cpp @@ -147,6 +147,16 @@ void Document::setRevision(unsigned revision) _revision = revision; } +QDateTime Document::lastModified() const +{ + return _lastModified; +} + +void Document::setLastModified(const QDateTime &lastModified) +{ + _lastModified = lastModified; +} + QString Document::fileName() const { return _fileName; @@ -447,6 +457,8 @@ Document::Ptr Snapshot::documentFromSource(const QByteArray &preprocessedCode, Document::Ptr newDoc = Document::create(fileName); if (Document::Ptr thisDocument = value(fileName)) { + newDoc->_revision = thisDocument->_revision; + newDoc->_lastModified = thisDocument->_lastModified; newDoc->_includes = thisDocument->_includes; newDoc->_definedMacros = thisDocument->_definedMacros; newDoc->_macroUses = thisDocument->_macroUses; diff --git a/src/libs/cplusplus/CppDocument.h b/src/libs/cplusplus/CppDocument.h index 6a9896a5317..596bee794b3 100644 --- a/src/libs/cplusplus/CppDocument.h +++ b/src/libs/cplusplus/CppDocument.h @@ -40,6 +40,7 @@ #include #include #include +#include namespace CPlusPlus { @@ -63,6 +64,9 @@ public: unsigned revision() const; void setRevision(unsigned revision); + QDateTime lastModified() const; + void setLastModified(const QDateTime &lastModified); + QString fileName() const; QStringList includedFiles() const; @@ -310,6 +314,7 @@ private: QList _macroUses; QList _undefinedMacroUses; QByteArray _source; + QDateTime _lastModified; unsigned _revision; friend class Snapshot; diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index 75f8f743b38..5adc395870e 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -562,6 +562,10 @@ void CppPreprocessor::sourceNeeded(QString &fileName, IncludeType type, doc = Document::create(fileName); doc->setRevision(m_revision); + QFileInfo info(fileName); + if (info.exists()) + doc->setLastModified(info.lastModified()); + Document::Ptr previousDoc = switchDocument(doc); const QByteArray preprocessedCode = preprocess(fileName, contents); @@ -588,6 +592,26 @@ Document::Ptr CppPreprocessor::switchDocument(Document::Ptr doc) } + +void CppTools::CppModelManagerInterface::updateModifiedSourceFiles() +{ + const Snapshot snapshot = this->snapshot(); + QStringList sourceFiles; + + foreach (const Document::Ptr doc, snapshot) { + const QDateTime lastModified = doc->lastModified(); + + if (! lastModified.isNull()) { + QFileInfo fileInfo(doc->fileName()); + + if (fileInfo.exists() && fileInfo.lastModified() != lastModified) + sourceFiles.append(doc->fileName()); + } + } + + updateSourceFiles(sourceFiles); +} + CppTools::CppModelManagerInterface *CppTools::CppModelManagerInterface::instance() { ExtensionSystem::PluginManager *pluginManager = ExtensionSystem::PluginManager::instance(); diff --git a/src/plugins/cpptools/cppmodelmanagerinterface.h b/src/plugins/cpptools/cppmodelmanagerinterface.h index 9c6f0fb4432..1976df75eab 100644 --- a/src/plugins/cpptools/cppmodelmanagerinterface.h +++ b/src/plugins/cpptools/cppmodelmanagerinterface.h @@ -83,9 +83,6 @@ public: static CppModelManagerInterface *instance(); - virtual void GC() = 0; - virtual void updateSourceFiles(const QStringList &sourceFiles) = 0; - virtual QMap workingCopy() const = 0; virtual CPlusPlus::Snapshot snapshot() const = 0; @@ -104,6 +101,11 @@ public: virtual void renameUsages(CPlusPlus::Symbol *symbol) = 0; virtual void findUsages(CPlusPlus::Symbol *symbol) = 0; + +public Q_SLOTS: + void updateModifiedSourceFiles(); + virtual void updateSourceFiles(const QStringList &sourceFiles) = 0; + virtual void GC() = 0; }; class CPPTOOLS_EXPORT AbstractEditorSupport From 2dfa6e948e86888a76e35e10e7f863adf6ba52e0 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 5 Nov 2009 14:05:21 +0100 Subject: [PATCH 09/16] Correct case for translations of "MinGW" Reviewed-by: Oswald Buddenhagen --- share/qtcreator/translations/qtcreator_de.ts | 4 ++-- share/qtcreator/translations/qtcreator_es.ts | 4 ++-- share/qtcreator/translations/qtcreator_fr.ts | 2 +- share/qtcreator/translations/qtcreator_it.ts | 4 ++-- share/qtcreator/translations/qtcreator_ja.ts | 4 ++-- share/qtcreator/translations/qtcreator_pl.ts | 2 +- share/qtcreator/translations/qtcreator_ru.ts | 4 ++-- share/qtcreator/translations/qtcreator_sl.ts | 2 +- src/plugins/projectexplorer/toolchain.cpp | 2 +- src/plugins/qt4projectmanager/qtversionmanager.ui | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index caa3800c81a..a5241007a0b 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -11926,8 +11926,8 @@ unter Versionsverwaltung (%2) gestellt werden? - MinGw Directory: - MinGw-Verzeichnis: + MinGW Directory: + MinGW-Verzeichnis: diff --git a/share/qtcreator/translations/qtcreator_es.ts b/share/qtcreator/translations/qtcreator_es.ts index d8b32436513..06a78c52d7c 100644 --- a/share/qtcreator/translations/qtcreator_es.ts +++ b/share/qtcreator/translations/qtcreator_es.ts @@ -11067,8 +11067,8 @@ al control de versiones (%2)? - MinGw Directory: - Directorio de MinGw: + MinGW Directory: + Directorio de MinGW: diff --git a/share/qtcreator/translations/qtcreator_fr.ts b/share/qtcreator/translations/qtcreator_fr.ts index 60d3782051b..9144b67c1e4 100644 --- a/share/qtcreator/translations/qtcreator_fr.ts +++ b/share/qtcreator/translations/qtcreator_fr.ts @@ -10356,7 +10356,7 @@ to version control (%2)? - MinGw Directory: + MinGW Directory: diff --git a/share/qtcreator/translations/qtcreator_it.ts b/share/qtcreator/translations/qtcreator_it.ts index 9448a8bbabf..6e9d0781212 100644 --- a/share/qtcreator/translations/qtcreator_it.ts +++ b/share/qtcreator/translations/qtcreator_it.ts @@ -11037,8 +11037,8 @@ al VCS (%2)? - MinGw Directory: - Cartella MinGw: + MinGW Directory: + Cartella MinGW: diff --git a/share/qtcreator/translations/qtcreator_ja.ts b/share/qtcreator/translations/qtcreator_ja.ts index 504eecda754..8500b11a9dd 100644 --- a/share/qtcreator/translations/qtcreator_ja.ts +++ b/share/qtcreator/translations/qtcreator_ja.ts @@ -11041,8 +11041,8 @@ to version control (%2)? - MinGw Directory: - MinGw ディレクトリ: + MinGW Directory: + MinGW ディレクトリ: diff --git a/share/qtcreator/translations/qtcreator_pl.ts b/share/qtcreator/translations/qtcreator_pl.ts index 327192d7a8d..f45b49cf79d 100644 --- a/share/qtcreator/translations/qtcreator_pl.ts +++ b/share/qtcreator/translations/qtcreator_pl.ts @@ -2803,7 +2803,7 @@ p, li { white-space: pre-wrap; } - MinGw Directory: + MinGW Directory: Katalog MinGW: diff --git a/share/qtcreator/translations/qtcreator_ru.ts b/share/qtcreator/translations/qtcreator_ru.ts index 4f9df2aac00..f90641eda27 100644 --- a/share/qtcreator/translations/qtcreator_ru.ts +++ b/share/qtcreator/translations/qtcreator_ru.ts @@ -12389,8 +12389,8 @@ to version control (%2)? - MinGw Directory: - Каталог MinGw: + MinGW Directory: + Каталог MinGW: diff --git a/share/qtcreator/translations/qtcreator_sl.ts b/share/qtcreator/translations/qtcreator_sl.ts index 46217312b61..196b3d46411 100644 --- a/share/qtcreator/translations/qtcreator_sl.ts +++ b/share/qtcreator/translations/qtcreator_sl.ts @@ -10770,7 +10770,7 @@ v sistem za nadzor različic (%2)? - MinGw Directory: + MinGW Directory: Mapa z MinGW: diff --git a/src/plugins/projectexplorer/toolchain.cpp b/src/plugins/projectexplorer/toolchain.cpp index 7626445a8de..6c3236d28ff 100644 --- a/src/plugins/projectexplorer/toolchain.cpp +++ b/src/plugins/projectexplorer/toolchain.cpp @@ -114,7 +114,7 @@ QString ToolChain::toolChainName(ToolChainType tc) case LinuxICC: return QCoreApplication::translate("ToolChain", "Intel C++ Compiler (Linux)"); case MinGW: - return QCoreApplication::translate("ToolChain", "MinGW"); + return QString::fromLatin1("MinGW"); case MSVC: return QCoreApplication::translate("ToolChain", "Microsoft Visual C++"); case WINCE: diff --git a/src/plugins/qt4projectmanager/qtversionmanager.ui b/src/plugins/qt4projectmanager/qtversionmanager.ui index 898125fa11a..4c5f6acf25d 100644 --- a/src/plugins/qt4projectmanager/qtversionmanager.ui +++ b/src/plugins/qt4projectmanager/qtversionmanager.ui @@ -179,7 +179,7 @@ p, li { white-space: pre-wrap; } - MinGw Directory: + MinGW Directory: From c9f3b29807864bdca2c977e52e0efa86290a17f5 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Mon, 2 Nov 2009 18:27:39 +0100 Subject: [PATCH 10/16] Known issues: installer does not prepare qtcreator.ini for every user Reviewed-By: con --- doc/qtcreator.qdoc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/qtcreator.qdoc b/doc/qtcreator.qdoc index c9ad3529e80..624a9e5d339 100644 --- a/doc/qtcreator.qdoc +++ b/doc/qtcreator.qdoc @@ -1974,7 +1974,15 @@ \o Setting breakpoints in code that is compiled into the binary more than once does not work. - \endlist + \o On Linux and Windows, Installing Qt with one user account and + then using it with another requires other users to manually set + the Qt version. On Windows, setting the MinGW location is + required as well. The same applies to the location of GDB for Symbian. + A workaround is to copy %APPDATA%/Nokia/qtcreator.ini (Windows) or + $HOME/.config/Nokia/QtCreator.ini (Linux) from the directory + of the user who installed Creator to the other user. + This issues does not exist on Mac OS X. + \endlist \section1 Known Issues of Version 1.2.0 and 1.2.1 From 4cb5953e65f1b375c800f6b01bf2082e6c8f4515 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Thu, 5 Nov 2009 15:08:29 +0100 Subject: [PATCH 11/16] Patch multimedia lib, remove version qualifier from qtcore on linux --- src/tools/qpatch/files-to-patch-linux | 5 ++++- src/tools/qpatch/files-to-patch-windows | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tools/qpatch/files-to-patch-linux b/src/tools/qpatch/files-to-patch-linux index 0efa3be226d..2cf70c97291 100644 --- a/src/tools/qpatch/files-to-patch-linux +++ b/src/tools/qpatch/files-to-patch-linux @@ -1,5 +1,5 @@ bin/qmake -lib/libQtCore.so.4.5.2 +lib/libQtCore.so %% lib/libQtCore.la lib/libQt3Support.la @@ -7,6 +7,7 @@ lib/libQtCLucene.la lib/libQtDBus.la lib/libQtGui.la lib/libQtHelp.la +lib/libQtMultimedia.la lib/libQtNetwork.la lib/libQtOpenGL.la lib/libQtScript.la @@ -27,6 +28,7 @@ lib/libQtDesignerComponents.prl lib/libQtDesigner.prl lib/libQtGui.prl lib/libQtHelp.prl +lib/libQtMultimedia.prl lib/libQtNetwork.prl lib/libQtOpenGL.prl lib/libQtScript.prl @@ -47,6 +49,7 @@ lib/pkgconfig/QtDesignerComponents.pc lib/pkgconfig/QtDesigner.pc lib/pkgconfig/QtGui.pc lib/pkgconfig/QtHelp.pc +lib/pkgconfig/QtMultimedia.pc lib/pkgconfig/QtNetwork.pc lib/pkgconfig/QtOpenGL.pc lib/pkgconfig/QtScript.pc diff --git a/src/tools/qpatch/files-to-patch-windows b/src/tools/qpatch/files-to-patch-windows index c62825fd2ae..38545a7defc 100644 --- a/src/tools/qpatch/files-to-patch-windows +++ b/src/tools/qpatch/files-to-patch-windows @@ -2,6 +2,7 @@ bin/Qt3Supportd4.dll bin/QtCored4.dll bin/QtGuid4.dll bin/QtHelpd4.dll +bin/QtMultimediad4.dll bin/QtNetworkd4.dll bin/QtOpenGLd4.dll bin/QtScriptd4.dll From c489b8db7d34ac1a640b0ba49df397bad980e4ba Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 5 Nov 2009 15:43:46 +0100 Subject: [PATCH 12/16] i18n: Complete German translation and correct tips on Welcome Page. Reviewed-by: Robert Loehning --- share/qtcreator/translations/qtcreator_de.ts | 248 +++++++++++------- .../gettingstartedwelcomepagewidget.cpp | 3 - 2 files changed, 156 insertions(+), 95 deletions(-) diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index a5241007a0b..0c3ca291a07 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -350,7 +350,7 @@ CMakeProjectManager::Internal::CMakeBuildSettingsWidget - + &Change &Ändern @@ -358,7 +358,7 @@ CMakeProjectManager::Internal::CMakeOpenProjectWizard - + CMake Wizard CMake Assistent @@ -1052,7 +1052,7 @@ CodePaster::CodepasterPlugin - + &Code Pasting &Code Pasting @@ -2583,7 +2583,7 @@ Sollen sie überschrieben werden? CppTools::Internal::CppFindReferences - + Searching... Suche... @@ -2599,7 +2599,7 @@ Sollen sie überschrieben werden? CppTools::Internal::CppModelManager - + Scanning Suche @@ -2633,7 +2633,7 @@ Sollen sie überschrieben werden? CppTools::Internal::FunctionArgumentWidget - + %1 of %2 %1 von %2 @@ -2680,18 +2680,18 @@ Sollen sie überschrieben werden? Debugger::DebuggerManager - + Continue Fortsetzen - + Interrupt Anhalten - + Reset Debugger Debugger zurücksetzen @@ -2767,7 +2767,7 @@ Sollen sie überschrieben werden? Diese Anwendung erfordert den Debugger '%1', der gegenwärtig deaktiviert ist. - + Starting debugger for tool chain '%1'... Starte Debugger für Toolchain '%1'... @@ -2822,7 +2822,7 @@ Sollen sie überschrieben werden? Ausgabe-Hilfsbibliothek nicht gefunden - + Stop Debugger Debugger anhalten @@ -3764,7 +3764,7 @@ Sollen sie überschrieben werden? Debugger::Internal::GdbEngine - + The Gdb process failed to start. Either the invoked program '%1' is missing, or you may have insufficient permissions to invoke the program. Der Start des Gdb-Prozesses schlug fehl. Entweder fehlt die ausführbare Datei '%1' oder die Berechtigungen sind nicht ausreichend. @@ -3824,17 +3824,17 @@ Sollen sie überschrieben werden? Thread %1 ausgewählt. - + Stopping temporarily. Temporär Anhalten. - + Process failed to start. Der Prozess konnte nicht gestartet werden. - + <p>The inferior stopped because it received a signal from the Operating System.<p><table><tr><td>Signal name : </td><td>%1</td></tr><tr><td>Signal meaning : </td><td>%2</td></tr></table> <p>Der Prozess wurde nach Erhalt eines Signals vom Betriebssystem angehalten.<p><table><tr><td>Name des Signals : </td><td>%1</td></tr><tr><td>Bedeutung : </td><td>%2</td></tr></table> @@ -3850,17 +3850,17 @@ Sollen sie überschrieben werden? Signal erhalten - + Reading %1... Lese %1... - + Jumped. Stopped. Sprung ausgeführt/ Angehalten. - + Loading %1... Lade %1... @@ -3889,13 +3889,13 @@ Das Debuggen wird wahrscheinlich nicht richtig funktionieren. Es wird empfohlen, gdb 6.7 oder später zu benutzen. - + Processing queued commands. Kommando-Warteschlange wird abgearbeitet. - - + + Stopped. Angehalten. @@ -3912,17 +3912,17 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. - + The debugging helper library was not found at %1. Die Ausgabe-Hilfsbibliothek konnte nicht unter %1 gefunden werden. - + Unable to start gdb '%1': %2 Der gdb-Debugger '%1' kann nicht ausgeführt werden: %2 - + Cannot find debugger initialization script Das Initalisierungsskript konnte nicht gefunden werden @@ -3932,7 +3932,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Auf die in den Debugger-Einstellungen angegebene Skriptdatei '%1' kann nicht zugegriffen werden. Wenn kein Skript benötigt wird, können Sie die Einstellung rücksetzen, um diese Warnung zu umgehen. - + Unable to run '%1': %2 '%1' kann nicht ausgeführt werden: %2 @@ -3949,7 +3949,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Daten der Stack-Anzeige werden empfangen... - + Retrieving data for watch view (%n requests pending)... Daten der für die Anzeige der lokalen Variablen werden empfangen (noch eine austehende Anfrage) ... @@ -3957,7 +3957,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. - + <%n items> In string list @@ -3966,7 +3966,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. - + Finished retrieving data. Alle Daten erhalten. @@ -3984,7 +3984,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. - + An unknown error in the Gdb process occurred. Im Gdb-Prozess trat ein unbekannter Fehler auf. @@ -3994,23 +3994,25 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Läuft... - + Stop requested... Stop angefordert... - - + + + Executable failed Fehler bei Ausführung - + + Executable failed: %1 Fehler bei Ausführung: %1 - + Program exited with exit code %1. Das Programm wurde beendet, Rückgabewert %1. @@ -4025,7 +4027,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Das Programm wurde normal beendet. - + Continuing after temporary stop... Setze nach temporärem Anhalten fort... @@ -4070,12 +4072,12 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Ausführung bis Funktion %1 angefordert... - + Jumping out of bogus frame... Verlasse ungültigen Stack-Frame... - + Custom dumper setup: %1 Ausgabe-Hilfsbibliothek-Initialisierung: %1 @@ -4090,7 +4092,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. <überlagert> - + <n/a> <k.a.> @@ -4106,14 +4108,14 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. <keine Angabe> - + Disassembler failed: %1 Fehler beim Disassemblieren: %1 - + Gdb I/O Error Gdb Ein/Ausgabefehler @@ -4158,12 +4160,12 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Der Start des zu debuggenden Prozesses schlug fehl - + Inferior shutdown failed Das Beenden des zu debuggenden Prozesses schlug fehl - + Adapter crashed Der Adapter ist abgestürzt @@ -4321,7 +4323,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Debugger::Internal::PlainGdbAdapter - + Cannot set up communication with child process: %1 Die Kommunikation mit dem untergeordneten Prozesss konnte nicht hergestellt werden: %1 @@ -4402,7 +4404,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Debugger::Internal::RemoteGdbAdapter - + The upload process failed to start. Shell missing? Das Hochladen schlug fehl. Eine mögliche Ursache könnte ein fehlendes Shell-Programm sein. @@ -4504,7 +4506,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Debugger::Internal::StackHandler - + ... @@ -4583,7 +4585,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Stack - + Copy contents to clipboard Inhalt in Zwischenablage kopieren @@ -4713,7 +4715,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Der Prozess wurde gestartet, PID: 0x%1, Thread-Id: 0x%2, Code-Segment: 0x%3, Datensegment: 0x%4. - + Connecting to TRK server adapter failed: Die Verbindung zum TRK-Server-Adapter schlug fehl: @@ -4766,7 +4768,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Debugger::Internal::WatchData - + <not in scope> <nicht im Bereich> @@ -4805,12 +4807,12 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Interner Name - + <Edit> <Editieren> - + Root Wurzelelement @@ -4848,7 +4850,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Debugger::Internal::WatchModel - + decimal dezimal @@ -5110,7 +5112,7 @@ Es wird empfohlen, gdb 6.7 oder später zu benutzen. Designer::Internal::FormClassWizardPage - + %1 - Error %1 - Fehler @@ -5653,7 +5655,7 @@ Grund: %3 FakeVim::Internal::FakeVimHandler - + Not implemented in FakeVim In FakeVim nicht implementiert @@ -6075,7 +6077,7 @@ Grund: %3 Suchergebnisse - + No matches found! Es wurden keine Treffer gefunden! @@ -6529,6 +6531,7 @@ Grund: %3 Note that the git plugin for QtCreator is not able to interact with the server so far. Thus, manual ssh-identification etc. will not work. + Not used. @@ -9206,6 +9209,7 @@ Fehler: %2 ProjectExplorer::Internal::ActiveConfigurationWidget + Active run configuration Aktive Ausführungskonfiguration @@ -9776,7 +9780,7 @@ Fehler: %2 ProjectExplorer::Internal::ProjectWelcomePage - + Develop Entwicklung @@ -9833,7 +9837,7 @@ Fehler: %2 - + Active Build and Run Configurations Aktive Build- und Ausführungskonfigurationen @@ -9913,7 +9917,7 @@ Fehler: %2 Entfernen - + <a href="#">Make %1 active.</a> <a href="#">Setze %1 aktiv.</a> @@ -9995,12 +9999,12 @@ Fehler: %2 ProjectExplorer::Internal::WinGuiProcess - + The process could not be started! Der Prozess konnte nicht gestartet werden! - + Cannot retrieve debugging output! Es konnte keine Debugausgabe erhalten werden! @@ -10044,7 +10048,7 @@ Fehler: %2 ProjectExplorer::ProjectExplorerPlugin - + Projects Projekte @@ -10277,7 +10281,7 @@ Fehler: %2 Bereinigen unter Ausschluss der Abhängigkeiten - + New File Title of dialog Neue Datei @@ -10336,7 +10340,7 @@ unter Versionsverwaltung (%2) gestellt werden? Windows Explorer konnte nicht gestartet werden, da die Datei explorer.exe nicht im Pfad gefunden werden konnte. - + Launching a file explorer failed Das Starten des Datei-Browsers schlug fehl @@ -10399,12 +10403,12 @@ unter Versionsverwaltung (%2) gestellt werden? Die aktive Build-Konfiguration erstellt ein Ziel, das von der aktiven Ausführungskonfiguration nicht verwendet werden kann. - + Choose build configuration: Build-Konfiguration wählen: - + No valid build configuration found. Es konnte keine gültige Build-Konfiguration gefunden werden. @@ -10716,19 +10720,19 @@ unter Versionsverwaltung (%2) gestellt werden? QmlProjectManager::Internal::QmlRunConfiguration - + QML Viewer QML-Betrachter - + <Current File> <Aktuelle Datei> - + QML Viewer arguments: Kommandozeilenargumente für QML-Betrachter: @@ -11220,23 +11224,23 @@ unter Versionsverwaltung (%2) gestellt werden? Alt Shortcut key - Alt-Taste + Alt Ctrl Shortcut key - Ctrl + Strg You can switch between Qt Creator's modes using <tt>Ctrl+number</tt>:<ul><li>1 - Welcome</li><li>2 - Edit</li><li>3 - Debug</li><li>4 - Projects</li><li>5 - Help</li><li></li><li>6 - Output</li></ul> - Sie können zwischen den Modi von Qt Crator umschalten, indem Sie <tt>Ctrl+Nummber</tt> verwenden: <ul><li>1 - Willkommen</li><li>2 - Editieren</li><li>3 - Debuggen</li><li>4 - Projekte</li><li>5 - Hilfe</li><li></li><li>6 - Ausgabe</li></ul> + Sie können mit <tt>Strg+Nummer</tt> zwischen den Modi von Qt Creator umschalten: <ul><li>1 - Willkommen</li><li>2 - Editieren</li><li>3 - Debuggen</li><li>4 - Projekte</li><li>5 - Hilfe</li><li></li><li>6 - Ausgabe</li></ul> You can show and hide the side bar using <tt>%1+0<tt>. - Sie können die Seitenleiste mit <tt>%1+0<tt> anzeigen oder zuklappen. + Sie können die Seitenleiste mit <tt>%1+0</tt> anzeigen oder zuklappen. @@ -11246,12 +11250,12 @@ unter Versionsverwaltung (%2) gestellt werden? If you add <a href="qthelp://com.nokia.qtcreator/doc/creator-external-library-handling.html">external libraries</a>, Qt Creator will automatically offer syntax highlighting and code completion. - Wenn Sie eine <a href="qthelp://com.nokia.qtcreator/doc/creator-external-library-handling.html">externe Bibliothek</a>, hinzufügen, bietet Qt Creator automatisch Syntax-Hervorhebung und Code-Vervollständigung. + Wenn Sie eine <a href="qthelp://com.nokia.qtcreator/doc/creator-external-library-handling.html">externe Bibliothek</a> hinzufügen, bietet Qt Creator automatisch Syntax-Hervorhebung und Code-Vervollständigung. The code completion is CamelCase-aware. For example, to complete <tt>namespaceUri</tt> you can just type <tt>nU</tt> and hit <tt>Ctrl+Space</tt>. - Die Code-Vervollständigung versteht CamelCase. Sie können zum Beipiel statt <tt>namespaceUri</tt> einfach <tt>nU</tt> schreiben und danach <tt>Strg+Leertaste</tt> drucken. + Die Code-Vervollständigung versteht CamelCase. Sie können zum Beipiel statt <tt>namespaceUri</tt> einfach <tt>nU</tt> schreiben und danach <tt>Strg+Leertaste</tt> drücken. @@ -11271,12 +11275,12 @@ unter Versionsverwaltung (%2) gestellt werden? You can switch between the output pane by hitting <tt>%1+n</tt> where n is the number denoted on the buttons at the window bottom:<ul><li>1 - Build Issues</li><li>2 - Search Results</li><li>3 - Application Output</li><li>4 - Compile Output</li></ul> - Sie können ywischen den Ausgabepanelen umschalten, in dem Sie <tt>%1+n</tt> drücken, wobei n die Zahl ist, die auf den Schaltflächen am unteren Fensterrand befindet: <ul><li>1 - Build-Probleme</li><li>2 - Suchergebnisse</li><li>3 - Ausgabe der Anwendung</li><li>4 - Kompilierung</li></ul> + Sie können zwischen den Ausgabepanelen umschalten, in dem Sie <tt>%1+n</tt> drücken, wobei n die Zahl ist, die auf den Schaltflächen am unteren Fensterrand befindet: <ul><li>1 - Build-Probleme</li><li>2 - Suchergebnisse</li><li>3 - Ausgabe der Anwendung</li><li>4 - Kompilierung</li></ul> You can quickly search methods, classes, help and more using the <a href="qthelp://com.nokia.qtcreator/doc/creator-navigation.html">Locator bar</a> (<tt>%1+K</tt>). - Mit der <a href="qthelp://com.nokia.qtcreator/doc/creator-navigation.html">Locator bar</a> (<tt>%1+K</tt>) können Sie schnell nach Methoden, Klassen, Hilfe und anderem suchen. + Mit der <a href="qthelp://com.nokia.qtcreator/doc/creator-navigation.html">Locator-Leiste</a> (<tt>%1+K</tt>) können Sie schnell nach Methoden, Klassen, Hilfe und anderem suchen. @@ -11294,12 +11298,11 @@ unter Versionsverwaltung (%2) gestellt werden? Sie können ihre Encoding-Vorgabe für den Editor für jedes Projekt in <tt>Projekte -> Editoreinstellungen -> Encoding-Vorgabe</tt> einstellen. - You can modify the binary that is being executed when you press the <tt>Run</tt> button: Add a <tt>Custom Executable</tt> by clicking the <tt>+</tt> button in <tt>Projects -> Run Settings -> Run Configuration</tt> and then select the new target in the combo box. - Sie können die auszuführende Datei bestimmen die ausgeführt wird, wenn Sie auf die <tt>Ausführen</tt>-Schaltlfläche klicken: Fügen Sie dazu eine <tt>Benutzerdefinierte ausführbare Datei</tt> unter <tt>Projekte ->Ausführung -> Ausführungskonfiguration</tt> hinzu, indem Sie auf die <tt>+</tt>-Schaltfläche klicken und wählen Sie die neue Konfiguration aus der Auswahl. + Sie können die Datei bestimmen, die bei Klick auf die Schaltfläche <tt>Ausführen</tt> gestartet wird: Fügen Sie dazu eine <tt>Benutzerdefinierte ausführbare Datei</tt> unter <tt>Projekte ->Ausführung -> Ausführungskonfiguration</tt> hinzu, indem Sie auf die <tt>+</tt>-Schaltfläche klicken und die neue Konfiguration auswählen. - + You can use Qt Creator with a number of <a href="qthelp://com.nokia.qtcreator/doc/creator-version-control.html">revision control systems</a> such as Subversion, Perforce, CVS and Git. Sie können Qt Creator mit einer Reihe von <a href="qthelp://com.nokia.qtcreator/doc/creator-version-control.html">Revisionskontrollsystemen</a> wie Subversion, Perforce, CVS oder Git verwenden. @@ -11558,7 +11561,7 @@ unter Versionsverwaltung (%2) gestellt werden? Qt4ProjectManager::Internal::QMakeStepFactory - + QMake QMake @@ -12529,7 +12532,7 @@ Installiere Anwendung auf '%2'... Qt4ProjectManager::QMakeStep - + <font color="#ff0000"><b>No valid Qt version set. Set one in Preferences </b></font> @@ -12555,7 +12558,7 @@ Installiere Anwendung auf '%2'... Qt4ProjectManager::QMakeStepConfigWidget - + <b>QMake:</b> No Qt version set. QMake can not be run. <b>QMake:</b> Es ist keine Qt-Version gesetzt. QMake kann nicht ausgeführt werden. @@ -12651,7 +12654,7 @@ Installiere Anwendung auf '%2'... Qt aus PATH - + Name: Name: @@ -13911,7 +13914,7 @@ Um es abzurufen, tippen Sie das Kürzel im Locator, gefolgt von einem Leerzeich TextEditor::BaseFileFind - + %1 found %1 gefunden @@ -13942,7 +13945,7 @@ Um es abzurufen, tippen Sie das Kürzel im Locator, gefolgt von einem Leerzeich TextEditor::BaseTextEditor - + Print Document Dokument drucken @@ -13960,7 +13963,7 @@ Um es abzurufen, tippen Sie das Kürzel im Locator, gefolgt von einem Leerzeich TextEditor::BaseTextEditorEditable - + Line: %1, Col: %2 Zeile: %1, Spalte: %2 @@ -14819,12 +14822,11 @@ Die folgenden Encodings scheinen der Datei zu entsprechen: Intel C++-Compiler (Linux) - MinGW - MinGW + MinGW - + Microsoft Visual C++ Microsoft Visual C++ @@ -15057,7 +15059,7 @@ Die folgenden Encodings scheinen der Datei zu entsprechen: Utils::NewClassWidget - + Invalid base class name Der Name der Basisklasse ist ungültig @@ -15116,6 +15118,21 @@ Die folgenden Encodings scheinen der Datei zu entsprechen: Inherits QObject Erbt von Klasse QObject + + + Type information: + Typinformation: + + + + None + Keine + + + + Inherits QWidget + Erbt von Klasse QWidget + Utils::PathChooser @@ -15361,7 +15378,7 @@ Die folgenden Encodings scheinen der Datei zu entsprechen: Checkout begonnen... - + Failed. Fehlgeschlagen. @@ -15402,7 +15419,12 @@ Die folgenden Encodings scheinen der Datei zu entsprechen: VCSBase::ProcessCheckoutJob - + + Unable to start %1: %2 + %1 kann nicht gestartet werden: %2 + + + The process terminated with exit code %1. Der Prozess wurde beendet, Rückgabewert %1. @@ -15808,7 +15830,7 @@ Qt Centre Debugger::Internal::TermGdbAdapter - + Debugger Error Debugger-Fehler @@ -15992,4 +16014,46 @@ Qt Centre %1: Verbindung im Versuch %2 fehlgeschlagen: %3 (wird wiederholt)... + + trk::Session + + + CPU: v%1.%2%3%4 + CPU description of an S60 device %1 major verison, %2 minor version %3 real name of major verison, %4 real name of minor version + CPU: v%1.%2%3%4 + + + + App TRK: v%1.%2 TRK protocol: v%3.%4 + App TRK: v%1.%2 TRK-Protokoll: v%3.%4 + + + + %1, %2%3%4, %5 + s60description description of an S60 device %1 CPU description, %2 endianness %3 default type size (if any), %4 float size (if any) %5 TRK version + %1, %2%3%4, %5 + + + + big endian + big endian + + + + little endian + little endian + + + + , type size: %1 + will be inserted into s60description + , Typgröße: %1 + + + + , float size: %1 + will be inserted into s60description + , Gleitkomma-Größe: %1 + + diff --git a/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp b/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp index 0a843c874c4..ef04ec8c4d6 100644 --- a/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp +++ b/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.cpp @@ -332,9 +332,6 @@ QStringList GettingStartedWelcomePageWidget::tipsOfTheDay() tips.append(tr("Within a session, you can add " "dependencies between projects.")); tips.append(tr("You can set the preferred editor encoding for every project in Projects -> Editor Settings -> Default Encoding.")); - tips.append(tr("You can modify the binary that is being executed when you press the Run button: Add a Custom Executable " - "by clicking the + button in Projects -> Run Settings -> Run Configuration and then select the new " - "target in the combo box.")); tips.append(tr("You can use Qt Creator with a number of " "revision control systems such as Subversion, Perforce, CVS and Git.")); tips.append(tr("In the editor, F2 follows symbol definition, Shift+F2 toggles declaration and definition " From 61672e136f679be6e307284c05200c456de885ef Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Thu, 5 Nov 2009 15:45:37 +0100 Subject: [PATCH 13/16] Fixed a few focus issues we had in the search result window (in replace mode). Delayed the call to selectAll() --- src/plugins/find/searchresultwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/find/searchresultwindow.cpp b/src/plugins/find/searchresultwindow.cpp index 5bbf06af512..bcac543577d 100644 --- a/src/plugins/find/searchresultwindow.cpp +++ b/src/plugins/find/searchresultwindow.cpp @@ -108,7 +108,6 @@ SearchResultWindow::~SearchResultWindow() void SearchResultWindow::setTextToReplace(const QString &textToReplace) { m_replaceTextEdit->setText(textToReplace); - m_replaceTextEdit->selectAll(); } QString SearchResultWindow::textToReplace() const @@ -233,6 +232,7 @@ void SearchResultWindow::setFocus() || m_widget->focusWidget() == m_replaceTextEdit || m_focusReplaceEdit) { m_replaceTextEdit->setFocus(); + m_replaceTextEdit->selectAll(); } else { m_searchResultTreeView->setFocus(); } From e4e0cadb97424019ad7e2b660fe315b60283ad78 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Thu, 5 Nov 2009 16:19:59 +0100 Subject: [PATCH 14/16] a process scheduled for kill can exit by itself as well ... --- src/plugins/debugger/gdb/gdbengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index d548e5b7309..20ce97c9477 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1105,7 +1105,8 @@ void GdbEngine::handleStopResponse(const GdbMi &data) setState(InferiorStopping); } else { // The user triggered a stop, but meanwhile the app simply exited ... - QTC_ASSERT(state() == InferiorStopping, qDebug() << state()); + QTC_ASSERT(state() == InferiorStopping || state() == InferiorStopping_Kill, + qDebug() << state()); } setState(InferiorStopped); QString msg; From 4ab3446ce080ee27ac548c95fe2904d4380715c4 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 5 Nov 2009 16:40:27 +0100 Subject: [PATCH 15/16] Qt version tooltip: Display configuration correctly. Reviewed-by: dt --- src/plugins/qt4projectmanager/qtversionmanager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/qt4projectmanager/qtversionmanager.cpp b/src/plugins/qt4projectmanager/qtversionmanager.cpp index 538be5d2662..26c556db760 100644 --- a/src/plugins/qt4projectmanager/qtversionmanager.cpp +++ b/src/plugins/qt4projectmanager/qtversionmanager.cpp @@ -514,11 +514,10 @@ QString QtVersion::toHtml() const << "" << m_qmakeCommand << ""; updateVersionInfo(); if (m_defaultConfigIsDebug || m_defaultConfigIsDebugAndRelease) { - str << "" << QtVersionManager::tr("Default:") << ""; - if (m_defaultConfigIsDebug) - str << "debug"; + str << "" << QtVersionManager::tr("Default:") << "" + << (m_defaultConfigIsDebug ? "debug" : "release"); if (m_defaultConfigIsDebugAndRelease) - str << "default_and_release"; + str << " debug_and_release"; str << ""; } // default config. if (!qmakeCXX().isEmpty()) From 66a353067dede13587e91fc29d4931cd9b644605 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Thu, 5 Nov 2009 16:50:24 +0100 Subject: [PATCH 16/16] Don't show the warning message (about the dangerous world of code refactoring) if the user pressed the "Yes, I know I am doing" button. --- src/plugins/cppeditor/cppeditor.cpp | 35 +++++++++++++++++++++++++---- src/plugins/cppeditor/cppeditor.h | 3 +++ 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index dcec76f3673..53a471bae0a 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -81,6 +81,7 @@ #include #include #include +#include #include #include #include @@ -765,8 +766,32 @@ void CPPEditor::renameUsages() renameUsagesNow(); } +bool CPPEditor::showWarningMessage() const +{ + // Restore settings + QSettings *settings = Core::ICore::instance()->settings(); + settings->beginGroup(QLatin1String("CppEditor")); + settings->beginGroup(QLatin1String("Rename")); + const bool showWarningMessage = settings->value(QLatin1String("ShowWarningMessage"), true).toBool(); + settings->endGroup(); + settings->endGroup(); + return showWarningMessage; +} + +void CPPEditor::setShowWarningMessage(bool showWarningMessage) +{ + // Restore settings + QSettings *settings = Core::ICore::instance()->settings(); + settings->beginGroup(QLatin1String("CppEditor")); + settings->beginGroup(QLatin1String("Rename")); + settings->setValue(QLatin1String("ShowWarningMessage"), showWarningMessage); + settings->endGroup(); + settings->endGroup(); +} + void CPPEditor::hideRenameNotification() { + setShowWarningMessage(false); Core::EditorManager::instance()->hideEditorInfoBar(QLatin1String("CppEditor.Rename")); } @@ -774,10 +799,12 @@ void CPPEditor::renameUsagesNow() { if (Symbol *canonicalSymbol = markSymbols()) { if (canonicalSymbol->identifier() != 0) { - Core::EditorManager::instance()->showEditorInfoBar(QLatin1String("CppEditor.Rename"), - tr("This change cannot be undone."), - tr("Yes, I know what I am doing."), - this, SLOT(hideRenameNotification())); + if (showWarningMessage()) { + Core::EditorManager::instance()->showEditorInfoBar(QLatin1String("CppEditor.Rename"), + tr("This change cannot be undone."), + tr("Yes, I know what I am doing."), + this, SLOT(hideRenameNotification())); + } m_modelManager->renameUsages(canonicalSymbol); } diff --git a/src/plugins/cppeditor/cppeditor.h b/src/plugins/cppeditor/cppeditor.h index c0c323a93d9..9518e27a21e 100644 --- a/src/plugins/cppeditor/cppeditor.h +++ b/src/plugins/cppeditor/cppeditor.h @@ -235,6 +235,9 @@ private Q_SLOTS: void updateSemanticInfo(const SemanticInfo &semanticInfo); private: + bool showWarningMessage() const; + void setShowWarningMessage(bool showWarningMessage); + CPlusPlus::Symbol *markSymbols(); bool sortedMethodOverview() const; CPlusPlus::Symbol *findDefinition(CPlusPlus::Symbol *symbol);