mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-14 11:06:01 +05:00
Added own fontsizehandler
This commit is contained in:
parent
8046c235b1
commit
8c11be4a8c
@ -38,6 +38,7 @@
|
||||
#include "gui/gxs/WikiGroupDialog.h"
|
||||
#include "gui/gxs/GxsCommentTreeWidget.h"
|
||||
#include "gui/gxs/GxsIdDetails.h"
|
||||
#include "gui/common/RSTreeWidget.h"
|
||||
#include "util/DateTime.h"
|
||||
#include "util/qtthreadsutils.h"
|
||||
|
||||
@ -176,6 +177,8 @@ WikiDialog::WikiDialog(QWidget *parent) :
|
||||
}, this );
|
||||
},
|
||||
mEventHandlerId, wikiEventType);
|
||||
|
||||
mFontSizeHandler.registerFontSize(ui.groupTreeWidget->treeWidget(), 1.2f);
|
||||
}
|
||||
|
||||
WikiDialog::~WikiDialog()
|
||||
@ -1015,6 +1018,8 @@ void WikiDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> event)
|
||||
#endif
|
||||
|
||||
switch(e->mWikiEventCode) {
|
||||
case RsWikiEventCode::UNKNOWN:
|
||||
break;
|
||||
case RsWikiEventCode::UPDATED_COLLECTION:
|
||||
case RsWikiEventCode::NEW_COLLECTION:
|
||||
updateDisplay(); // Refresh global list
|
||||
|
||||
@ -158,6 +158,8 @@ private:
|
||||
rstime_t mLastGroupStatisticsUpdateTs = 0;
|
||||
std::map<RsGxsGroupId, GxsGroupStatistic> mCachedGroupStats;
|
||||
|
||||
FontSizeHandler mFontSizeHandler;
|
||||
|
||||
/* UI - from Designer */
|
||||
Ui::WikiDialog ui;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user