Config export
This commit is contained in:
parent
de67f244da
commit
e3fb239de9
28 changed files with 1247 additions and 349 deletions
|
@ -9,6 +9,19 @@ ServerWidget::ServerWidget(const QJsonObject &server, bool isDefault, QWidget *p
|
|||
ui(new Ui::ServerWidget)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->pushButton_connect->hide();
|
||||
ui->pushButton_share->hide();
|
||||
|
||||
//ui->pushButton_settings->hide();\\
|
||||
|
||||
ui->pushButton_settings->setGraphicsEffect(&eff);
|
||||
animation.setTargetObject(&eff);
|
||||
animation.setPropertyName("opacity");
|
||||
animation.setDuration(150);
|
||||
animation.setEasingCurve(QEasingCurve::InOutQuad);
|
||||
|
||||
eff.setOpacity(0);
|
||||
|
||||
QString desc = server.value(config_key::description).toString();
|
||||
QString address = server.value(config_key::hostName).toString();
|
||||
|
||||
|
@ -29,3 +42,20 @@ ServerWidget::~ServerWidget()
|
|||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void ServerWidget::enterEvent(QEvent *e)
|
||||
{
|
||||
animation.setStartValue(0);
|
||||
animation.setEndValue(1);
|
||||
|
||||
animation.start();
|
||||
}
|
||||
|
||||
void ServerWidget::leaveEvent(QEvent *e)
|
||||
{
|
||||
animation.setStartValue(1);
|
||||
animation.setEndValue(0);
|
||||
|
||||
animation.start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue