Skip to content

Commit

Permalink
一些功能添加与界面调整
Browse files Browse the repository at this point in the history
  • Loading branch information
LapplandSP committed Sep 10, 2022
1 parent 2a62e48 commit 0316152
Show file tree
Hide file tree
Showing 36 changed files with 1,439 additions and 583 deletions.
9 changes: 9 additions & 0 deletions QtAdb/QtAdb.pro
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
QT += core gui
QT += serialport
QT += core5compat
# QMAKE_LFLAGS += /MANIFESTUAC:\"level=\'requireAdministrator\' uiAccess=\'false\'\"

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11
Expand All @@ -10,9 +13,11 @@ CONFIG += c++11

SOURCES += \
about.cpp \
abstract/comboboxlistwidget.cpp \
adbprocess.cpp \
animationwidget.cpp \
basepage.cpp \
devitem.cpp \
indexlistitem.cpp \
main.cpp \
mainwindow.cpp \
Expand Down Expand Up @@ -52,9 +57,11 @@ SOURCES += \

HEADERS += \
about.h \
abstract/comboboxlistwidget.h \
adbprocess.h \
animationwidget.h \
basepage.h \
devitem.h \
indexlistitem.h \
mainwindow.h \
monitor.h \
Expand Down Expand Up @@ -94,6 +101,7 @@ HEADERS += \
FORMS += \
about.ui \
basepage.ui \
devitem.ui \
indexlistitem.ui \
mainwindow.ui \
monitor.ui \
Expand Down Expand Up @@ -134,6 +142,7 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
cfgs.qrc \
ico.qrc \
styles.qrc

Expand Down
28 changes: 20 additions & 8 deletions QtAdb/about.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ about::about(QWidget *parent) :
shadowEffect_btn_money->setOffset(0,0);
shadowEffect_btn_money->setColor(Qt::gray);
shadowEffect_btn_money->setBlurRadius(5);
ui->btn_money->setGraphicsEffect(shadowEffect_btn_money);
//ui->btn_money->setGraphicsEffect(shadowEffect_btn_money);

QGraphicsDropShadowEffect *shadowEffect_btn_money2 = new QGraphicsDropShadowEffect(this);
shadowEffect_btn_money2->setOffset(0,0);
shadowEffect_btn_money2->setColor(Qt::green);
shadowEffect_btn_money2->setColor(QColorConstants::Svg::orange);
shadowEffect_btn_money2->setBlurRadius(5);
ui->btn_money_2->setGraphicsEffect(shadowEffect_btn_money2);
ui->btn_money_2->setGraphicsEffect(shadowEffect_btn_money2);/*
QGraphicsDropShadowEffect *shadowEffect_btn_money3 = new QGraphicsDropShadowEffect(this);
shadowEffect_btn_money3->setOffset(0,0);
shadowEffect_btn_money3->setColor(Qt::gray);
Expand All @@ -45,7 +46,13 @@ about::about(QWidget *parent) :
shadowEffect_btn_money4->setOffset(0,0);
shadowEffect_btn_money4->setColor(Qt::gray);
shadowEffect_btn_money4->setBlurRadius(5);
ui->btn_money_4->setGraphicsEffect(shadowEffect_btn_money4);
ui->btn_money_4->setGraphicsEffect(shadowEffect_btn_money4);*/

QGraphicsDropShadowEffect *shadowEffect_btn_qq = new QGraphicsDropShadowEffect(this);
shadowEffect_btn_qq->setOffset(0,0);
shadowEffect_btn_qq->setColor(Qt::gray);
shadowEffect_btn_qq->setBlurRadius(5);
ui->btn_qq_dis->setGraphicsEffect(shadowEffect_btn_qq);

QGraphicsDropShadowEffect *shadowEffect_btn_version = new QGraphicsDropShadowEffect(this);
shadowEffect_btn_version->setOffset(0,0);
Expand All @@ -55,15 +62,15 @@ about::about(QWidget *parent) :

QGraphicsDropShadowEffect *shadowEffect_btn_links = new QGraphicsDropShadowEffect(this);
shadowEffect_btn_links->setOffset(0,0);
shadowEffect_btn_links->setColor(Qt::gray);
shadowEffect_btn_links->setColor(QColorConstants::Svg::skyblue);
shadowEffect_btn_links->setBlurRadius(5);
ui->btn_links->setGraphicsEffect(shadowEffect_btn_links);


/*
ui->btn_money->hide();
ui->btn_money_3->hide();
ui->btn_money_4->hide();

ui->btn_money_4->hide();*/
//this->setStyleSheet("QToolTip{border:1px solid #BDBDBD; background-color: #ffffff; color:rgba(117, 117, 117, 0.9);font-family: MiSans Medium; font-size:12px;border-radius:4px;}");
//this->setStyleSheet("QToolTip{border:1px solid #BDBDBD; background-color: #ffffff; color:rgba(117, 117, 117, 0.9);font-family: MiSans Medium; font-size:12px;border-radius:4px;}");
}
Expand Down Expand Up @@ -98,7 +105,6 @@ void about::on_btn_money_2_clicked()
payPage->show();
}


void about::on_btn_links_clicked()
{
links *linksPage = new links();
Expand All @@ -111,3 +117,9 @@ void about::on_btn_version_clicked()
QDesktopServices::openUrl(QUrl("https://lapplandsp.github.io/QtAdb-Pages/qa/", QUrl::TolerantMode));
}


void about::on_btn_qq_dis_clicked()
{
QDesktopServices::openUrl(QUrl("https://pd.qq.com/s/k96ej1", QUrl::TolerantMode));
}

2 changes: 2 additions & 0 deletions QtAdb/about.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ private slots:

void on_btn_version_clicked();

void on_btn_qq_dis_clicked();

private:
Ui::about *ui;
};
Expand Down
Loading

0 comments on commit 0316152

Please sign in to comment.