gnu: converseen: Update to 0.12.0.2.
* gnu/packages/image.scm (converseen): Update to 0.12.0.2. [arguments]<#:configure-flags>: Use Qt6. [native-inputs, inputs]: Use Qt6. * gnu/packages/patches/converseen-hide-non-free-pointers.patch: Update patch. Change-Id: I6b6dc200b1b98115400854b2ff77cc805df45078
This commit is contained in:
parent
f649f82053
commit
121de47dec
2 changed files with 119 additions and 39 deletions
|
@ -36,7 +36,7 @@
|
||||||
;;; Copyright © 2022 ( <paren@disroot.org>
|
;;; Copyright © 2022 ( <paren@disroot.org>
|
||||||
;;; Copyright © 2022-2023 Bruno Victal <mirai@makinata.eu>
|
;;; Copyright © 2022-2023 Bruno Victal <mirai@makinata.eu>
|
||||||
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
|
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
|
||||||
;;; Copyright © 2023 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
;;; Copyright © 2023-2024 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
||||||
;;; Copyright © 2023 Artyom V. Poptsov <poptsov.artyom@gmail.com>
|
;;; Copyright © 2023 Artyom V. Poptsov <poptsov.artyom@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
(define-public converseen
|
(define-public converseen
|
||||||
(package
|
(package
|
||||||
(name "converseen")
|
(name "converseen")
|
||||||
(version "0.11.0.0")
|
(version "0.12.0.2")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -131,7 +131,7 @@
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1imc0dbbrs96yv3mp6bs7whd14zvgdw7hmv87bz8lp7d739s74z4"))
|
"0gjg2ma8v8pwldny4j2ag92g5zrv5cz511mq44qr7akjsddq6q6p"))
|
||||||
(patches
|
(patches
|
||||||
(search-patches "converseen-hide-updates-checks.patch"
|
(search-patches "converseen-hide-updates-checks.patch"
|
||||||
;; Remove links to sites relying on non-free
|
;; Remove links to sites relying on non-free
|
||||||
|
@ -141,6 +141,7 @@
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:tests? #false ;no tests
|
#:tests? #false ;no tests
|
||||||
|
#:configure-flags #~(list "-DUSE_QT6=yes")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'set-translations-location
|
(add-after 'unpack 'set-translations-location
|
||||||
|
@ -153,9 +154,9 @@
|
||||||
#$output
|
#$output
|
||||||
"/share/converseen/loc\")"))))))))
|
"/share/converseen/loc\")"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config qttools-5))
|
(list pkg-config qttools))
|
||||||
(inputs
|
(inputs
|
||||||
(list imagemagick qtbase-5))
|
(list imagemagick qtbase))
|
||||||
(home-page "https://converseen.fasterland.net/")
|
(home-page "https://converseen.fasterland.net/")
|
||||||
(synopsis "Batch image converter and resizer")
|
(synopsis "Batch image converter and resizer")
|
||||||
(description
|
(description
|
||||||
|
|
|
@ -2,10 +2,10 @@ Remove pointers to PayPal and Facebook.
|
||||||
Upstream status: Guix-specific, not forwarded upstream.
|
Upstream status: Guix-specific, not forwarded upstream.
|
||||||
|
|
||||||
diff --git a/src/dialoginfo.cpp b/src/dialoginfo.cpp
|
diff --git a/src/dialoginfo.cpp b/src/dialoginfo.cpp
|
||||||
index 3302f55..b64f414 100755
|
index 52dd628..b37c413 100755
|
||||||
--- a/src/dialoginfo.cpp
|
--- a/src/dialoginfo.cpp
|
||||||
+++ b/src/dialoginfo.cpp
|
+++ b/src/dialoginfo.cpp
|
||||||
@@ -31,7 +31,6 @@ DialogInfo::DialogInfo(QWidget *parent) :
|
@@ -33,7 +33,6 @@ DialogInfo::DialogInfo(QWidget *parent) :
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
connect(pushClose, SIGNAL(clicked()), this, SLOT(close()));
|
connect(pushClose, SIGNAL(clicked()), this, SLOT(close()));
|
||||||
|
@ -13,44 +13,99 @@ index 3302f55..b64f414 100755
|
||||||
|
|
||||||
QString appVersion;
|
QString appVersion;
|
||||||
QString magickVersion;
|
QString magickVersion;
|
||||||
@@ -63,8 +62,3 @@ void DialogInfo::openFacebookPage()
|
@@ -66,62 +65,4 @@ DialogInfo::DialogInfo(QWidget *parent) :
|
||||||
QDesktopServices::openUrl(QUrl("https://www.facebook.com/converseen", QUrl::TolerantMode));
|
.arg(qtVersionStrTr)
|
||||||
|
.arg(QT_VERSION_STR);
|
||||||
|
labelQtVersion->setText(qt_versionString);
|
||||||
|
-
|
||||||
|
- // This section generates a Text + Png pixmap icon for the donazion button!
|
||||||
|
-
|
||||||
|
- QString donateText = tr("Make a Donation!");
|
||||||
|
- QString donateDescriptionText = tr("Donate using PayPal, Ko-Fi or Cryptocurrencies.");
|
||||||
|
-
|
||||||
|
- QString htmlDonationText = QString(R"(
|
||||||
|
- <style>
|
||||||
|
- table {
|
||||||
|
- border-collapse: collapse;
|
||||||
|
- }
|
||||||
|
- td {
|
||||||
|
- text-align: center;
|
||||||
|
- vertical-align: middle;
|
||||||
|
- padding: 5px;
|
||||||
|
- }
|
||||||
|
- </style>
|
||||||
|
-
|
||||||
|
- <table>
|
||||||
|
- <tr>
|
||||||
|
- <td><img src=':/Images/res/heart.png' width='52' height='52'></td>
|
||||||
|
- <td>
|
||||||
|
- <span style='font-weight: bold; font-size:18pt; text-align: center;'>%1</span><br />
|
||||||
|
- <span style='font-style: italic; font-size:8pt; text-align: center;'>%2</span>
|
||||||
|
- </td>
|
||||||
|
- </tr>
|
||||||
|
- </table>
|
||||||
|
- )")
|
||||||
|
- .arg(donateText, donateDescriptionText);
|
||||||
|
-
|
||||||
|
- QTextDocument donateHtmlText;
|
||||||
|
- donateHtmlText.setHtml(htmlDonationText);
|
||||||
|
-
|
||||||
|
- QPixmap pixmapDonationText(donateHtmlText.size().width(), donateHtmlText.size().height());
|
||||||
|
- pixmapDonationText.fill( Qt::transparent );
|
||||||
|
-
|
||||||
|
- QPainter painter( &pixmapDonationText );
|
||||||
|
- painter.setRenderHint(QPainter::Antialiasing, true);
|
||||||
|
-
|
||||||
|
- donateHtmlText.drawContents(&painter, pixmapDonationText.rect());
|
||||||
|
-
|
||||||
|
- QIcon donateButtonIcon(pixmapDonationText);
|
||||||
|
- pushDonatePayPal->setIcon(donateButtonIcon);
|
||||||
|
- pushDonatePayPal->setIconSize(pixmapDonationText.rect().size());
|
||||||
|
-
|
||||||
|
- adjustSize();
|
||||||
|
- this->resize(512, 800);
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-void DialogInfo::openFacebookPage()
|
||||||
|
-{
|
||||||
|
- QDesktopServices::openUrl(QUrl("https://www.facebook.com/converseen", QUrl::TolerantMode));
|
||||||
}
|
}
|
||||||
|
-
|
||||||
-void DialogInfo::on_pushDonatePayPal_clicked()
|
-void DialogInfo::on_pushDonatePayPal_clicked()
|
||||||
-{
|
-{
|
||||||
- QDesktopServices::openUrl(QUrl("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HQA6TBT5354FC", QUrl::TolerantMode));
|
- QDesktopServices::openUrl(QUrl("https://converseen.fasterland.net/donate/", QUrl::TolerantMode));
|
||||||
-}
|
-}
|
||||||
-
|
-
|
||||||
diff --git a/src/dialoginfo.h b/src/dialoginfo.h
|
diff --git a/src/dialoginfo.h b/src/dialoginfo.h
|
||||||
index 4c13776..f1b7ea3 100755
|
index 4d8ba15..ef6afa9 100755
|
||||||
--- a/src/dialoginfo.h
|
--- a/src/dialoginfo.h
|
||||||
+++ b/src/dialoginfo.h
|
+++ b/src/dialoginfo.h
|
||||||
@@ -33,7 +33,6 @@ public:
|
@@ -32,8 +32,6 @@ public:
|
||||||
|
DialogInfo(QWidget *parent = 0);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void openFacebookPage();
|
- void openFacebookPage();
|
||||||
- void on_pushDonatePayPal_clicked();
|
- void on_pushDonatePayPal_clicked();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // DIALOGINFO_H
|
#endif // DIALOGINFO_H
|
||||||
diff --git a/src/mainwindowimpl.cpp b/src/mainwindowimpl.cpp
|
diff --git a/src/mainwindowimpl.cpp b/src/mainwindowimpl.cpp
|
||||||
index 83a365f..9a44492 100755
|
index 71ddc2c..bd4294b 100755
|
||||||
--- a/src/mainwindowimpl.cpp
|
--- a/src/mainwindowimpl.cpp
|
||||||
+++ b/src/mainwindowimpl.cpp
|
+++ b/src/mainwindowimpl.cpp
|
||||||
@@ -162,7 +162,6 @@ void MainWindowImpl::createActions()
|
@@ -163,7 +163,6 @@ void MainWindowImpl::createActions()
|
||||||
connect(actionConvert, SIGNAL(triggered()), this, SLOT(elabora()));
|
connect(actionConvert, SIGNAL(triggered()), this, SLOT(elabora()));
|
||||||
|
|
||||||
connect(actionInfo, SIGNAL(triggered()), this, SLOT(about()));
|
connect(actionInfo, SIGNAL(triggered()), this, SLOT(about()));
|
||||||
- connect(actionDonatePaypal, SIGNAL(triggered()), this, SLOT(openPaypalLink()));
|
- connect(actionDonatePaypal, SIGNAL(triggered()), this, SLOT(openPaypalLink()));
|
||||||
connect(actionReportBug, SIGNAL(triggered()), this, SLOT(bugReport()));
|
connect(actionReportBug, SIGNAL(triggered()), this, SLOT(bugReport()));
|
||||||
}
|
connect(actionCheckForUpdates, SIGNAL(triggered()), this, SLOT(checkForUpdates()));
|
||||||
|
connect(actionHelp, SIGNAL(triggered()), this, SLOT(onlineHelp()));
|
||||||
diff --git a/ui/dialoginfo.ui b/ui/dialoginfo.ui
|
diff --git a/ui/dialoginfo.ui b/ui/dialoginfo.ui
|
||||||
index b2c7788..20b9d9d 100755
|
index 2878670..0535a85 100755
|
||||||
--- a/ui/dialoginfo.ui
|
--- a/ui/dialoginfo.ui
|
||||||
+++ b/ui/dialoginfo.ui
|
+++ b/ui/dialoginfo.ui
|
||||||
@@ -254,122 +254,6 @@ p, li { white-space: pre-wrap; }
|
@@ -273,146 +273,6 @@ p, li { white-space: pre-wrap; }
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -69,25 +124,53 @@ index b2c7788..20b9d9d 100755
|
||||||
- <item>
|
- <item>
|
||||||
- <layout class="QHBoxLayout" name="horizontalLayout_4">
|
- <layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
- <item>
|
- <item>
|
||||||
|
- <spacer name="horizontalSpacer_4">
|
||||||
|
- <property name="orientation">
|
||||||
|
- <enum>Qt::Horizontal</enum>
|
||||||
|
- </property>
|
||||||
|
- <property name="sizeHint" stdset="0">
|
||||||
|
- <size>
|
||||||
|
- <width>40</width>
|
||||||
|
- <height>20</height>
|
||||||
|
- </size>
|
||||||
|
- </property>
|
||||||
|
- </spacer>
|
||||||
|
- </item>
|
||||||
|
- <item>
|
||||||
- <widget class="QPushButton" name="pushDonatePayPal">
|
- <widget class="QPushButton" name="pushDonatePayPal">
|
||||||
|
- <property name="cursor">
|
||||||
|
- <cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
- </property>
|
||||||
- <property name="text">
|
- <property name="text">
|
||||||
- <string/>
|
- <string/>
|
||||||
- </property>
|
- </property>
|
||||||
- <property name="icon">
|
|
||||||
- <iconset resource="../resources.qrc">
|
|
||||||
- <normaloff>:/Images/res/btn_donateCC_LG.png</normaloff>:/Images/res/btn_donateCC_LG.png</iconset>
|
|
||||||
- </property>
|
|
||||||
- <property name="iconSize">
|
- <property name="iconSize">
|
||||||
- <size>
|
- <size>
|
||||||
- <width>150</width>
|
- <width>150</width>
|
||||||
- <height>50</height>
|
- <height>50</height>
|
||||||
- </size>
|
- </size>
|
||||||
- </property>
|
- </property>
|
||||||
|
- <property name="autoDefault">
|
||||||
|
- <bool>false</bool>
|
||||||
|
- </property>
|
||||||
- <property name="flat">
|
- <property name="flat">
|
||||||
- <bool>true</bool>
|
- <bool>true</bool>
|
||||||
- </property>
|
- </property>
|
||||||
- </widget>
|
- </widget>
|
||||||
- </item>
|
- </item>
|
||||||
|
- <item>
|
||||||
|
- <spacer name="horizontalSpacer_5">
|
||||||
|
- <property name="orientation">
|
||||||
|
- <enum>Qt::Horizontal</enum>
|
||||||
|
- </property>
|
||||||
|
- <property name="sizeHint" stdset="0">
|
||||||
|
- <size>
|
||||||
|
- <width>40</width>
|
||||||
|
- <height>20</height>
|
||||||
|
- </size>
|
||||||
|
- </property>
|
||||||
|
- </spacer>
|
||||||
|
- </item>
|
||||||
- </layout>
|
- </layout>
|
||||||
- </item>
|
- </item>
|
||||||
- </layout>
|
- </layout>
|
||||||
|
@ -141,6 +224,9 @@ index b2c7788..20b9d9d 100755
|
||||||
- <height>32</height>
|
- <height>32</height>
|
||||||
- </size>
|
- </size>
|
||||||
- </property>
|
- </property>
|
||||||
|
- <property name="autoDefault">
|
||||||
|
- <bool>false</bool>
|
||||||
|
- </property>
|
||||||
- <property name="flat">
|
- <property name="flat">
|
||||||
- <bool>true</bool>
|
- <bool>true</bool>
|
||||||
- </property>
|
- </property>
|
||||||
|
@ -162,35 +248,28 @@ index b2c7788..20b9d9d 100755
|
||||||
- </spacer>
|
- </spacer>
|
||||||
- </item>
|
- </item>
|
||||||
- </layout>
|
- </layout>
|
||||||
- </item>
|
|
||||||
- <item>
|
|
||||||
- <widget class="Line" name="line">
|
|
||||||
- <property name="orientation">
|
|
||||||
- <enum>Qt::Horizontal</enum>
|
|
||||||
- </property>
|
|
||||||
- </widget>
|
|
||||||
- </item>
|
- </item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="Line" name="line">
|
||||||
<property name="text">
|
<property name="orientation">
|
||||||
diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui
|
diff --git a/ui/mainwindow.ui b/ui/mainwindow.ui
|
||||||
index 28df8cc..0ee7f37 100755
|
index 24bda6f..e8a072d 100755
|
||||||
--- a/ui/mainwindow.ui
|
--- a/ui/mainwindow.ui
|
||||||
+++ b/ui/mainwindow.ui
|
+++ b/ui/mainwindow.ui
|
||||||
@@ -1334,18 +1334,6 @@ p, li { white-space: pre-wrap; }
|
@@ -1408,18 +1408,6 @@ p, li { white-space: pre-wrap; }
|
||||||
<string>F1</string>
|
<string>&About</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
- <action name="actionDonatePaypal">
|
- <action name="actionDonatePaypal">
|
||||||
- <property name="icon">
|
- <property name="icon">
|
||||||
- <iconset resource="../resources.qrc">
|
- <iconset resource="../resources.qrc">
|
||||||
- <normaloff>:/Images/res/paypal_mini.png</normaloff>:/Images/res/paypal_mini.png</iconset>
|
- <normaloff>:/Images/res/heart.png</normaloff>:/Images/res/heart.png</iconset>
|
||||||
- </property>
|
- </property>
|
||||||
- <property name="text">
|
- <property name="text">
|
||||||
- <string>&Donate via Paypal</string>
|
- <string>&Donate!</string>
|
||||||
- </property>
|
- </property>
|
||||||
- <property name="toolTip">
|
- <property name="toolTip">
|
||||||
- <string>Donate via Paypal</string>
|
- <string>Donate via Paypal, Ko-Fi, Cryptocurrencies</string>
|
||||||
- </property>
|
- </property>
|
||||||
- </action>
|
- </action>
|
||||||
<action name="actionReportBug">
|
<action name="actionReportBug">
|
||||||
|
|
Reference in a new issue