aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/InfoBoardWidget.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-26 16:23:46 +0000
committersaturneric <[email protected]>2024-11-26 16:23:46 +0000
commitf19beee8e28621bb045e45d71c963fbba1307f4b (patch)
tree20a8f52df99724f10bb20aa5273fe506f08e614e /src/ui/widgets/InfoBoardWidget.cpp
parentfix: change "Advance" to "Advanced" (diff)
downloadGpgFrontend-f19beee8e28621bb045e45d71c963fbba1307f4b.tar.gz
GpgFrontend-f19beee8e28621bb045e45d71c963fbba1307f4b.zip
refactor: optimum code and reduce duplicate
Diffstat (limited to 'src/ui/widgets/InfoBoardWidget.cpp')
-rw-r--r--src/ui/widgets/InfoBoardWidget.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/ui/widgets/InfoBoardWidget.cpp b/src/ui/widgets/InfoBoardWidget.cpp
index 92b22452..57d3d87b 100644
--- a/src/ui/widgets/InfoBoardWidget.cpp
+++ b/src/ui/widgets/InfoBoardWidget.cpp
@@ -95,16 +95,7 @@ void InfoBoardWidget::SlotRefresh(const QString& text, InfoBoardStatus status) {
ui_->infoBoard->verticalScrollBar()->setValue(0);
}
-void InfoBoardWidget::AssociateTextEdit(QTextEdit* edit) {
- if (m_text_page_ != nullptr) {
- disconnect(m_text_page_, &QTextEdit::textChanged, this,
- &InfoBoardWidget::SlotReset);
- }
- this->m_text_page_ = edit;
- connect(edit, &QTextEdit::textChanged, this, &InfoBoardWidget::SlotReset);
-}
-
-void InfoBoardWidget::AssociateTabWidget(TextEditTabWidget* tab) {
+void InfoBoardWidget::AssociateTabWidget(QTabWidget* tab) {
m_text_page_ = nullptr;
m_tab_widget_ = tab;
connect(tab, &QTabWidget::tabBarClicked, this, &InfoBoardWidget::SlotReset);