Skip to content

Commit

Permalink
some fixes for build with new Qt and CPP version;
Browse files Browse the repository at this point in the history
  • Loading branch information
F1ash committed May 18, 2021
1 parent 0d338b0 commit e4c832b
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 28 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ endif ()
set (PROJECT_NAME ${PROJ_PREFIX}-virt-manager)
set (VERSION_MAJOR 0)
set (VERSION_MINOR 72)
set (VERSION_MICRO 97)
set (VERSION_MICRO 98)

set (QTERM_UI_SRC
src/vm_viewer/qterminal/forms/qterminal.ui
Expand Down
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,7 @@ some fixes;
fixed deprecated methods;
fixed the close of application;
fixes for new krdc version;

0.72.98 :
some fixes for build with new Qt and CPP version;
donation card corrected;
5 changes: 4 additions & 1 deletion qt-virt-manager.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global binname qt5-virt-manager

Name: qt-virt-manager
Version: 0.72.97
Version: 0.72.98
Release: 1%{?dist}
Summary: Qt Virtual Machine Manager

Expand Down Expand Up @@ -114,6 +114,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/qt5-remote-viewer.de


%changelog
* Tue May 18 2021 Fl@sh <[email protected]> - 0.72.98-1
- version updated;

* Tue Dec 22 2020 Fl@sh <[email protected]> - 0.72.97-1
- version updated;

Expand Down
53 changes: 29 additions & 24 deletions src/menubar/donate_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ Donate_Dialog::Donate_Dialog(QWidget *parent) :
QDialog(parent)
{
setWindowTitle(tr("Donate"));
donate1 = new Click_Label(this);
donate1->setToolTip(tr("Donate on Yandex.Money"));
donate1->setOpenExternalLinks(true);
donate1->setPixmap(QIcon::fromTheme("yandex_money").pixmap(128));
//donate1 = new Click_Label(this);
//donate1->setToolTip(tr("Donate on Yandex.Money"));
//donate1->setOpenExternalLinks(true);
//donate1->setPixmap(QIcon::fromTheme("yandex_money").pixmap(128));
donate2 = new Click_Label(this);
donate2->setToolTip(tr("Donate on MasterCard\nCopy card number to Clipboard"));
donate2->setOpenExternalLinks(true);
donate2->setPixmap(QIcon::fromTheme("mastercard").pixmap(128));
donate3 = new Click_Label(this);
donate3->setToolTip(tr("Donate Bitcoin\nCopy to Clipboard"));
donate3->setOpenExternalLinks(true);
donate3->setPixmap(QIcon::fromTheme("electrum").pixmap(128));
donate4 = new Click_Label(this);
donate4->setToolTip(tr("Donate BitcoinCash\nCopy to Clipboard"));
donate4->setOpenExternalLinks(true);
donate4->setPixmap(QIcon::fromTheme("electron-cash").pixmap(128));
//donate3 = new Click_Label(this);
//donate3->setToolTip(tr("Donate Bitcoin\nCopy to Clipboard"));
//donate3->setOpenExternalLinks(true);
//donate3->setPixmap(QIcon::fromTheme("electrum").pixmap(128));
//donate4 = new Click_Label(this);
//donate4->setToolTip(tr("Donate BitcoinCash\nCopy to Clipboard"));
//donate4->setOpenExternalLinks(true);
//donate4->setPixmap(QIcon::fromTheme("electron-cash").pixmap(128));

donateLayout = new QGridLayout(this);
donateLayout->addWidget(donate1, 0, 0, Qt::AlignCenter);
//donateLayout->addWidget(donate1, 0, 0, Qt::AlignCenter);
donateLayout->addWidget(donate2, 0, 1, Qt::AlignCenter);
donateLayout->addWidget(donate3, 1, 0, Qt::AlignCenter);
donateLayout->addWidget(donate4, 1, 1, Qt::AlignCenter);
//donateLayout->addWidget(donate3, 1, 0, Qt::AlignCenter);
//donateLayout->addWidget(donate4, 1, 1, Qt::AlignCenter);
donateWdg = new QWidget(this);
donateWdg->setLayout(donateLayout);
//again = new QCheckBox(tr("don't show again"), this);
Expand All @@ -39,14 +39,14 @@ Donate_Dialog::Donate_Dialog(QWidget *parent) :
//commonLayout->addWidget(again);
setLayout(commonLayout);

connect(donate1, SIGNAL(released()),
this, SLOT(donationClicked()));
//connect(donate1, SIGNAL(released()),
// this, SLOT(donationClicked()));
connect(donate2, SIGNAL(released()),
this, SLOT(donationClicked()));
connect(donate3, SIGNAL(released()),
this, SLOT(donationClicked()));
connect(donate4, SIGNAL(released()),
this, SLOT(donationClicked()));
//connect(donate3, SIGNAL(released()),
// this, SLOT(donationClicked()));
//connect(donate4, SIGNAL(released()),
// this, SLOT(donationClicked()));
}

//bool Donate_Dialog::showAgain() const
Expand All @@ -58,7 +58,7 @@ Donate_Dialog::Donate_Dialog(QWidget *parent) :
void Donate_Dialog::donationClicked()
{
QString url;
if ( sender()==donate1 ) {
/*if ( sender()==donate1 ) {
donate1->setEnabled(false);
url = QString("https://money.yandex.ru/embed/donate.xml\
?account=410014229313543&quickpay=donate&payment-type-choice=on\
Expand All @@ -67,11 +67,15 @@ void Donate_Dialog::donationClicked()
&project-site=http://f1ash.github.io/qt-virt-manager&button-text=01\
&successURL=");
QDesktopServices::openUrl(QUrl(url));
} else if ( sender()==donate2 ) {
} else */

if ( sender()==donate2 ) {
donate2->setEnabled(false);
QClipboard *c = QApplication::clipboard();
c->setText("5469400029117988", QClipboard::Clipboard);
} else if ( sender()==donate3 ) {
}

/*else if ( sender()==donate3 ) {
donate3->setEnabled(false);
QClipboard *c = QApplication::clipboard();
c->setText(
Expand All @@ -84,4 +88,5 @@ void Donate_Dialog::donationClicked()
"bitcoincash:qr7qepftr5nrl0t8p0t8fpg6cq2c9fycmveyv3fsff",
QClipboard::Clipboard);
};
*/
}
5 changes: 3 additions & 2 deletions src/menubar/donate_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ class Donate_Dialog : public QDialog
//bool showAgain() const;

private:
Click_Label *donate1, *donate2,
*donate3, *donate4;
Click_Label //*donate1,
*donate2;
//*donate3, *donate4;
QGridLayout *donateLayout;
QWidget *donateWdg;
//QCheckBox *again;
Expand Down

0 comments on commit e4c832b

Please sign in to comment.