Skip to content

Commit

Permalink
merge(代码合并):合并主线代码,更新upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
jzxc95 committed Sep 20, 2023
2 parents 31a64fc + 520bd25 commit c051d72
Show file tree
Hide file tree
Showing 197 changed files with 11,439 additions and 4,326 deletions.
20 changes: 4 additions & 16 deletions kylin-nm.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,12 @@ TEMPLATE = subdirs

CONFIG += \
ordered \
qt
qt \

SUBDIRS = \
plugins/plugin.pro \
src-vpn/src-vpn.pro \
src
src \
sys-dbus-register \

TRANSLATIONS += \
translations/kylin-nm_zh_CN.ts \
translations/kylin-nm_tr.ts \
translations/kylin-nm_bo.ts \
translations/kylin-nm_bo_CN.ts

CONFIG(release, debug|release) {
!system($$PWD/translate_generation.sh): error("Failed to generate translation")
}

qm_files.path = $${PREFIX}/share/kylin-nm/kylin-nm/
qm_files.files = translations/*.qm

INSTALLS += qm_files \
QT += widgets
11 changes: 5 additions & 6 deletions plugins/component/AddBtn/addnetbtn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,16 @@ void AddNetBtn::leaveEvent(QEvent *event){

void AddNetBtn::paintEvent(QPaintEvent *event)
{
// QPalette pal = qApp->palette();

QPainter painter(this);
painter.setRenderHint(QPainter:: Antialiasing, true); //设置渲染,启动反锯齿
painter.setPen(Qt::NoPen);
painter.setBrush(this->palette().base().color());

// QColor color = pal.color(QPalette::Button);
// color.setAlphaF(0.5);
// pal.setColor(QPalette::Button, color);
// this->setPalette(pal);
QPalette pal = qApp->palette();
QColor color = pal.color(QPalette::Button);
color.setAlphaF(0.5);
pal.setColor(QPalette::Button, color);
this->setPalette(pal);

QRect rect = this->rect();
QPainterPath path;
Expand Down
1 change: 0 additions & 1 deletion plugins/component/InfoButton/infobutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <QPainter>
#include <QApplication>
#include <QDebug>
#include <QPainterPath>

#define BUTTON_SIZE 36,36
#define ICON_SIZE 16,16
Expand Down
8 changes: 7 additions & 1 deletion plugins/mobilehotspot/mobilehotspot.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ CONFIG += plugin

TARGET = $$qtLibraryTarget(mobilehotspot)
DESTDIR = ../..

CONFIG(release, debug|release) {
!system($$PWD/translate_generation.sh): error("Failed to generate translation")
}

target.path = $$[QT_INSTALL_LIBS]/ukui-control-center
trans.files = translations/*
trans.path = /usr/share/kylin-nm/mobilehotspot/
Expand Down Expand Up @@ -50,4 +55,5 @@ TRANSLATIONS += \
translations/tr.ts \
translations/bo.ts\
translations/bo_CN.ts \
translations/en_US.ts
translations/en_US.ts \
translations/mn.ts
Loading

0 comments on commit c051d72

Please sign in to comment.