Still working
[qtmeetings] / src / UserInterface / Views / SettingsView.cpp
index 863d84e..d233662 100644 (file)
@@ -44,10 +44,7 @@ SettingsView::SettingsView( QWidget *aParent ) :
        QHBoxLayout *buttonLayout = new QHBoxLayout;
        iOkButton = new QPushButton;
        iOkButton->setText( tr( "OK" ) );
-       iCancelButton = new QPushButton;
-       iCancelButton->setText( tr( "Cancel" ) );
        buttonLayout->addWidget( iOkButton );
-       buttonLayout->addWidget( iCancelButton );
 
        // Handle the main layout
        QVBoxLayout *mainLayout = new QVBoxLayout;
@@ -58,7 +55,6 @@ SettingsView::SettingsView( QWidget *aParent ) :
 
        // Handle component connections
        connect( iOkButton, SIGNAL( clicked() ), this, SLOT( handleOkClicked() ) );
-       connect( iCancelButton, SIGNAL( clicked() ), this, SLOT( cancelClicked() ) );
 }
 
 SettingsView::~SettingsView()
@@ -73,11 +69,6 @@ SettingsView::~SettingsView()
                delete iOkButton;
                iOkButton = 0;
        }
-       if ( iCancelButton != 0 )
-       {
-               delete iCancelButton;
-               iCancelButton = 0;
-       }
        if ( iSettingsTab != 0 )
        {
                delete iSettingsTab;
@@ -412,14 +403,6 @@ void SettingsView::handleOkClicked()
        
        // Emit the signal to notify that ok is pressed and data is saved.
        emit okClicked();
-
-//     close();
-}
-
-void SettingsView::cancelClicked()
-{
-       qDebug() << "[SettingsView::cancelClicked] <Invoked>";
-       close();
 }
 
 void SettingsView::viewResized(const QSize &size)