Compare commits

...

6 commits

6 changed files with 25 additions and 6 deletions

View file

@ -113,7 +113,7 @@ linux_qt5_qbs_task_template: &LINUX_QT5_QBS_TASK_TEMPLATE
linuxdeployqt_task_template: &LINUXDEPLOYQT_TASK_TEMPLATE
install_script:
- bash -c "$PACKAGE_MANAGER_INSTALL qt515base qt515svg qt515tools qt515xmlpatterns qt515translations qt515doc qt515imageformats poppler-utils git xvfb ccache build-essential"
- bash -c "$PACKAGE_MANAGER_INSTALL qt515base qt515svg qt515tools qt515xmlpatterns qt515translations qt515doc qt515imageformats poppler-utils git xvfb ccache build-essential libgl1-mesa-dev libicu-dev"
build_script:
- uname -a
- mkdir -pm 0700 $XDG_RUNTIME_DIR
@ -134,6 +134,7 @@ linuxdeployqt_task_template: &LINUXDEPLOYQT_TASK_TEMPLATE
- qbs config profiles.qt5.baseProfile ${COMPILER}
- qbs build -f valentina.qbs -d $CIRRUS_WORKING_DIR/build --jobs $(nproc) profile:qt5 config:release modules.buildconfig.enableCcache:${ENABLE_CCACHE} qbs.installRoot:$CIRRUS_WORKING_DIR/build/install-root modules.buildconfig.enableAppImage:true
- qbs -p autotest-runner -d build profile:qt5 config:release
- export LD_LIBRARY_PATH=/opt/qt515/lib:$CIRRUS_WORKING_DIR/build/install-root/usr/local/lib/valentina:$LD_LIBRARY_PATH
- linuxdeployqt $CIRRUS_WORKING_DIR/build/install-root/usr/local/share/applications/ua.com.smart-pattern.valentina.desktop -appimage -qmake='/opt/qt515/bin/qmake' -executable-dir=$CIRRUS_WORKING_DIR/build/install-root/usr/local/bin -extra-plugins=iconengines,platformthemes/libqgtk3.so
- ccache -s
deploy_script:

View file

@ -10,7 +10,7 @@ Comment[uk]=Створюйте і редагуйте розкладки
Icon=puzzle
Terminal=false
MimeType=application/x-valentina-layout;
Categories=Qt;Utility;FileTools;
Categories=Graphics;VectorGraphics;2DGraphics;Qt;Utility;FileTools;
TryExec=puzzle
Keywords=layout;nesting;
StartupWMClass=puzzle

View file

@ -9,8 +9,8 @@ Comment=Create and edit measurements
Comment[uk]=Створюйте і редагуйте мірки
Icon=tape
Terminal=false
MimeType=application/x-valentina-s-measurements;application/x-valentina-i-measurements;application/x-valentina-k-measurements
Categories=Qt;Utility;FileTools;
MimeType=application/x-valentina-s-measurements;application/x-valentina-i-measurements;application/x-valentina-k-measurements;
Categories=Qt;Utility;FileTools;Engineering;
TryExec=tape
Keywords=measurements;
StartupWMClass=tape

View file

@ -10,7 +10,7 @@ Comment[uk]=Створеня викрійок одягу
Icon=valentina
Terminal=false
MimeType=application/x-valentina-pattern;
Categories=Graphics;VectorGraphics;2DGraphics;Qt;Engineering;FileTools;
Categories=Graphics;VectorGraphics;2DGraphics;Qt;Engineering;FileTools;Utility;
TryExec=valentina
Keywords=pattern;
StartupWMClass=valentina

View file

@ -282,7 +282,7 @@ VToolApp {
'application/x-valentina-k-measurements',
'application/x-valentina-layout'
];
desktopKeys['MimeType'] = mimeTypes.join(';');
desktopKeys['MimeType'] = mimeTypes.join(';') + ';';
}
return (desktopKeys);

View file

@ -1004,7 +1004,13 @@ auto VFoldLine::ThreeXPoints() const -> QVector<QVector<QPointF>>
//---------------------------------------------------------------------------------------------------------------------
auto VFoldLine::TwoArrowsData() const -> ArrowsTextPosData
{
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
ArrowsTextPosData data;
QT_WARNING_POP
data.arrowsWidth = qFuzzyIsNull(m_width) ? m_foldLine.length() * 0.9 : qMin(m_width, m_foldLine.length());
data.arrowsHeight = qFuzzyIsNull(m_height) ? defArrowsHeight : m_height;
return data;
@ -1015,7 +1021,13 @@ auto VFoldLine::TwoArrowsTextAboveData() const -> ArrowsTextPosData
{
const qreal defLabelHeight = LabelTextHeight();
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
ArrowsTextPosData data;
QT_WARNING_POP
data.arrowsWidth = qFuzzyIsNull(m_width) ? m_foldLine.length() * 0.9 : qMin(m_width, m_foldLine.length());
data.labelWidth = data.arrowsWidth;
data.arrowsHeight =
@ -1030,7 +1042,13 @@ auto VFoldLine::TwoArrowsTextUnderData() const -> ArrowsTextPosData
{
const qreal defLabelHeight = LabelTextHeight();
QT_WARNING_PUSH
QT_WARNING_DISABLE_GCC("-Wnoexcept")
ArrowsTextPosData data;
QT_WARNING_POP
data.arrowsWidth = qFuzzyIsNull(m_width) ? m_foldLine.length() * 0.9 : qMin(m_width, m_foldLine.length());
data.labelWidth = data.arrowsWidth * 0.9;
data.labelHeight = qFuzzyIsNull(m_height) ? defLabelHeight : (defLabelHeight + CmToPixel(0.2)) - m_height;