Merge pull request #3223 from shocoman/symbols-view-slowdown
This commit is contained in:
commit
8820440f06
|
@ -220,7 +220,7 @@ SymbolView::SymbolView(QWidget* parent) : QWidget(parent), ui(new Ui::SymbolView
|
|||
setupContextMenu();
|
||||
|
||||
//Signals and slots
|
||||
connect(Bridge::getBridge(), SIGNAL(repaintTableView()), this, SLOT(updateStyle()));
|
||||
connect(Bridge::getBridge(), SIGNAL(repaintTableView()), this, SLOT(reloadDataSlot()));
|
||||
connect(Bridge::getBridge(), SIGNAL(addMsgToSymbolLog(QString)), this, SLOT(addMsgToSymbolLogSlot(QString)));
|
||||
connect(Bridge::getBridge(), SIGNAL(clearLog()), this, SLOT(clearSymbolLogSlot()));
|
||||
connect(Bridge::getBridge(), SIGNAL(clearSymbolLog()), this, SLOT(clearSymbolLogSlot()));
|
||||
|
@ -413,12 +413,16 @@ void SymbolView::refreshShortcutsSlot()
|
|||
|
||||
void SymbolView::updateStyle()
|
||||
{
|
||||
mModuleList->stdList()->reloadData();
|
||||
mModuleList->stdSearchList()->reloadData();
|
||||
ui->symbolLogEdit->setFont(ConfigFont("Log"));
|
||||
ui->symbolLogEdit->setStyleSheet(QString("QTextEdit { color: %1; background-color: %2 }").arg(ConfigColor("AbstractTableViewTextColor").name(), ConfigColor("AbstractTableViewBackgroundColor").name()));
|
||||
}
|
||||
|
||||
void SymbolView::reloadDataSlot()
|
||||
{
|
||||
mModuleList->stdList()->reloadData();
|
||||
mModuleList->stdSearchList()->reloadData();
|
||||
}
|
||||
|
||||
void SymbolView::addMsgToSymbolLogSlot(QString msg)
|
||||
{
|
||||
ui->symbolLogEdit->moveCursor(QTextCursor::End);
|
||||
|
|
|
@ -30,6 +30,7 @@ public:
|
|||
|
||||
private slots:
|
||||
void updateStyle();
|
||||
void reloadDataSlot();
|
||||
void addMsgToSymbolLogSlot(QString msg);
|
||||
void clearSymbolLogSlot();
|
||||
void moduleSelectionChanged(duint index);
|
||||
|
|
Loading…
Reference in New Issue