-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from HTHcoin/review-branch
Review branch
- Loading branch information
Showing
43 changed files
with
1,824 additions
and
1,615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
prefix=/home/devilking6105/HelpTheHomelessCoin/depends/x86_64-w64-mingw32 | ||
prefix=/ | ||
exec_prefix=${prefix} | ||
libdir=${exec_prefix}/lib | ||
includedir=${prefix}/include | ||
|
||
Name: HelpTheHomeless consensus library | ||
Description: Library for the Bitcoin consensus protocol. | ||
Version: 0.14.0 | ||
Version: 0.14.1 | ||
Libs: -L${libdir} -ldashconsensus | ||
Cflags: -I${includedir} | ||
Requires.private: libcrypto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#include "annwidget.h" | ||
#include "ui_annwidget.h" | ||
#include <QDesktopServices> | ||
#include <QUrl> | ||
#include <QMessageBox> | ||
|
||
annWidget::annWidget(QWidget *parent) : | ||
QWidget(parent), | ||
ui(new Ui::annWidget) | ||
{ | ||
ui->setupUi(this); | ||
ui->titleLabel->setText("ann.title"); | ||
ui->infoLabel->setText("ann.info"); | ||
ui->verticalLayout_2->setAlignment(Qt::AlignTop); | ||
} | ||
|
||
void annWidget::setData(AnnData a){ | ||
|
||
ui->titleLabel->setText(a.title); | ||
ui->infoLabel->setText(a.info); | ||
ui->linkButton->setText(a.link); | ||
|
||
ui->imageLabel->clear(); | ||
ui->imageLabel->setPixmap(a.image); | ||
ui->imageLabel->setScaledContents(true); | ||
|
||
} | ||
|
||
QSize annWidget::getSize(){ | ||
|
||
//int height = ui->titleLabel->height() + ui->infoLabel->height() + 18; | ||
|
||
int height = ui->verticalLayout->sizeHint().height() + 6; | ||
if(height<75) height=75; | ||
int width = ui->titleLabel->height() + ui->imageLabel->height() + 12; | ||
return QSize(width, height); | ||
|
||
} | ||
QSize annWidget::sizeHint() const { | ||
int height = ui->verticalLayout->sizeHint().height() + 6; | ||
if(height<80) height=80; | ||
int width = ui->titleLabel->height() + ui->imageLabel->height() + 12; | ||
return QSize(width, height); | ||
} | ||
|
||
|
||
annWidget::~annWidget() | ||
{ | ||
delete ui; | ||
} | ||
|
||
void annWidget::on_linkButton_clicked() | ||
{ | ||
QDesktopServices::openUrl ( QUrl( ui->linkButton->text()) ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef ANNWIDGET_H | ||
#define ANNWIDGET_H | ||
|
||
#include <QWidget> | ||
|
||
|
||
class AnnData{ | ||
|
||
public: | ||
QPixmap image; | ||
QString title; | ||
QString info; | ||
QString imageURL; | ||
int height; | ||
QString link; | ||
}; | ||
|
||
|
||
namespace Ui { | ||
class annWidget; | ||
|
||
|
||
|
||
} | ||
|
||
|
||
class annWidget : public QWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit annWidget(QWidget *parent = 0); | ||
~annWidget(); | ||
void setData(AnnData a); | ||
QSize getSize(); | ||
QSize sizeHint() const; | ||
|
||
private Q_SLOTS: | ||
void on_linkButton_clicked(); | ||
|
||
private: | ||
Ui::annWidget *ui; | ||
}; | ||
|
||
#endif // ANNWIDGET_H |
Oops, something went wrong.