6 Commits
0.4.3 ... 0.4.4

Author SHA1 Message Date
e92ccb0986 Revert "feat: fit by width"
This reverts commit 038d04b3da.
2021-05-29 11:00:47 +08:00
3e51cd5603 fix(CI): QT_PLUGIN_INSTALL_DIR is deprecated, use KDE_INSTALL_QTPLUGINDIR instead 2021-05-29 10:44:12 +08:00
71e8df3107 fix: memory leak when switching between animated image files 2021-05-21 00:06:37 +08:00
8b86fb1434 fix: use metainfo.xml suffix instead of appdata.xml
resolve: GH-30
2021-05-19 01:11:41 +08:00
038d04b3da feat: fit by width
Signed-off-by: Gary Wang <wzc782970009@gmail.com>
2021-05-14 00:10:08 +08:00
69802a433e fix: navigator view not get updated in some edge case
Signed-off-by: Gary Wang <wzc782970009@gmail.com>
2021-05-12 13:55:04 +08:00
6 changed files with 5 additions and 4 deletions

View File

@ -201,7 +201,7 @@ elseif (UNIX)
# install app metadata file for appstream (and some other stuff using this metadata like snapcraft)
install (
FILES dist/appstream/net.blumia.pineapple-pictures.appdata.xml
FILES dist/appstream/net.blumia.pineapple-pictures.metainfo.xml
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo"
)
endif()

View File

@ -51,8 +51,8 @@ void GraphicsScene::showSvg(const QString &filepath)
void GraphicsScene::showAnimated(const QString &filepath)
{
this->clear();
QMovie * movie = new QMovie(filepath);
QLabel * label = new QLabel;
QMovie * movie = new QMovie(filepath, QByteArray(), label);
label->setStyleSheet("background-color:rgba(225,255,255,0);");
label->setMovie(movie);
this->addWidget(label);

View File

@ -50,7 +50,7 @@ MainWindow::MainWindow(QWidget *parent)
m_floatUpAnimation = new QPropertyAnimation(this, "geometry");
m_floatUpAnimation->setDuration(300);
m_floatUpAnimation->setEasingCurve(QEasingCurve::OutCirc);
m_exitAnimationGroup = new QParallelAnimationGroup;
m_exitAnimationGroup = new QParallelAnimationGroup(this);
m_exitAnimationGroup->addAnimation(m_fadeOutAnimation);
m_exitAnimationGroup->addAnimation(m_floatUpAnimation);
connect(m_exitAnimationGroup, &QParallelAnimationGroup::finished,

View File

@ -32,6 +32,7 @@ void NavigatorView::updateMainViewportRegion()
{
if (m_mainView != nullptr) {
m_viewportRegion = mapFromScene(m_mainView->mapToScene(m_mainView->rect()));
update();
}
}

View File

@ -102,7 +102,7 @@ build_script:
- cd kimageformats
- mkdir build
- cd build
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DQT_PLUGIN_INSTALL_DIR=%QTPATH%\plugins
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_QTPLUGINDIR=%QTPATH%\plugins
- cmake --build . --config Release
- cmake --build . --config Release --target install/strip
- cd %APPVEYOR_BUILD_FOLDER%