Browse Source

style fixes

cl-refactor
arkpar 10 years ago
parent
commit
7730e7294e
  1. 2
      mix/CMakeLists.txt
  2. 1
      mix/CodeHighlighter.cpp
  3. 2
      mix/noweb.qrc
  4. 1
      mix/qml/CodeEditor.qml

2
mix/CMakeLists.txt

@ -59,6 +59,6 @@ eth_install_executable(${EXECUTABLE}
QMLDIR ${CMAKE_CURRENT_SOURCE_DIR}/qml
)
#add qml resources to proect tree in Qt creator
#add qml files to project tree in Qt creator
file(GLOB_RECURSE QMLFILES "qml/*.*")
add_custom_target(dummy SOURCES ${QMLFILES})

1
mix/CodeHighlighter.cpp

@ -137,7 +137,6 @@ void CodeHighlighter::processComments(std::string const& _source)
void CodeHighlighter::updateFormatting(QTextDocument* _document, CodeHighlighterSettings const& _settings)
{
return;
QTextBlock block = _document->firstBlock();
QList<QTextLayout::FormatRange> ranges;

2
mix/noweb.qrc

@ -1,6 +1,6 @@
<RCC>
<qresource prefix="/">
<file alias="qml/WebPreview.qml">qml/WebPreviewStub.qml</file>
<file alias="qml/WebPreview.qml">qml/WebPreviewStub.qml</file>
<file alias="qml/CodeEditor.qml">qml/CodeEditor.qml</file>
</qresource>
</RCC>

1
mix/qml/CodeEditor.qml

@ -64,6 +64,7 @@ Component {
font.family: "Monospace"
font.pointSize: 12
width: parent.width
tabChangesFocus: false
Keys.onPressed: {
if (event.key === Qt.Key_Tab) {

Loading…
Cancel
Save