diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-13 21:45:56 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-14 09:58:29 +0900 |
commit | 60598ea23e9fec7b4320985aad848c5ffee033c2 (patch) | |
tree | 169801c444ffe73c517d5b1cdc62a39efb8c7392 /languages/cpp/ccconfigwidget.cpp | |
parent | b8cc513c5e875739c6790da651f6a3f47ed8f657 (diff) | |
download | tdevelop-60598ea23e9fec7b4320985aad848c5ffee033c2.tar.gz tdevelop-60598ea23e9fec7b4320985aad848c5ffee033c2.zip |
Removed Qt4 specific code and template files
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'languages/cpp/ccconfigwidget.cpp')
-rw-r--r-- | languages/cpp/ccconfigwidget.cpp | 79 |
1 files changed, 13 insertions, 66 deletions
diff --git a/languages/cpp/ccconfigwidget.cpp b/languages/cpp/ccconfigwidget.cpp index 569db783..9067d1e9 100644 --- a/languages/cpp/ccconfigwidget.cpp +++ b/languages/cpp/ccconfigwidget.cpp @@ -401,39 +401,15 @@ void CCConfigWidget::initTQtTab() c->init(); m_qtUsed->setChecked( c->isUsed() ); - if( c->version() == 4 ) - { - m_versionQt4->setChecked( true ); - m_kdevembedded->setEnabled( false ); - m_kdevexternal->setEnabled( false ); - m_qtStyleVersion4->setEnabled( true ); - m_designerPath->setEnabled( true ); - m_qmakePath->setEnabled( true ); - m_qtDir->setEnabled( false ); - m_txtQtDir->setEnabled( false ); - m_txtDesigner->setEnabled( true ); - pluginPaths->setEnabled( true ); - } - else - { - m_versionQt3->setChecked( true ); - m_kdevembedded->setEnabled( true ); - m_kdevexternal->setEnabled( true ); - m_qtStyleVersion4->setEnabled( false ); - m_designerPath->setEnabled( true ); - m_qmakePath->setEnabled( true ); - m_qtDir->setEnabled( true ); - m_txtQtDir->setEnabled( true ); - m_txtDesigner->setEnabled( true ); - pluginPaths->setEnabled( false ); - } - if( c->includeStyle() == 4 ) - { - m_qtStyleVersion4->setChecked( true ); - }else - { - m_qtStyleVersion3->setChecked( true ); - } + m_versionQt3->setChecked( true ); + m_kdevembedded->setEnabled( true ); + m_kdevexternal->setEnabled( true ); + m_designerPath->setEnabled( true ); + m_qmakePath->setEnabled( true ); + m_qtDir->setEnabled( true ); + m_txtQtDir->setEnabled( true ); + m_txtDesigner->setEnabled( true ); + m_qtStyleVersion3->setChecked( true ); m_qtDir->setURL( c->root() ); isValidTQtDir(m_qtDir->url()); m_qmakePath->setURL( c->qmakePath() ); @@ -487,21 +463,8 @@ void CCConfigWidget::saveTQtTab() QtBuildConfig* c = m_pPart->qtBuildConfig(); c->setUsed( m_qtUsed->isChecked() ); - if( m_versionQt4->isChecked() ) - { - c->setVersion( 4 ); - } - else - { - c->setVersion( 3 ); - } - if( m_qtStyleVersion4->isChecked() ) - { - c->setIncludeStyle( 4 ); - }else - { - c->setIncludeStyle( 3 ); - } + c->setVersion( 3 ); + c->setIncludeStyle( 3 ); c->setRoot( m_qtDir->url() ); c->setTQMakePath( m_qmakePath->url() ); c->setDesignerPath( m_designerPath->url() ); @@ -524,32 +487,16 @@ void CCConfigWidget::isValidTQtDir( const TQString &dir ) TQFileInfo inc( dir + TQString( TQChar( TQDir::separator() ) )+ "include"+TQString( TQChar( TQDir::separator() ) )+ "tqt.h" ); - if ( !m_versionQt4->isChecked() && !inc.exists() ) - { - m_qtDir->lineEdit()->setPaletteForegroundColor(TQColor("#ff0000")); - }else - { - m_qtDir->lineEdit()->unsetPalette(); - } + m_qtDir->lineEdit()->unsetPalette(); } void CCConfigWidget::toggleTQtVersion( bool ) { if ( m_versionQt3->isChecked() ) { - m_qtStyleVersion4->setEnabled( false ); m_qtStyleVersion3->setChecked( true ); m_kdevembedded->setEnabled( true ); m_kdevexternal->setEnabled( true ); - pluginPaths->setEnabled( false ); - } - if ( m_versionQt4->isChecked() ) - { - m_qtStyleVersion4->setEnabled( true ); - m_tqtdesigner->setChecked( true ); - m_kdevembedded->setEnabled( false ); - m_kdevexternal->setEnabled( false ); - pluginPaths->setEnabled( true ); } isValidTQtDir( m_qtDir->url() ); isTQMakeExecutable( m_qmakePath->url() ); @@ -571,7 +518,7 @@ void CCConfigWidget::openPluginPaths() btns->addWidget(ok); btns->addWidget(cancel); - d.setCaption( i18n( "Edit TQt4 Designer Plugin Paths" ) ); + d.setCaption( i18n( "Edit TQt Designer Plugin Paths" ) ); KURLRequester * req = new KURLRequester( &d ); req->setMode( KFile::Directory ); KEditListBox* p = new KEditListBox( i18n( "Plugin Paths" ), req->customEditor(), &d ); |