summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/interfaces/interfacesetupimp.h
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings/interfaces/interfacesetupimp.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/interfaces/interfacesetupimp.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.h b/noncore/settings/networksettings/interfaces/interfacesetupimp.h
index 936f2be..3bbf34e 100644
--- a/noncore/settings/networksettings/interfaces/interfacesetupimp.h
+++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.h
@@ -29,18 +29,24 @@ private:
class InterfaceSetupImpDialog : public QDialog {
Q_OBJECT
- public:
+public:
InterfaceSetupImpDialog(QWidget* parent = 0, const char* name = 0, Interface *i=0, bool modal = false, WFlags fl = 0) : QDialog(parent, name, modal, fl){
QVBoxLayout *InterfaceSetupLayout = new QVBoxLayout( this );
setCaption("Interface Setup");
interfaceSetup = new InterfaceSetupImp(this, "InterfaceSetup",i,fl);
InterfaceSetupLayout->addWidget( interfaceSetup );
};
+ void setProfile(QString &profile){ interfaceSetup->setProfile(profile);};
+private:
InterfaceSetupImp *interfaceSetup;
- protected slots:
- void accept(){ interfaceSetup->saveChanges(); };
+protected slots:
+ void accept(){
+ interfaceSetup->saveChanges();
+ QDialog::accept();
+ };
+
};
#endif