aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/InfoBoardWidget.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-06 05:58:52 +0000
committerSaturneric <[email protected]>2021-12-06 06:13:25 +0000
commitb86aa03e5f6061f73389ef17cddf694e8a88f035 (patch)
tree81516b808e3e262819c6ada934c1c60b752ffc14 /src/ui/widgets/InfoBoardWidget.cpp
parentImprove CI (diff)
parentMerge pull request #27 from saturneric/develop-ui (diff)
downloadGpgFrontend-b86aa03e5f6061f73389ef17cddf694e8a88f035.tar.gz
GpgFrontend-b86aa03e5f6061f73389ef17cddf694e8a88f035.zip
Merge branch 'develop' of github.com:saturneric/GpgFrontend into develop-ci
Diffstat (limited to 'src/ui/widgets/InfoBoardWidget.cpp')
-rw-r--r--src/ui/widgets/InfoBoardWidget.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/ui/widgets/InfoBoardWidget.cpp b/src/ui/widgets/InfoBoardWidget.cpp
index cd469422..0f3a1f74 100644
--- a/src/ui/widgets/InfoBoardWidget.cpp
+++ b/src/ui/widgets/InfoBoardWidget.cpp
@@ -24,6 +24,7 @@
#include "ui/widgets/InfoBoardWidget.h"
+#include "ui/SignalStation.h"
#include "ui/settings/GlobalSettingStation.h"
namespace GpgFrontend::UI {
@@ -81,6 +82,9 @@ InfoBoardWidget::InfoBoardWidget(QWidget* parent, KeyList* keyList)
notificationWidgetLayout->addStretch(0);
this->setLayout(notificationWidgetLayout);
+ connect(SignalStation::GetInstance(), &SignalStation::signalRefreshInfoBoard,
+ this, &InfoBoardWidget::slotRefresh);
+
// set default size
infoBoard->resize(480, 120);
resize(480, 120);
@@ -145,15 +149,6 @@ void InfoBoardWidget::associateTextEdit(QTextEdit* edit) {
connect(edit, SIGNAL(textChanged()), this, SLOT(slotReset()));
}
-void InfoBoardWidget::associateFileTreeView(FilePage* treeView) {
- // if (mFileTreeView != nullptr)
- // disconnect(mFileTreeView, &FilePage::pathChanged, this,
- // &InfoBoardWidget::slotReset);
- // this->mFileTreeView = treeView;
- // connect(treeView, &FilePage::pathChanged, this,
- // &InfoBoardWidget::slotReset);
-}
-
void InfoBoardWidget::associateTabWidget(QTabWidget* tab) {
if (mTextPage != nullptr)
disconnect(mTextPage, SIGNAL(textChanged()), this, SLOT(slotReset()));
@@ -167,7 +162,6 @@ void InfoBoardWidget::associateTabWidget(QTabWidget* tab) {
}
mTextPage = nullptr;
- mFileTreeView = nullptr;
mTabWidget = tab;
connect(tab, SIGNAL(tabBarClicked(int)), this, SLOT(slotReset()));
connect(tab, SIGNAL(tabCloseRequested(int)), this, SLOT(slotReset()));