Commit 09b0d420 authored by Sanchit Samuel's avatar Sanchit Samuel

Reverting back to buttons

parent ace7f1cd
...@@ -46,17 +46,15 @@ MhwdPage::MhwdPage( QWidget* parent ) : ...@@ -46,17 +46,15 @@ MhwdPage::MhwdPage( QWidget* parent ) :
ui->buttonInstallNonFree->setText( MhwdCommon::getButtonNonFreeText() ); ui->buttonInstallNonFree->setText( MhwdCommon::getButtonNonFreeText() );
// 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/> <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/> <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