diff --git a/src/app/seamly2d/dialogs/pieces_widget.cpp b/src/app/seamly2d/dialogs/pieces_widget.cpp index 6e14664faea6..52900bbe8beb 100644 --- a/src/app/seamly2d/dialogs/pieces_widget.cpp +++ b/src/app/seamly2d/dialogs/pieces_widget.cpp @@ -346,8 +346,6 @@ void PiecesWidget::cellDoubleClicked(int row, int column) void PiecesWidget::fillTable(const QHash *pieces) { ui->tableWidget->blockSignals(true); - - const int selectedRow = ui->tableWidget->currentRow(); ui->tableWidget->clearContents(); ui->tableWidget->setColumnCount(5); ui->tableWidget->setRowCount(pieces->size()); @@ -425,9 +423,7 @@ void PiecesWidget::fillTable(const QHash *pieces) ui->tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed); ui->tableWidget->resizeColumnsToContents(); ui->tableWidget->resizeRowsToContents(); - //ui->tableWidget->setCurrentCell(selectedRow, 0); ui->tableWidget->setSortingEnabled(true); - //ui->tableWidget->clearSelection(); ui->tableWidget->blockSignals(false); } diff --git a/src/app/seamly2d/dialogs/welcome_dialog.cpp b/src/app/seamly2d/dialogs/welcome_dialog.cpp index 0fd2826416b5..cf9087803bfc 100644 --- a/src/app/seamly2d/dialogs/welcome_dialog.cpp +++ b/src/app/seamly2d/dialogs/welcome_dialog.cpp @@ -44,7 +44,7 @@ SeamlyWelcomeDialog::SeamlyWelcomeDialog(QWidget *parent) setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); //-------------------- Units setup - initUnits(MeasurementsType::Individual); + initUnits(); //-------------------- Decimal separator setup ui->separator_CheckBox->setText(tr("User locale") + QString(" (%1)").arg(QLocale().decimalPoint())); @@ -112,7 +112,7 @@ void SeamlyWelcomeDialog::apply() //--------------------------------------------------------------------------------------------------------------------- // @brief changeEvent handle event changes -// @param type event type +//--------------------------------------------------------------------------------------------------------------------- void SeamlyWelcomeDialog::changeEvent(QEvent *event) { if (event->type() == QEvent::LanguageChange) @@ -135,11 +135,10 @@ void SeamlyWelcomeDialog::seperatorChanged() ui->separator_CheckBox->setText(tr("User locale") + QString(" (%1)").arg(seperator)); } - //--------------------------------------------------------------------------------------------------------------------- // @brief initUnits initinailize the units combobox -// @param type measurment type -void SeamlyWelcomeDialog::initUnits(const MeasurementsType &type) +//--------------------------------------------------------------------------------------------------------------------- +void SeamlyWelcomeDialog::initUnits() { ui->units_ComboBox->addItem(tr("Centimeters"), unitCM); ui->units_ComboBox->addItem(tr("Millimeters"), unitMM); diff --git a/src/app/seamly2d/dialogs/welcome_dialog.h b/src/app/seamly2d/dialogs/welcome_dialog.h index 37958a5114d7..e40efabd2cd6 100644 --- a/src/app/seamly2d/dialogs/welcome_dialog.h +++ b/src/app/seamly2d/dialogs/welcome_dialog.h @@ -55,7 +55,7 @@ class SeamlyWelcomeDialog : public QDialog bool m_selectionSoundChanged; VSettings *settings; - void initUnits(const MeasurementsType &type); + void initUnits(); }; #endif // WELCOME_DIALOG_H diff --git a/src/app/seamly2d/mainwindow.h b/src/app/seamly2d/mainwindow.h index f5beef18e6dc..747daacca21f 100644 --- a/src/app/seamly2d/mainwindow.h +++ b/src/app/seamly2d/mainwindow.h @@ -88,10 +88,6 @@ class LayoutToolBox; class QToolButton; class QDoubleSpinBox; class QFontComboBox; - -class DraftImage; -class ImageItem; - class MouseCoordinates; class PenToolBar; diff --git a/src/app/seamlyme/dialogs/me_welcome_dialog.cpp b/src/app/seamlyme/dialogs/me_welcome_dialog.cpp index 7289136fee98..746b13112977 100644 --- a/src/app/seamlyme/dialogs/me_welcome_dialog.cpp +++ b/src/app/seamlyme/dialogs/me_welcome_dialog.cpp @@ -44,7 +44,7 @@ SeamlyMeWelcomeDialog::SeamlyMeWelcomeDialog(QWidget *parent) setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); //-------------------- Units setup - initUnits(MeasurementsType::Individual); + initUnits(); //-------------------- Decimal separator setup ui->separator_CheckBox->setText(tr("User locale") + QString(" (%1)").arg(QLocale().decimalPoint())); @@ -119,8 +119,8 @@ void SeamlyMeWelcomeDialog::seperatorChanged() //--------------------------------------------------------------------------------------------------------------------- // @brief initUnits initinailize the units combobox -// @param type measurment type -void SeamlyMeWelcomeDialog::initUnits(const MeasurementsType &type) +//--------------------------------------------------------------------------------------------------------------------- +void SeamlyMeWelcomeDialog::initUnits() { ui->units_ComboBox->addItem(tr("Centimeters"), unitCM); ui->units_ComboBox->addItem(tr("Millimeters"), unitMM); diff --git a/src/app/seamlyme/dialogs/me_welcome_dialog.h b/src/app/seamlyme/dialogs/me_welcome_dialog.h index bbda1bd4d265..2c6919af51a8 100644 --- a/src/app/seamlyme/dialogs/me_welcome_dialog.h +++ b/src/app/seamlyme/dialogs/me_welcome_dialog.h @@ -54,7 +54,7 @@ class SeamlyMeWelcomeDialog : public QDialog bool m_langChanged; VSeamlyMeSettings *settings; - void initUnits(const MeasurementsType &type); + void initUnits(); }; #endif // ME_WELCOME_DIALOG_H diff --git a/src/libs/tools/tools.pro b/src/libs/tools/tools.pro index 9b6e69205887..a2ed32fa4b8b 100644 --- a/src/libs/tools/tools.pro +++ b/src/libs/tools/tools.pro @@ -46,9 +46,6 @@ OBJECTS_DIR = obj # Directory for files created uic UI_DIR = uic -# Set using ccache. Function enable_ccache() defined in common.pri. -$$enable_ccache() - INCLUDEPATH += $$PWD/../vpatterndb include(warnings.pri) diff --git a/src/libs/vmisc/share/resources/icon.qrc b/src/libs/vmisc/share/resources/icon.qrc index 12ac51c8dc87..b69d21660f44 100644 --- a/src/libs/vmisc/share/resources/icon.qrc +++ b/src/libs/vmisc/share/resources/icon.qrc @@ -145,8 +145,6 @@ icon/160x64/properties.png icon/160x64/seam_allowance.png icon/32x32/color_picker.png - icon/32x32/lock_off.png - icon/32x32/lock_on.png icon/32x32/checkmark.png icon/32x32/checkmark@2x.png icon/64x64/rotation.png diff --git a/src/libs/vtools/tools/pattern_piece_tool.cpp b/src/libs/vtools/tools/pattern_piece_tool.cpp index c6848ef1e796..43f2a05867f4 100644 --- a/src/libs/vtools/tools/pattern_piece_tool.cpp +++ b/src/libs/vtools/tools/pattern_piece_tool.cpp @@ -1044,9 +1044,6 @@ QVariant PatternPieceTool::itemChange(QGraphicsItem::GraphicsItemChange change, if (VMainGraphicsView *view = qobject_cast(viewList.at(0))) { const qreal scale = sceneScale(scene()); - const int xmargin = 50; - const int ymargin = 50; - const QRectF viewRect = VMainGraphicsView::SceneVisibleArea(view); const QRectF itemRect = mapToScene(boundingRect()|childrenBoundingRect()).boundingRect();