added regex highlights
This commit is contained in:
@@ -40,7 +40,7 @@ AccountPopupWidget::AccountPopupWidget(ChannelPtr _channel)
|
||||
connect(this, &AccountPopupWidget::refreshButtons, this,
|
||||
&AccountPopupWidget::actuallyRefreshButtons, Qt::QueuedConnection);
|
||||
|
||||
app->accounts->Twitch.userChanged.connect([=] {
|
||||
app->accounts->Twitch.currentUserChanged.connect([=] {
|
||||
auto currentTwitchUser = app->accounts->Twitch.getCurrent();
|
||||
if (!currentTwitchUser) {
|
||||
// No twitch user set (should never happen)
|
||||
|
||||
@@ -47,15 +47,13 @@ HighlightingPage::HighlightingPage()
|
||||
helper::EditableModelView *view = *highlights.emplace<helper::EditableModelView>(
|
||||
app->highlights->createModel(nullptr));
|
||||
|
||||
view->getTableView()->hideColumn(3);
|
||||
|
||||
view->setTitles({"Pattern", "Flash taskbar", "Play sound", "Regex"});
|
||||
view->getTableView()->horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed);
|
||||
|
||||
// fourtf: make class extrend BaseWidget and add this to dpiChanged
|
||||
QTimer::singleShot(1, [view] {
|
||||
view->getTableView()->resizeColumnsToContents();
|
||||
view->getTableView()->setColumnWidth(0, 250);
|
||||
view->getTableView()->setColumnWidth(0, 200);
|
||||
});
|
||||
|
||||
view->addButtonPressed.connect([] {
|
||||
|
||||
@@ -47,7 +47,7 @@ Window::Window(WindowType _type)
|
||||
app->windows->showAccountSelectPopup(QCursor::pos()); //
|
||||
});
|
||||
|
||||
app->accounts->Twitch.userChanged.connect(
|
||||
app->accounts->Twitch.currentUserChanged.connect(
|
||||
[=] { user->getLabel().setText(app->accounts->Twitch.getCurrent()->getUserName()); });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user