Compare commits

..

No commits in common. "088066197f60f59ed38b918cd6a9d0efe2ffd564" and "ff4f71c1e61727999799184854b35bd3c99e63c5" have entirely different histories.

8 changed files with 9 additions and 58 deletions

View File

@ -4,7 +4,7 @@
cmake_minimum_required(VERSION 3.16)
project(pineapple-pictures VERSION 0.9.1) # don't forget to update NEWS file and AppStream metadata.
project(pineapple-pictures VERSION 0.9.0) # don't forget to update NEWS file and AppStream metadata.
include (GNUInstallDirs)
include (FeatureSummary)

19
NEWS
View File

@ -1,22 +1,3 @@
Version 0.9.1
~~~~~~~~~~~~~
Released: 2025-01-25
Features:
* Option to double-click to fullscreen
* Build-time option to embed translation resources
Bugfixes:
* Fix window size not adjusted when open file on macOS
* Should center window according to available screen geometry
Miscellaneous:
* Change close window bahavior on macOS
* Update translations
Contributors:
albanobattistella, Sabri Ünal
Version 0.9.0
~~~~~~~~~~~~~
Released: 2024-12-08

View File

@ -21,7 +21,7 @@ Pineapple Pictures is a lightweight image viewer that allows you view JPEG, PNG,
- Archlinux AUR: [pineapple-pictures](https://aur.archlinux.org/packages/pineapple-pictures/) | [pineapple-pictures-git](https://aur.archlinux.org/packages/pineapple-pictures-git/)
- [Itch.io Store](https://blumia.itch.io/pineapple-pictures)
### Maintained by contributors / certain distro's package maintainers
### Maintained by contributors / curtain distro's package maintainers
- Debian (since bullseye) or Ubuntu (since 21.04): `sudo apt install pineapple-pictures`
- Nix / NixOS: [pineapple-pictures](https://search.nixos.org/packages?channel=unstable&show=pineapple-pictures&from=0&size=50&sort=relevance&type=packages&query=pineapple-pictures) (maintained by @wineee)

View File

@ -63,12 +63,7 @@ int main(int argc, char *argv[])
FileOpenEventHandler * fileOpenEventHandler = new FileOpenEventHandler(&a);
a.installEventFilter(fileOpenEventHandler);
a.connect(fileOpenEventHandler, &FileOpenEventHandler::fileOpen, [&w](const QUrl & url){
if (w.isHidden()) {
w.setWindowOpacity(1);
w.showNormal();
} else {
w.activateWindow();
}
if (w.isHidden()) w.showNormal();
w.showUrls({url});
w.initWindowSize();
});

View File

@ -71,11 +71,7 @@ MainWindow::MainWindow(QWidget *parent)
m_exitAnimationGroup->addAnimation(m_fadeOutAnimation);
m_exitAnimationGroup->addAnimation(m_floatUpAnimation);
connect(m_exitAnimationGroup, &QParallelAnimationGroup::finished,
#ifdef Q_OS_MAC
this, &QWidget::hide);
#else
this, &QWidget::close);
#endif
GraphicsScene * scene = new GraphicsScene(this);
@ -563,7 +559,7 @@ void MainWindow::centerWindow()
Qt::LeftToRight,
Qt::AlignCenter,
this->size(),
qApp->screenAt(QCursor::pos())->availableGeometry()
qApp->screenAt(QCursor::pos())->geometry()
)
);
}

View File

@ -764,7 +764,7 @@
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Toggle fullscreen</source>
<translation>Attiva schermo intero</translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="83"/>

View File

@ -295,12 +295,12 @@
<message>
<location filename="../actionmanager.cpp" line="108"/>
<source>Pause/Resume Animation</source>
<translation>Canlandırmayı Duraklat/Sürdür</translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="109"/>
<source>Animation Go to Next Frame</source>
<translation>Canlandırma Sonraki Kareye Git</translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../actionmanager.cpp" line="111"/>
@ -743,7 +743,7 @@
<message>
<location filename="../settingsdialog.cpp" line="68"/>
<source>Failed to set shortcuts</source>
<translation>Kısayollar ayarlanamadı</translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="69"/>
@ -768,7 +768,7 @@
<message>
<location filename="../settingsdialog.cpp" line="79"/>
<source>Toggle fullscreen</source>
<translation>Tam ekranı /kapat</translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../settingsdialog.cpp" line="83"/>

View File

@ -74,27 +74,6 @@
</screenshot>
</screenshots>
<releases>
<release type="stable" version="0.9.1" date="2025-01-25T00:00:00Z">
<description>
<p>This release adds the following features:</p>
<ul>
<li>Option to double-click to fullscreen</li>
<li>Build-time option to embed translation resources</li>
</ul>
<p>This release fixes the following bugs:</p>
<ul>
<li>Fix window size not adjusted when open file on macOS</li>
<li>Should center window according to available screen geometry</li>
</ul>
<p>This release includes the following changes:</p>
<ul>
<li>Change close window bahavior on macOS</li>
<li>Update translations</li>
</ul>
<p>With contributions from:</p>
<p>albanobattistella, Sabri Ünal</p>
</description>
</release>
<release type="stable" version="0.9.0" date="2024-12-08T00:00:00Z">
<description>
<p>This release adds the following features:</p>