opt: hide website [as link] column (#1893)

* opt: hide the [As link] column
This commit is contained in:
xiaoyifang 2024-11-02 20:14:08 +08:00 committed by GitHub
parent 3909b59d9f
commit b7406e0f6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,6 +55,8 @@ Sources::Sources( QWidget * parent, Config::Class const & cfg ):
ui.webSites->setTabKeyNavigation( true ); ui.webSites->setTabKeyNavigation( true );
ui.webSites->setModel( &webSitesModel ); ui.webSites->setModel( &webSitesModel );
//[As link] column.
ui.webSites->setColumnHidden( 1, true );
ui.webSites->resizeColumnToContents( 0 ); ui.webSites->resizeColumnToContents( 0 );
ui.webSites->resizeColumnToContents( 1 ); ui.webSites->resizeColumnToContents( 1 );
ui.webSites->resizeColumnToContents( 2 ); ui.webSites->resizeColumnToContents( 2 );