diff --git a/src/module/cursorthemefeature.cpp b/src/module/cursorthemefeature.cpp index 540bb8b..8c690e9 100644 --- a/src/module/cursorthemefeature.cpp +++ b/src/module/cursorthemefeature.cpp @@ -536,8 +536,16 @@ void cursorAddIconWidget::paintEvent(QPaintEvent *event) Q_UNUSED(event); QPainter painter(this); - painter.setPen(Qt::DashLine); - painter.drawRect(rect().adjusted(1, 1, -1, -1)); + QPen *m_pen = new QPen(); + m_pen->setColor(QColor(Qt::gray)); + m_pen->setStyle(Qt::DashLine); + painter.setPen(*m_pen); + + int radius = 7; + QPainterPath path; + path.addRoundedRect(rect().adjusted(1,1,-1,-1), radius, radius); + + painter.drawPath(path); } void cursorAddIconWidget::dragEnterEvent(QDragEnterEvent *event) diff --git a/src/module/globalthemefeature.cpp b/src/module/globalthemefeature.cpp index 22810f2..7b209f8 100644 --- a/src/module/globalthemefeature.cpp +++ b/src/module/globalthemefeature.cpp @@ -677,8 +677,16 @@ void addPicWidget::paintEvent(QPaintEvent *event) Q_UNUSED(event); QPainter painter(this); - painter.setPen(Qt::DashLine); - painter.drawRect(rect().adjusted(1, 1, -1, -1)); + QPen *m_pen = new QPen(); + m_pen->setColor(QColor(Qt::gray)); + m_pen->setStyle(Qt::DashLine); + painter.setPen(*m_pen); + + int radius = 7; + QPainterPath path; + path.addRoundedRect(rect().adjusted(1,1,-1,-1), radius, radius); + + painter.drawPath(path); } void addPicWidget::dragEnterEvent(QDragEnterEvent *event) diff --git a/src/module/grubthemefeature.cpp b/src/module/grubthemefeature.cpp index 78f27e4..fe64702 100644 --- a/src/module/grubthemefeature.cpp +++ b/src/module/grubthemefeature.cpp @@ -318,8 +318,16 @@ void grubAddPicWidget::paintEvent(QPaintEvent *event) Q_UNUSED(event); QPainter painter(this); - painter.setPen(Qt::DashLine); - painter.drawRect(rect().adjusted(1, 1, -1, -1)); + QPen *m_pen = new QPen(); + m_pen->setColor(QColor(Qt::gray)); + m_pen->setStyle(Qt::DashLine); + painter.setPen(*m_pen); + + int radius = 7; + QPainterPath path; + path.addRoundedRect(rect().adjusted(1,1,-1,-1), radius, radius); + + painter.drawPath(path); } void grubAddPicWidget::dragEnterEvent(QDragEnterEvent *event) diff --git a/src/module/iconwidgetfeature.cpp b/src/module/iconwidgetfeature.cpp index 5057ffd..e38b397 100644 --- a/src/module/iconwidgetfeature.cpp +++ b/src/module/iconwidgetfeature.cpp @@ -900,8 +900,16 @@ void addIconWidget::paintEvent(QPaintEvent *event) Q_UNUSED(event); QPainter painter(this); - painter.setPen(Qt::DashLine); - painter.drawRect(rect().adjusted(1, 1, -1, -1)); + QPen *m_pen = new QPen(); + m_pen->setColor(QColor(Qt::gray)); + m_pen->setStyle(Qt::DashLine); + painter.setPen(*m_pen); + + int radius = 7; + QPainterPath path; + path.addRoundedRect(rect().adjusted(1,1,-1,-1), radius, radius); + + painter.drawPath(path); } void addIconWidget::dragEnterEvent(QDragEnterEvent *event) diff --git a/src/module/iconwidgetfeature.h b/src/module/iconwidgetfeature.h index ba0f4bd..654b2fc 100644 --- a/src/module/iconwidgetfeature.h +++ b/src/module/iconwidgetfeature.h @@ -27,6 +27,7 @@ #include #include #include +#include class MainInterFaceFeature : public QWidget { diff --git a/src/module/plymouththemefeature.cpp b/src/module/plymouththemefeature.cpp index e93f70d..83214e3 100644 --- a/src/module/plymouththemefeature.cpp +++ b/src/module/plymouththemefeature.cpp @@ -401,8 +401,16 @@ void plymouthAddPicWidget::paintEvent(QPaintEvent *event) Q_UNUSED(event); QPainter painter(this); - painter.setPen(Qt::DashLine); - painter.drawRect(rect().adjusted(1, 1, -1, -1)); + QPen *m_pen = new QPen(); + m_pen->setColor(QColor(Qt::gray)); + m_pen->setStyle(Qt::DashLine); + painter.setPen(*m_pen); + + int radius = 7; + QPainterPath path; + path.addRoundedRect(rect().adjusted(1,1,-1,-1), radius, radius); + + painter.drawPath(path); } void plymouthAddPicWidget::dragEnterEvent(QDragEnterEvent *event)