Skip to content

Commit

Permalink
QTC version update.
Browse files Browse the repository at this point in the history
  • Loading branch information
OneMoreGres committed Apr 24, 2015
1 parent d613a8b commit a7f021a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Changelog
## v 3.4.0
- QTC version update
## v 3.3.1
Initial release
- Initial release
2 changes: 1 addition & 1 deletion dist/make_dist.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set /p VERSION=<..\..\qtcreator-latest\version
set PLUGIN_NAME=QtcMarkview
set BUILD_DIR=..\..\qtcreator-latest\release-vc10
set BUILD_DIR=..\..\qtcreator-latest\release-vc12
del %PLUGIN_NAME%-%VERSION%-win.zip

rd /Q /S dist
Expand Down
1 change: 1 addition & 0 deletions paths.pri
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ isEmpty(IDE_BUILD_TREE){
CONFIG(debug, debug|release):IDE_BUILD_TREE=$$PWD/../qtcreator-latest/debug-x64
contains(QMAKE_TARGET.arch, x86):IDE_BUILD_TREE=$$PWD/../qtcreator-latest/release-x86
msvc:IDE_BUILD_TREE=$$PWD/../qtcreator-latest/release-vc10
win32-msvc2013:IDE_BUILD_TREE=$$PWD/../qtcreator-latest/release-vc12
}
1 change: 1 addition & 0 deletions src/MarkviewEditorFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <QCoreApplication>

#include <texteditor/normalindenter.h>
#include <texteditor/textdocument.h>

using namespace QtcMarkview::Internal;

Expand Down
8 changes: 7 additions & 1 deletion src/MarkviewWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
#include <QToolButton>

#include <aggregation/aggregate.h>
#include <texteditor/textdocument.h>
#include <coreplugin/editormanager/editormanager.h>
#include <texteditor/texteditorconstants.h>

using namespace QtcMarkview::Internal;

Expand Down Expand Up @@ -43,7 +46,10 @@ MarkviewWidget::~MarkviewWidget () {
}

void MarkviewWidget::finalizeInitialization () {
setupAsPlainEditor ();
textDocument()->setMimeType(QLatin1String(TextEditor::Constants::C_TEXTEDITOR_MIMETYPE_TEXT));

setupGenericHighlighter ();
configureGenericHighlighter ();

Q_ASSERT (textDocument ());
connect (textDocument (), &TextEditor::TextDocument::contentsChanged,
Expand Down

0 comments on commit a7f021a

Please sign in to comment.