Skip to content

Commit

Permalink
添加QQ交流群
Browse files Browse the repository at this point in the history
  • Loading branch information
iwxyi committed Jun 15, 2022
1 parent 4addd7b commit 659b5b8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@

随手开发的聊天辅助工具,通过方便快捷的交互方式,提高用户的办公效率。

> 本程序旨在通知悬浮窗,并非完全替代 QQ/TIM,建议结合使用。
QQ交流群:[557544797](https://qm.qq.com/cgi-bin/qm/qr?k=L0lcp-KvdNkJDUqEVi6j5hBpGdD77lK5&jump_from=webapi)

> 本程序旨在通知悬浮窗,并非完全替代 QQ/TIM,建议结合使用。

## 功能
Expand Down
16 changes: 15 additions & 1 deletion widgets/settings/aboutwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ AboutWidget::AboutWidget(QWidget *parent) :
ui->githubButton->adjustSize();
ui->githubButton->setBorderWidth(1);
ui->githubButton->setBorderColor(Qt::gray);

ui->githubButton->setFixedForeSize();

ui->qqButton->adjustSize();
ui->qqButton->setBorderWidth(1);
ui->qqButton->setBorderColor(Qt::gray);
ui->qqButton->setFixedForeSize();
}

AboutWidget::~AboutWidget()
Expand All @@ -34,3 +38,13 @@ void AboutWidget::on_githubButton_clicked()
{
QDesktopServices::openUrl(QUrl("https://github.com/iwxyi/CatlikeQQ"));
}

void AboutWidget::on_qqButton_clicked()
{
QDesktopServices::openUrl(QUrl("https://qm.qq.com/cgi-bin/qm/qr?k=L0lcp-KvdNkJDUqEVi6j5hBpGdD77lK5&jump_from=webapi"));
}

void AboutWidget::on_label_linkActivated(const QString &link)
{
QDesktopServices::openUrl(QUrl(link));
}
4 changes: 4 additions & 0 deletions widgets/settings/aboutwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ private slots:

void on_githubButton_clicked();

void on_qqButton_clicked();

void on_label_linkActivated(const QString &link);

private:
Ui::AboutWidget *ui;
};
Expand Down
11 changes: 10 additions & 1 deletion widgets/settings/aboutwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>猫样QQ(CatlikeQQ)是杭州懒一夕智能科技有限公司随手开发的效率产品之一,旨在通过方便快捷的交互方式,提高用户的办公效率。</string>
<string>&lt;p&gt;猫样QQ(CatlikeQQ)是杭州懒一夕智能科技有限公司随手开发的效率产品之一,旨在通过方便快捷的交互方式,提高用户的办公效率。&lt;/p&gt;

&lt;p&gt;交流群:&lt;a target=&quot;_blank&quot; href=&quot;https://qm.qq.com/cgi-bin/qm/qr?k=L0lcp-KvdNkJDUqEVi6j5hBpGdD77lK5&amp;jump_from=webapi&quot;&gt;&lt;span style=&quot;text-decoration: none; color:#8cc2d4;&quot;&gt;557544797&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
Expand All @@ -60,6 +62,13 @@
</property>
</spacer>
</item>
<item>
<widget class="InteractiveButtonBase" name="qqButton">
<property name="text">
<string>QQ群</string>
</property>
</widget>
</item>
<item>
<widget class="InteractiveButtonBase" name="officialButton">
<property name="text">
Expand Down

0 comments on commit 659b5b8

Please sign in to comment.