[tracking] Setup UI in the .ui file
This commit is contained in:
parent
935f443a4d
commit
1d143d95a0
@ -48,9 +48,6 @@ TrackingPage::TrackingPage( Config* config, QWidget* parent )
|
|||||||
group->addButton( ui->userRadio );
|
group->addButton( ui->userRadio );
|
||||||
ui->noneRadio->setChecked( true );
|
ui->noneRadio->setChecked( true );
|
||||||
|
|
||||||
// TODO: move to .ui file
|
|
||||||
ui->generalPolicyLabel->setTextInteractionFlags( Qt::TextBrowserInteraction );
|
|
||||||
|
|
||||||
connect( config, &Config::generalPolicyChanged, [ this ]( const QString& url ) {
|
connect( config, &Config::generalPolicyChanged, [ this ]( const QString& url ) {
|
||||||
this->ui->generalPolicyLabel->setVisible( !url.isEmpty() );
|
this->ui->generalPolicyLabel->setVisible( !url.isEmpty() );
|
||||||
} );
|
} );
|
||||||
|
@ -279,6 +279,9 @@ margin-left: 2em;</string>
|
|||||||
<property name="openExternalLinks">
|
<property name="openExternalLinks">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::TextBrowserInteraction</set>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
Loading…
Reference in New Issue
Block a user