Skip to content

Commit

Permalink
few bugs fixed; version changed
Browse files Browse the repository at this point in the history
  • Loading branch information
aizenbit committed Mar 10, 2016
1 parent 4a29d6d commit 8ba8929
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ MainWindow::MainWindow(QWidget *parent) :

connect(fontDialog, SIGNAL(fontReady()),
ui->svgView, SLOT(loadFont()));
errorMessage->setModal(true);

ui->toolBar->actions()[ToolButton::Render]->setShortcut(Qt::ControlModifier + Qt::Key_R);
ui->toolBar->actions()[ToolButton::Print]->setShortcut(Qt::ControlModifier + Qt::Key_P);
Expand Down
2 changes: 1 addition & 1 deletion mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class MainWindow : public QMainWindow
QLabel *sheetNumberLabel;
QVector<int> sheetPointers; //pointers to the beginning of the sheets
int currentSheetNumber; //number of sheet that is displaying or rendering now
const QString version = "0.6 alpha";
const QString version = "0.7 beta";
void saveAllSheetsToImages(const QString &fileName, const int indexOfExtension);
void saveAllSheetsToPDF(const QString &fileName);
void preparePrinter(QPrinter *printer);
Expand Down
2 changes: 1 addition & 1 deletion preferencesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void PreferencesDialog::loadSettingsFromFile()
ui->roundCheckBox->setChecked( settings.value("round-lines", true).toBool());
ui->scaleCanvsaCheckBox->setChecked(settings.value("scale-canvas", true).toBool());
changedByProgram = true;
ui->scaleCanvasSpinBox->setValue( settings.value("scale-canvas-value", 0.5).toDouble());
ui->scaleCanvasSpinBox->setValue( settings.value("scale-canvas-value", 1.0).toDouble());
changedByProgram = false;
ui->alternateMarginsCheckBox->setChecked(settings.value("alternate-margins-of-even-sheets", true).toBool());
ui->connectLettersCheckBox->setChecked( settings.value("connect-letters", true).toBool());
Expand Down
3 changes: 1 addition & 2 deletions svgview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ int SvgView::renderText(const QStringRef &text)
data.scale /= 5;

symbolItem->setScale(data.scale);
symbolBoundingSize.setWidth(symbolItem->boundingRect().width() * symbolItem->scale());
symbolBoundingSize.setHeight(symbolItem->boundingRect().height() * symbolItem->scale());
symbolBoundingSize = symbolItem->boundingRect().size() * symbolItem->scale();

cursor.rx() -= symbolBoundingSize.width() * symbolData.limits.topLeft().x();
qreal letterWidth = data.width * data.symbolData.limits.width() * data.scale;
Expand Down
2 changes: 1 addition & 1 deletion svgview.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public slots:

SymbolData symbolData, previousLetterData;
QRectF currentMarginsRect;
QSize symbolBoundingSize;
QSizeF symbolBoundingSize;
QPointF cursor, previousLetterCursor;
QGraphicsSvgItem *lastLetter;

Expand Down

0 comments on commit 8ba8929

Please sign in to comment.