Skip to content

Commit

Permalink
Highlight part line in editor and select part in 3DViewer #417
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorsandy committed Sep 20, 2020
1 parent 6508843 commit 5ca4fba
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion builds/linux/obs/alldeps/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Last Update: July 23, 2019
# Copyright (c) 2017 - 2020 by Trevor SANDY
pkgname=lpub3d
pkgver=2.4.0.1749
pkgver=2.4.0.1750
pkgrel=1
pkgdesc="An LDraw Building Instruction Editor"
url="https://github.com/trevorsandy/lpub3d.git"
Expand Down
6 changes: 3 additions & 3 deletions builds/linux/obs/alldeps/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
lpub3d (2.4.0.1749) debian; urgency=medium
lpub3d (2.4.0.1750) debian; urgency=medium

* LPub3D version 2.4.0.1.1749_20200920 for Linux
* LPub3D version 2.4.0.1.1750_20200920 for Linux

-- Trevor SANDY <[email protected]> Sun, 20 Sep 2020 10:01:13 +0200
-- Trevor SANDY <[email protected]> Sun, 20 Sep 2020 10:01:51 +0200
2 changes: 1 addition & 1 deletion builds/linux/obs/alldeps/debian/lpub3d.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Format: 1.0
Source: lpub3d
Binary: lpub3d
Architecture: any
Version: 2.4.0.1749
Version: 2.4.0.1750
Maintainer: Trevor SANDY <[email protected]>
Homepage: https://trevorsandy.github.io/lpub3d/
Standards-Version: 3.9.7
Expand Down
4 changes: 2 additions & 2 deletions builds/linux/obs/alldeps/lpub3d.spec
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ BuildRequires: fdupes
Summary: An LDraw Building Instruction Editor
Name: lpub3d
Icon: lpub3d.xpm
Version: 2.4.0.1749
Version: 2.4.0.1750
Release: <B_CNT>%{?dist}
URL: https://trevorsandy.github.io/lpub3d
Vendor: Trevor SANDY
Expand Down Expand Up @@ -728,5 +728,5 @@ update-mime-database /usr/share/mime >/dev/null || true
update-desktop-database || true
%endif

* Sun Sep 20 2020 - trevor.dot.sandy.at.gmail.dot.com 2.4.0.1749
* Sun Sep 20 2020 - trevor.dot.sandy.at.gmail.dot.com 2.4.0.1750
- LPub3D Linux package (rpm) release
Binary file modified builds/utilities/ci/secure/.secrets.tar.enc
Binary file not shown.
2 changes: 1 addition & 1 deletion builds/utilities/version.info
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2 4 0 1 1749 630485c
2 4 0 1 1750 6508843
2 changes: 1 addition & 1 deletion mainApp/docs/README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LPub3D 2.4.0.1.1749 (20 09 2020 10:01:13)
LPub3D 2.4.0.1.1750 (20 09 2020 10:01:51)

Features, enhancements, fixes and changes
------------
Expand Down
2 changes: 1 addition & 1 deletion mainApp/docs/RELEASE_NOTES.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<table class="tg">
<tr>
<th class="tg-0pky">
<h4><a id="LPub3D_0"></a>LPub3D 2.4.0.1.1749 (20 09 2020 10:01:13)</h4>
<h4><a id="LPub3D_0"></a>LPub3D 2.4.0.1.1750 (20 09 2020 10:01:51)</h4>
<hr>
<p>
LPub3D Continuous release.<br>
Expand Down
6 changes: 2 additions & 4 deletions mainApp/editwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,11 @@ void EditWindow::updateSelectedParts() {

QTextCursor cursor = _textEdit->textCursor();

QTextCursor saveCursor = cursor;

if(!(hasSelection = cursor.hasSelection()))
cursor.select(QTextCursor::LineUnderCursor);

QTextCursor saveCursor = cursor;

QString content = cursor.selection().toPlainText();
selectedLines = content.count("\n")+1;

Expand Down Expand Up @@ -607,8 +607,6 @@ void EditWindow::updateSelectedParts() {

// restore selection
_textEdit->setTextCursor(saveCursor);
if (!hasSelection)
_textEdit->moveCursor(QTextCursor::StartOfLine);

cursor.endEditBlock();

Expand Down
2 changes: 1 addition & 1 deletion mainApp/org.trevorsandy.lpub3d.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<binary>lpub3d24</binary>
​</provides>
<releases>
<release version="2.4.0.1749" date="2020-09-20">
<release version="2.4.0.1750" date="2020-09-20">
<description>
<p>LPub3D Linux AppImage package</p>
</description>
Expand Down

0 comments on commit 5ca4fba

Please sign in to comment.