Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Nov 12, 2022
1 parent 9b4527c commit e808652
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ add_definitions(${Qt${QT_VERSION_MAJOR}Widgets_COMPILE_DEFINITIONS})


set(PROJECT "tea-qt")
project ($PROJECT VERSION 62.0.0 LANGUAGES CXX C)
project ($PROJECT VERSION 62.0.1 LANGUAGES CXX C)
add_definitions(-DVERSION_NUMBER="\\"${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}\\"")
add_definitions(-DNOCRYPT=1)
add_definitions(-DNOUNCRYPT=1)
Expand Down
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//it's lazy updated file, so the real ChangeLog is the activity on github

* 62.0.1 quick fix
+ Edit - Select all

* Qt6 copy text with new lines - fixed
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
====NEWS ABOUT TEA====
TEA 62.0.0, November 2022
TEA 62.0.1, November 2022
---------------------------------------------------
http://tea.ourproject.org
---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion NEWS-RU
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=====НОВОСТИ ПРО ТИА====
ТИА 62.0.0, ноябрь 2022
ТИА 62.0.1, ноябрь 2022
======================
http://tea.ourproject.org
---------------------------------------------------
Expand Down
22 changes: 11 additions & 11 deletions document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,8 @@ void CDocument::keyPressEvent (QKeyEvent *event)
event->accept();
return;
}
/*
/*
#if QT_VERSION >= 0x050000
if (event->key() == Qt::Key_C && (event->modifiers().testFlag(Qt::ControlModifier)))
Expand Down Expand Up @@ -1141,7 +1141,6 @@ void CDocument::keyPressEvent (QKeyEvent *event)
#endif
*/

#if QT_VERSION >= 0x050000

if (event->key() == Qt::Key_C && (event->modifiers().testFlag(Qt::ControlModifier)))
{
Expand All @@ -1166,9 +1165,6 @@ void CDocument::keyPressEvent (QKeyEvent *event)
}


#endif


QPlainTextEdit::keyPressEvent (event);
}

Expand Down Expand Up @@ -1373,10 +1369,12 @@ void CDocument::ed_copy()

QString t = get();

#if defined(Q_OS_UNIX)
t = t.replace (QChar::ParagraphSeparator, "\n");
#endif

#if defined(Q_OS_WIN) || defined(Q_OS_OS2)
t = t.replace (QChar::ParagraphSeparator, "\r\n");
#elif defined(Q_OS_UNIX)
t = t.replace (QChar::ParagraphSeparator, "\n");
t = t.replace (QChar::ParagraphSeparator, "\r\n");
#endif

QClipboard *clipboard = QApplication::clipboard();
Expand All @@ -1392,10 +1390,12 @@ void CDocument::ed_cut()

QString t = get();

#if defined(Q_OS_UNIX)
t = t.replace (QChar::ParagraphSeparator, "\n");
#endif

#if defined(Q_OS_WIN) || defined(Q_OS_OS2)
t = t.replace (QChar::ParagraphSeparator, "\r\n");
#elif defined(Q_OS_UNIX)
t = t.replace (QChar::ParagraphSeparator, "\n");
#endif

QClipboard *clipboard = QApplication::clipboard();
Expand All @@ -1415,7 +1415,7 @@ void CDocument::ed_paste()

bool CDocument::has_selection()
{
return textCursor().hasSelection();
return textCursor().hasSelection();
}

/*
Expand Down
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
project('tea', ['cpp','c'],
default_options : ['cpp_std=c++11'],
version : '62.0.0',
version : '62.0.1',
license : 'GPLv3')

add_global_arguments('-DVERSION_NUMBER="62.0.0"', language : 'cpp')
add_global_arguments('-DVERSION_NUMBER="62.0.1"', language : 'cpp')
add_global_arguments('-DNOCRYPT="1"', language : 'cpp')
add_global_arguments('-DNOUNCRYPT="1"', language : 'cpp')
add_global_arguments('-DQUAZIP_STATIC="1"', language : 'cpp')
Expand Down
4 changes: 2 additions & 2 deletions tea-qmake.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION = 62.0.0
VERSION = 62.0.1

os2: {
DEFINES += 'VERSION_NUMBER=\'"62.0.0"\''
DEFINES += 'VERSION_NUMBER=\'"62.0.1"\''
} else: {
DEFINES += 'VERSION_NUMBER=\\\"$${VERSION}\\\"'
}
Expand Down

0 comments on commit e808652

Please sign in to comment.