Skip to content

Commit db35810

Browse files
committedAug 8, 2018
[opencl] Make opencl info copyable
1 parent 1324eff commit db35810

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎src/app/qgsoptions.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,11 +1096,15 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
10961096
// Info updater
10971097
std::function<void( int )> infoUpdater = [ = ]( int )
10981098
{
1099+
<<<<<<< 1324eff749a7b6102088ab77d27a5df6c6dce919
10991100
<<<<<<< 41e7e71db720385195af51c40df201a1aa077b0d
11001101
mGPUInfoTextBrowser->setText( QgsOpenClUtils::deviceDescription( mOpenClDevicesCombo->currentData().toString() ) );
11011102
=======
11021103
mGPUInfoLabel->setText( QgsOpenClUtils::deviceDescription( mOpenClDevicesCombo->currentData().toString() ) );
11031104
>>>>>>> [opencl] Fix device selection on start
1105+
=======
1106+
mGPUInfoTextBrowser->setText( QgsOpenClUtils::deviceDescription( mOpenClDevicesCombo->currentData().toString() ) );
1107+
>>>>>>> [opencl] Make opencl info copyable
11041108
};
11051109
connect( mOpenClDevicesCombo, qgis::overload< int >::of( &QComboBox::currentIndexChanged ), infoUpdater );
11061110
mOpenClDevicesCombo->setCurrentIndex( mOpenClDevicesCombo->findData( QgsOpenClUtils::deviceId( QgsOpenClUtils::activeDevice() ) ) );
@@ -1133,6 +1137,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
11331137
else
11341138
{
11351139
mGPUEnableCheckBox->setEnabled( false );
1140+
<<<<<<< 1324eff749a7b6102088ab77d27a5df6c6dce919
11361141
<<<<<<< 12fa896554321892e88ca05407cf125a7ccf92c1
11371142
mGPUInfoTextBrowser->setText( tr( "An OpenCL compatible device was not found on your system.<br>"
11381143
"You may need to install additional libraries in order to enable OpenCL.<br>"
@@ -1142,6 +1147,11 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
11421147
"You may need to install additional libraries in order to enable OpenCL.<br>"
11431148
"Please check your logs for further details." ) );
11441149
>>>>>>> [opencl] Test with image2d
1150+
=======
1151+
mGPUInfoTextBrowser->setText( QStringLiteral( "An OpenCL compatible device was not found on your system.<br>"
1152+
"You may need to install additional libraries in order to enable OpenCL.<br>"
1153+
"Please check your logs for further details." ) );
1154+
>>>>>>> [opencl] Make opencl info copyable
11451155
}
11461156

11471157

0 commit comments

Comments
 (0)
Please sign in to comment.