summaryrefslogtreecommitdiffstats
path: root/src/newprofilewizard.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-22 14:28:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-23 10:07:10 +0900
commit39876d710881d647fd0d755d31b620a7214cf9ff (patch)
tree0affcc87388c3f41ff8a5013910f9e35cd0da0a9 /src/newprofilewizard.cpp
parentf45740dc476004d43e63d94b746239e77dfef19e (diff)
downloadkvpnc-r14.1.4.tar.gz
kvpnc-r14.1.4.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit b1606f1200c833b5a0896d6bfe08db8db8c6d81e)
Diffstat (limited to 'src/newprofilewizard.cpp')
-rw-r--r--src/newprofilewizard.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/newprofilewizard.cpp b/src/newprofilewizard.cpp
index 31f9660..ee64606 100644
--- a/src/newprofilewizard.cpp
+++ b/src/newprofilewizard.cpp
@@ -774,7 +774,7 @@ void NewProfileWizard::next ()
KMessageBox::error ( this, i18n ( "Profile name can not contain spaces!" ), i18n ( "Spaces Not Allowed" ) );
GlobalConfig->appendLogEntry ( i18n ( "Profile name can not contain spaces!" ) , GlobalConfig->error );
msg += "- " + i18n ( "Name" ) + "\n";
- nameOk = FALSE;
+ nameOk = false;
ok = false;
}
@@ -783,7 +783,7 @@ void NewProfileWizard::next ()
KMessageBox::error ( this, i18n ( "Profile name can not be empty!" ), i18n ( "No Name Entered" ) );
GlobalConfig->appendLogEntry ( i18n ( "Profile name can not be empty!" ) , GlobalConfig->error );
msg += "- " + i18n ( "Name" ) + "\n";
- nameOk = FALSE;
+ nameOk = false;
ok = false;
}
@@ -819,7 +819,7 @@ void NewProfileWizard::next ()
if ( GlobalConfig->KvpncDebugLevel > 0 )
GlobalConfig->appendLogEntry ( i18n ( "Profile name: %1" ).arg ( profileData->getName() ), KVpncConfig::debug );
- newProfileCreated = TRUE;
+ newProfileCreated = true;
}
else
{
@@ -3168,7 +3168,7 @@ void NewProfileWizard::showPage ( TQWidget* page )
if ( page == endpage )
{
- finishButton() ->setEnabled ( TRUE );
+ finishButton() ->setEnabled ( true );
finishButton() ->setFocus();
}
}
@@ -3178,9 +3178,9 @@ void NewProfileWizard::dataChanged ( const TQString & )
// if ( !firstName->text().isEmpty() &&
// !lastName->text().isEmpty() &&
// !email->text().isEmpty() )
- // nextButton()->setEnabled( TRUE );
+ // nextButton()->setEnabled( true );
// else
- // nextButton()->setEnabled( FALSE );
+ // nextButton()->setEnabled( false );
}
void NewProfileWizard::userdefinedOpenvpnPortToggeled ( bool )
@@ -3203,17 +3203,17 @@ void NewProfileWizard::pskIsInFileToggled ( bool )
{
if ( newprofilewizardpskcontent->PskInFileCheckBox->isChecked() )
{
- newprofilewizardpskcontent->LabelPskFile->setEnabled ( TRUE );
- newprofilewizardpskcontent->PSKFileURLRequester->setEnabled ( TRUE );
- newprofilewizardpskcontent->LabelPsk->setEnabled ( FALSE );
- newprofilewizardpskcontent->PSKLineEdit->setEnabled ( FALSE );
+ newprofilewizardpskcontent->LabelPskFile->setEnabled ( true );
+ newprofilewizardpskcontent->PSKFileURLRequester->setEnabled ( true );
+ newprofilewizardpskcontent->LabelPsk->setEnabled ( false );
+ newprofilewizardpskcontent->PSKLineEdit->setEnabled ( false );
}
else
{
- newprofilewizardpskcontent->LabelPskFile->setEnabled ( FALSE );
- newprofilewizardpskcontent->PSKFileURLRequester->setEnabled ( FALSE );
- newprofilewizardpskcontent->LabelPsk->setEnabled ( TRUE );
- newprofilewizardpskcontent->PSKLineEdit->setEnabled ( TRUE );
+ newprofilewizardpskcontent->LabelPskFile->setEnabled ( false );
+ newprofilewizardpskcontent->PSKFileURLRequester->setEnabled ( false );
+ newprofilewizardpskcontent->LabelPsk->setEnabled ( true );
+ newprofilewizardpskcontent->PSKLineEdit->setEnabled ( true );
}
}
@@ -3221,13 +3221,13 @@ void NewProfileWizard::useNatToggled ( bool )
{
if ( newprofilewizardnatcontent->UseNatCheckbox->isChecked() )
{
- newprofilewizardnatcontent->UdpPortCheckbox->setEnabled ( TRUE );
- newprofilewizardnatcontent->UdpPortSpinbox->setEnabled ( FALSE );
+ newprofilewizardnatcontent->UdpPortCheckbox->setEnabled ( true );
+ newprofilewizardnatcontent->UdpPortSpinbox->setEnabled ( false );
}
else
{
- newprofilewizardnatcontent->UdpPortCheckbox->setEnabled ( FALSE );
- newprofilewizardnatcontent->UdpPortSpinbox->setEnabled ( FALSE );
+ newprofilewizardnatcontent->UdpPortCheckbox->setEnabled ( false );
+ newprofilewizardnatcontent->UdpPortSpinbox->setEnabled ( false );
}
}
@@ -3235,11 +3235,11 @@ void NewProfileWizard::udpPortToggled ( bool )
{
if ( newprofilewizardnatcontent->UdpPortCheckbox->isChecked() )
{
- newprofilewizardnatcontent->UdpPortSpinbox->setEnabled ( TRUE );
+ newprofilewizardnatcontent->UdpPortSpinbox->setEnabled ( true );
}
else
{
- newprofilewizardnatcontent->UdpPortSpinbox->setEnabled ( FALSE );
+ newprofilewizardnatcontent->UdpPortSpinbox->setEnabled ( false );
}
}
@@ -3263,11 +3263,11 @@ void NewProfileWizard::useSpecialServerCertificateToggled ( bool )
{
if ( newprofilewizardcertcontent->UseSpecialServerCertificateCheckBox->isChecked() )
{
- newprofilewizardcertcontent->SpecialServerCertificateURLRequester->setEnabled ( TRUE );
+ newprofilewizardcertcontent->SpecialServerCertificateURLRequester->setEnabled ( true );
}
else
{
- newprofilewizardcertcontent->SpecialServerCertificateURLRequester->setEnabled ( FALSE );
+ newprofilewizardcertcontent->SpecialServerCertificateURLRequester->setEnabled ( false );
}
}
@@ -3557,15 +3557,15 @@ void NewProfileWizard::additionalNetworkRoutesToggled ( bool )
{
if ( newprofilewizardnetworkroutecontent->UseExtraNetworkRoutesCheckbox->isChecked() )
{
- newprofilewizardnetworkroutecontent->NetworkListView->setEnabled ( TRUE );
- newprofilewizardnetworkroutecontent->DeleteNetworkRoutePushButton->setEnabled ( TRUE );
- newprofilewizardnetworkroutecontent->AddRoutePushButton->setEnabled ( TRUE );
+ newprofilewizardnetworkroutecontent->NetworkListView->setEnabled ( true );
+ newprofilewizardnetworkroutecontent->DeleteNetworkRoutePushButton->setEnabled ( true );
+ newprofilewizardnetworkroutecontent->AddRoutePushButton->setEnabled ( true );
}
else
{
- newprofilewizardnetworkroutecontent->NetworkListView->setEnabled ( FALSE );
- newprofilewizardnetworkroutecontent->DeleteNetworkRoutePushButton->setEnabled ( FALSE );
- newprofilewizardnetworkroutecontent->AddRoutePushButton->setEnabled ( FALSE );
+ newprofilewizardnetworkroutecontent->NetworkListView->setEnabled ( false );
+ newprofilewizardnetworkroutecontent->DeleteNetworkRoutePushButton->setEnabled ( false );
+ newprofilewizardnetworkroutecontent->AddRoutePushButton->setEnabled ( false );
}
}
@@ -3801,13 +3801,13 @@ void NewProfileWizard::useVirtualIpAddressToggled ( bool )
{
if ( profilenetworkvirtualipoptionscontent->UseVirtualIPCheckBox->isChecked() )
{
- profilenetworkvirtualipoptionscontent->LocalVirtualIpEdit->setEnabled ( TRUE );
- profilenetworkvirtualipoptionscontent->RemoteVirtualIpLineEdit->setEnabled ( TRUE );
+ profilenetworkvirtualipoptionscontent->LocalVirtualIpEdit->setEnabled ( true );
+ profilenetworkvirtualipoptionscontent->RemoteVirtualIpLineEdit->setEnabled ( true );
}
else
{
- profilenetworkvirtualipoptionscontent->LocalVirtualIpEdit->setEnabled ( FALSE );
- profilenetworkvirtualipoptionscontent->RemoteVirtualIpLineEdit->setEnabled ( FALSE );
+ profilenetworkvirtualipoptionscontent->LocalVirtualIpEdit->setEnabled ( false );
+ profilenetworkvirtualipoptionscontent->RemoteVirtualIpLineEdit->setEnabled ( false );
}
}