aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/InfoBoardWidget.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2021-12-05 19:32:25 +0000
committerGitHub <[email protected]>2021-12-05 19:32:25 +0000
commite3ecf7cb0e5fc3058760ac28d58ad9766e9037b6 (patch)
tree4108a6205fb517a694d65b3044f7369f32b43862 /src/ui/widgets/InfoBoardWidget.cpp
parentMerge branch 'main' into develop (diff)
parentImprove UI (diff)
downloadGpgFrontend-e3ecf7cb0e5fc3058760ac28d58ad9766e9037b6.tar.gz
GpgFrontend-e3ecf7cb0e5fc3058760ac28d58ad9766e9037b6.zip
Merge pull request #27 from saturneric/develop-ui
Improve UI
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()));