diff --git a/share/qtcreator/styles/fakevim.xml b/share/qtcreator/styles/fakevim.xml index 609d5357c269a00a17ff0c88dce20c378160d06b..592507a2f5afdd3d18182f4a604e2c01e2251ecd 100644 --- a/share/qtcreator/styles/fakevim.xml +++ b/share/qtcreator/styles/fakevim.xml @@ -10,7 +10,7 @@ <style name="CurrentLineNumber" foreground="#aaaaaa" bold="true"/> <style name="DiffFile" foreground="#55ff55"/> <style name="DiffLocation" foreground="#ffff55"/> - <style name="DisabledCode" foreground="#777777"/> + <style name="DisabledCode" foreground="#777777" background="#222222"/> <style name="Doxygen.Comment" foreground="#55ffff"/> <style name="Doxygen.Tag" foreground="#00a0a0"/> <style name="Keyword" foreground="#ffff55"/> diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 0e6464dcf896146634f94b066d3be3ea71001f6e..aa21c9433a114cb5ddbfe98954bf4d6f2b6e21f1 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -1735,13 +1735,8 @@ Sollen sie überschrieben werden?</translation> </context> <context> <name>Core::Internal::EditorView</name> - <message id="===============EditorView===================="> - <location filename="../../../src/plugins/coreplugin/editormanager/editorview.cpp" line="-442"/> - <source>Go Back</source> - <translation>Vorheriges</translation> - </message> <message> - <location line="+0"/> + <location filename="../../../src/plugins/coreplugin/editormanager/editorview.cpp" line="-442"/> <source>Go Back</source> <translation>Vorheriges</translation> </message> diff --git a/share/qtcreator/translations/qtcreator_sl.ts b/share/qtcreator/translations/qtcreator_sl.ts index 3dbc9927beec04207badb7b338f758b3f8df7952..eb0471088b2fca249c41eb28e856c0faf9882f71 100644 --- a/share/qtcreator/translations/qtcreator_sl.ts +++ b/share/qtcreator/translations/qtcreator_sl.ts @@ -1437,7 +1437,7 @@ Ali jih želite nadomestiti?</translation> </context> <context> <name>Core::Internal::EditorView</name> - <message id="===============EditorView===================="> + <message> <location filename="../../../src/plugins/coreplugin/editormanager/editorview.cpp" line="-442"/> <source>Go Back</source> <translation>Pojdi nazaj</translation> diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp index 2341df2423de3fb684dc18f4ab97b61fd492180d..a5b511282fc25f894f99dc32aa630f80aa27d80b 100644 --- a/src/libs/cplusplus/pp-engine.cpp +++ b/src/libs/cplusplus/pp-engine.cpp @@ -746,6 +746,9 @@ bool Preprocessor::markGeneratedTokens(bool markGeneratedTokens, else out(*it); } + + if (! markGeneratedTokens && dot->newline()) + processNewline(/*force = */ true); } return previous; diff --git a/src/plugins/cpptools/searchsymbols.cpp b/src/plugins/cpptools/searchsymbols.cpp index 1e101cb4ef073dd32ddd94e94ca9bd29c39b38df..1a4d124144ec0e4eca636080f8c5abe5b0472c93 100644 --- a/src/plugins/cpptools/searchsymbols.cpp +++ b/src/plugins/cpptools/searchsymbols.cpp @@ -145,15 +145,14 @@ bool SearchSymbols::visit(Declaration *symbol) bool SearchSymbols::visit(Class *symbol) { - if (!(symbolsToSearchFor & Classes)) - return false; - QString name = symbolName(symbol); QString scopedName = scopedSymbolName(name); QString previousScope = switchScope(scopedName); - appendItem(separateScope ? name : scopedName, - separateScope ? previousScope : QString(), - ModelItemInfo::Class, symbol); + if (symbolsToSearchFor & Classes) { + appendItem(separateScope ? name : scopedName, + separateScope ? previousScope : QString(), + ModelItemInfo::Class, symbol); + } Scope *members = symbol->members(); for (unsigned i = 0; i < members->symbolCount(); ++i) { accept(members->symbolAt(i)); diff --git a/src/shared/trk/launcher.cpp b/src/shared/trk/launcher.cpp index 62f015cd1ed888f29c43f14d016005aac1cdbb3c..7eb8d7d1fbe43fb71d131da75a0ecef4eb3a9045 100644 --- a/src/shared/trk/launcher.cpp +++ b/src/shared/trk/launcher.cpp @@ -467,7 +467,7 @@ void Launcher::closeRemoteFile(bool failed) { QByteArray ba; appendInt(&ba, d->m_copyState.copyFileHandle, TargetByteOrder); - appendInt(&ba, QDateTime::currentDateTime().toTime_t(), TargetByteOrder); + appendDateTime(&ba, QDateTime::currentDateTime(), TargetByteOrder); d->m_device->sendTrkMessage(TrkCloseFile, failed ? TrkCallback() : TrkCallback(this, &Launcher::handleFileCopied), ba); diff --git a/src/shared/trk/trkutils.cpp b/src/shared/trk/trkutils.cpp index 458390d88936ffb9baf1de800318d76cc40902fd..256d4ad1e193256867a3bc091defe1dd5f992558 100644 --- a/src/shared/trk/trkutils.cpp +++ b/src/shared/trk/trkutils.cpp @@ -32,6 +32,9 @@ #include <QtCore/QCoreApplication> #include <QtCore/QDebug> +#include <QtCore/QDate> +#include <QtCore/QDateTime> +#include <QtCore/QTime> #define logMessage(s) do { qDebug() << "TRKCLIENT: " << s; } while (0) @@ -400,6 +403,18 @@ void appendString(QByteArray *ba, const QByteArray &str, Endianness endian, bool ba->append('\0'); } +void appendDateTime(QByteArray *ba, QDateTime dateTime, Endianness endian) +{ + // convert the QDateTime to UTC and append its representation to QByteArray + // format is the same as in FAT file system + dateTime = dateTime.toUTC(); + const QTime utcTime = dateTime.time(); + const QDate utcDate = dateTime.date(); + uint fatDateTime = (utcTime.hour() << 11 | utcTime.minute() << 5 | utcTime.second()/2) << 16; + fatDateTime |= (utcDate.year()-1980) << 9 | utcDate.month() << 5 | utcDate.day(); + appendInt(ba, fatDateTime, endian); +} + QByteArray errorMessage(byte code) { switch (code) { diff --git a/src/shared/trk/trkutils.h b/src/shared/trk/trkutils.h index aec86a17309639303ad53e8b86fef0698fbb451a..3648619373053b1a600a12653f26cf2ce5a6b477 100644 --- a/src/shared/trk/trkutils.h +++ b/src/shared/trk/trkutils.h @@ -37,6 +37,8 @@ typedef unsigned char byte; +class QDateTime; + namespace trk { enum Command { @@ -92,6 +94,7 @@ void appendByte(QByteArray *ba, byte b); void appendShort(QByteArray *ba, ushort s, Endianness = TargetByteOrder); void appendInt(QByteArray *ba, uint i, Endianness = TargetByteOrder); void appendString(QByteArray *ba, const QByteArray &str, Endianness = TargetByteOrder, bool appendNullTerminator = true); +void appendDateTime(QByteArray *ba, QDateTime dateTime, Endianness = TargetByteOrder); struct Library {