Commit 5e352507 authored by Sanchit Samuel's avatar Sanchit Samuel

Reverting back to buttons

parent 1e008d8d
...@@ -43,17 +43,15 @@ MhwdPage::MhwdPage( QWidget* parent ) : ...@@ -43,17 +43,15 @@ MhwdPage::MhwdPage( QWidget* parent ) :
ui->reinstallAction->setIcon( QIcon::fromTheme( "view-refresh", QIcon( ":/icons/restore.png" ) ) ); ui->reinstallAction->setIcon( QIcon::fromTheme( "view-refresh", QIcon( ":/icons/restore.png" ) ) );
// Connect signals and slots // Connect signals and slots
connect( ui->buttonInstallFree, &QLabel::linkActivated, connect( ui->buttonInstallFree, &QPushButton::clicked,
[=] ( const QString& link ) [=] ( )
{ {
Q_UNUSED( link )
MhwdCommon::installFreeConfiguration(); MhwdCommon::installFreeConfiguration();
load(); load();
} ); } );
connect( ui->buttonInstallNonFree, &QLabel::linkActivated, connect( ui->buttonInstallNonFree, &QPushButton::clicked,
[=] ( const QString& link ) [=] ( )
{ {
Q_UNUSED( link )
MhwdCommon::installNonFreeConfiguration(); MhwdCommon::installNonFreeConfiguration();
load(); load();
} ); } );
......
...@@ -27,43 +27,24 @@ ...@@ -27,43 +27,24 @@
<number>11</number> <number>11</number>
</property> </property>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,0"> <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0">
<property name="spacing"> <property name="spacing">
<number>10</number> <number>10</number>
</property> </property>
<item> <item>
<widget class="QLabel" name="buttonInstallFree"> <widget class="QPushButton" name="buttonInstallNonFree">
<property name="text"> <property name="text">
<string>&lt;a href=&quot;#&quot;&gt;Auto Install Open-Source Driver&lt;/a&gt;</string> <string>Auto Install Proprietary Driver</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="buttonInstallNonFree"> <widget class="QPushButton" name="buttonInstallFree">
<property name="text"> <property name="text">
<string>&lt;a href=&quot;#&quot;&gt;Auto Install Proprietary Driver&lt;/a&gt;</string> <string>Auto Install Open-Source Driver</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>2</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</item> </item>
<item> <item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment