Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[opencl] Add options widget
  • Loading branch information
elpaso committed Aug 8, 2018
1 parent b09df53 commit 12fa896
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 34 deletions.
10 changes: 5 additions & 5 deletions src/app/qgsoptions.cpp
Expand Up @@ -1104,16 +1104,16 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
else else
{ {
mGPUEnableCheckBox->setEnabled( false ); mGPUEnableCheckBox->setEnabled( false );
mGPUInfoTextBrowser->setText( QStringLiteral( "An OpenCL compatible device was not found on your system.<br>" mGPUInfoTextBrowser->setText( tr( "An OpenCL compatible device was not found on your system.<br>"
"You may need to install additional libraries in order to enable OpenCL.<br>" "You may need to install additional libraries in order to enable OpenCL.<br>"
"Please check your logs for further details." ) ); "Please check your logs for further details." ) );
} }




#else #else


mOptionsListWidget->removeItemWidget( mOptionsListWidget->findItems( QStringLiteral( "GPU" ), Qt::MatchExactly ).first() ); mOptionsListWidget->removeItemWidget( mOptionsListWidget->findItems( tr( "Acceleration" ), Qt::MatchExactly ).first() );
mOptionsStackedWidget->removeWidget( mOptionsPageGPU ); mOptionsStackedWidget->removeWidget( mOptionsPageAcceleration );




#endif #endif
Expand Down
30 changes: 1 addition & 29 deletions src/ui/qgsoptionsbase.ui
Expand Up @@ -5319,7 +5319,7 @@ The bigger the number, the faster zooming with the mouse wheel will be.</string>
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="mOptionsPageGPU"> <widget class="QWidget" name="mOptionsPageAcceleration">
<layout class="QVBoxLayout" name="verticalLayout_29"> <layout class="QVBoxLayout" name="verticalLayout_29">
<item> <item>
<widget class="QLabel" name="label_53"> <widget class="QLabel" name="label_53">
Expand Down Expand Up @@ -5739,34 +5739,6 @@ p, li { white-space: pre-wrap; }
</tabstops> </tabstops>
<resources> <resources>
<include location="../../images/images.qrc"/> <include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
<include location="../../images/images.qrc"/>
</resources> </resources>
<connections> <connections>
<connection> <connection>
Expand Down

0 comments on commit 12fa896

Please sign in to comment.