mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Add in config the possibility to start the numbering of the columns of
titleblocks at 0. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5510 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "diagramposition.h"
|
||||
#include "qetapp.h"
|
||||
|
||||
/**
|
||||
Constructeur
|
||||
@@ -59,7 +60,13 @@ QString DiagramPosition::toString() {
|
||||
if (isOutOfBounds()) {
|
||||
return("-");
|
||||
}
|
||||
QSettings settings;
|
||||
|
||||
if (settings.value("border-columns_0", true).toBool()){
|
||||
return(QString("%1%2").arg(letter_).arg(number_ - 1));
|
||||
}else{
|
||||
return(QString("%1%2").arg(letter_).arg(number_));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user