Skip to content

Commit

Permalink
Some tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ic005k committed Oct 13, 2024
1 parent 15ea6dd commit 5cf2243
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/dlgpreference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,3 +390,10 @@ void dlgPreference::on_myeditFind_returnPressed() {
find(ui->myeditFind->text().trimmed());
ui->myeditFind->selectAll();
}

void dlgPreference::on_btnTokenHelp_clicked() {
QUrl url_en(QString(
"https://www.howtogeek.com/devops/"
"how-to-set-up-https-personal-access-tokens-for-github-authentication/"));
QDesktopServices::openUrl(url_en);
}
1 change: 1 addition & 0 deletions src/dlgpreference.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class dlgPreference : public QDialog {
void on_tableKextUrl_itemChanged(QTableWidgetItem *item);
void on_myeditFind_returnPressed();
void on_rbtnToken_clicked();
void on_btnTokenHelp_clicked();
};

#endif // DLGPREFERENCE_H
9 changes: 8 additions & 1 deletion src/dlgpreference.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<property name="documentMode">
<bool>true</bool>
Expand Down Expand Up @@ -68,6 +68,13 @@
<item>
<widget class="QLineEdit" name="editToken"/>
</item>
<item>
<widget class="QToolButton" name="btnTokenHelp">
<property name="text">
<string>?</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
Expand Down

0 comments on commit 5cf2243

Please sign in to comment.