mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Fixed: Don't display D3D item in tree under Linux and OS X
--HG-- branch : develop
This commit is contained in:
parent
6e93a0d395
commit
0b4a2a39b3
1 changed files with 5 additions and 0 deletions
|
@ -75,6 +75,10 @@ CClientConfigDialog::CClientConfigDialog( QWidget *parent ) :
|
||||||
item = treeWidget->topLevelItem( 3 )->child( 1 );
|
item = treeWidget->topLevelItem( 3 )->child( 1 );
|
||||||
item->setData( 0, Qt::UserRole, 7 );
|
item->setData( 0, Qt::UserRole, 7 );
|
||||||
|
|
||||||
|
#ifndef Q_OS_WIN
|
||||||
|
// Hide Direct3D page under Linux and OS X
|
||||||
|
item->setHidden(true);
|
||||||
|
#endif
|
||||||
|
|
||||||
CategoryStackedWidget->addWidget( new CGeneralSettingsWidget( CategoryStackedWidget ) );
|
CategoryStackedWidget->addWidget( new CGeneralSettingsWidget( CategoryStackedWidget ) );
|
||||||
CategoryStackedWidget->addWidget( new CDisplaySettingsWidget( CategoryStackedWidget ) );
|
CategoryStackedWidget->addWidget( new CDisplaySettingsWidget( CategoryStackedWidget ) );
|
||||||
|
@ -85,6 +89,7 @@ CClientConfigDialog::CClientConfigDialog( QWidget *parent ) :
|
||||||
CategoryStackedWidget->addWidget( new CSysInfoOpenGLWidget( CategoryStackedWidget ) );
|
CategoryStackedWidget->addWidget( new CSysInfoOpenGLWidget( CategoryStackedWidget ) );
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
// Add Direct3D widget only under Windows
|
||||||
CategoryStackedWidget->addWidget( new CSysInfoD3DWidget( CategoryStackedWidget ) );
|
CategoryStackedWidget->addWidget( new CSysInfoD3DWidget( CategoryStackedWidget ) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue