Merge pull request 'Home: wrap text in tables' (#227) from tobtoht/feather:home_widget_wrap into master

Reviewed-on: https://git.wownero.com/feather/feather/pulls/227
This commit is contained in:
tobtoht 2020-12-16 15:32:37 +00:00
commit 6c8255b12b
2 changed files with 4 additions and 0 deletions

View file

@ -31,6 +31,8 @@ CCSWidget::CCSWidget(QWidget *parent) :
connect(ui->tableView, &QHeaderView::customContextMenuRequested, this, &CCSWidget::showContextMenu); connect(ui->tableView, &QHeaderView::customContextMenuRequested, this, &CCSWidget::showContextMenu);
connect(ui->tableView, &QTableView::doubleClicked, this, &CCSWidget::linkClicked); connect(ui->tableView, &QTableView::doubleClicked, this, &CCSWidget::linkClicked);
ui->tableView->verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
} }
CCSModel* CCSWidget::model() { CCSModel* CCSWidget::model() {

View file

@ -26,6 +26,8 @@ RedditWidget::RedditWidget(QWidget *parent) :
connect(ui->tableView, &QHeaderView::customContextMenuRequested, this, &RedditWidget::showContextMenu); connect(ui->tableView, &QHeaderView::customContextMenuRequested, this, &RedditWidget::showContextMenu);
connect(ui->tableView, &QTableView::doubleClicked, this, &RedditWidget::linkClicked); connect(ui->tableView, &QTableView::doubleClicked, this, &RedditWidget::linkClicked);
ui->tableView->verticalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
} }
RedditModel* RedditWidget::model() { RedditModel* RedditWidget::model() {